You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix(agent): decide the setup-window cancel on the counter alone
The bail also required `session.cancelled`, which any turn's activation
clears. A local-only command skips the pre-prompt status check the stalled
prompt is parked in, so it can queue and activate in that window; the reset
erased the very cancel the check exists to catch, and the cancelled prompt
went to the SDK anyway.
`cancelSeq` is monotonic and incremented only in `cancel()`, in the same
synchronous block that sets `cancelled`, so comparing it against the entry
snapshot survives an unrelated activation. The flag stays untouched here,
because an earlier turn may still be settling against it.
Claude-Session: https://claude.ai/code/session_01KT3ZQ47bqT9mW4fi458Q6V
0 commit comments