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
{{ message }}
Repository navigation
core: pending question forms cancelled by a location close get no cause or question content #52599
When a location is evicted after 60 idle minutes, its pending question forms are cancelled when the location closes, with a bare { status: "cancelled" } — no reason, no content. The client that rendered the form sees the question cancel silently: the state does not say that the location was evicted, or which question was pending. In the tool failure reported back to the model, a close-caused cancel says only "Interaction cancelled because the location shut down" (#51647's symptom) — again without the pending question content.
The close path has no way to record why it is cancelling: Form.close cancels every pending form with no options, and the cancelled state has nowhere to carry a cause or the pending question content.
This issue is about the cancellation state and message, not the eviction policy — the policy is discussed in #51343, and restoring pending forms across reconnects is a separate issue (#44471).
OpenCode version
2.0.8
Steps to reproduce
Start a session, get a question form pending, and let the session go idle (no active execution) until its location hits the 60-minute idle deadline.
The location is evicted and the close cancels the pending form.
Observe: the form's state is { status: "cancelled" } — no reason, no pending question content.
Expected: the cancelled state should include why it was cancelled (for eviction, cause: "evicted") and enough context to identify the pending question.
Not a duplicate, in my view. #51343 tracks the eviction policy (whether idle eviction should interrupt active work, and the hardcoded 60-minute deadline); #51647 is about the desktop app — the question tool aborts on location shutdown and the decision controls never render. This issue is only about the cancellation state and message: when a location close cancels a pending question, the form state is a bare cancelled with no cause, and the tool failure doesn't include the pending question. #52600 fixes that narrow part.
Activity
github-actions commentedon Oct 2, 2026
This issue might be a duplicate of existing issues. Please check:
thiago-carneiro commentedon Oct 2, 2026
Not a duplicate, in my view. #51343 tracks the eviction policy (whether idle eviction should interrupt active work, and the hardcoded 60-minute deadline); #51647 is about the desktop app — the question tool aborts on location shutdown and the decision controls never render. This issue is only about the cancellation state and message: when a location close cancels a pending question, the form state is a bare
cancelledwith no cause, and the tool failure doesn't include the pending question. #52600 fixes that narrow part.