Skip to content

Commit 43ab9a8

Browse files
tnsardesaiclaude
andcommitted
fix: show correct log message when releasing browser with reuse=false
When a browser is released with reuse=false it gets deleted, but the CLI still logged "Released browser back to pool". Now logs "Deleted browser from pool" when reuse is explicitly set to false. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent c730c0c commit 43ab9a8

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

cmd/browser_pools.go

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -373,7 +373,11 @@ func (c BrowserPoolsCmd) Release(ctx context.Context, in BrowserPoolsReleaseInpu
373373
if err != nil {
374374
return util.CleanedUpSdkError{Err: err}
375375
}
376-
pterm.Success.Printf("Released browser %s back to pool %s\n", in.SessionID, in.IDOrName)
376+
if in.Reuse.Set && !in.Reuse.Value {
377+
pterm.Success.Printf("Deleted browser %s from pool %s\n", in.SessionID, in.IDOrName)
378+
} else {
379+
pterm.Success.Printf("Released browser %s back to pool %s\n", in.SessionID, in.IDOrName)
380+
}
377381
return nil
378382
}
379383

0 commit comments

Comments
 (0)