[PR #3283] Fix escape twice interrupt to properly kill operations #10589

Closed
opened 2026-02-16 18:15:17 -05:00 by yindo · 0 comments
Owner

Original Pull Request: https://github.com/anomalyco/opencode/pull/3283

State: closed
Merged: No


fix: issue that wasn't allowing users to cancel immediately, allowing users to stop request instantly to give further instructions

  • Add AbortedSessions map to track aborted sessions
  • Ignore SSE events for aborted sessions to stop UI streaming
  • Mark last assistant message as completed on abort
  • Clear aborted flag when starting new operations to allow subsequent requests

This fix ensures cancellation works properly.

**Original Pull Request:** https://github.com/anomalyco/opencode/pull/3283 **State:** closed **Merged:** No --- fix: issue that wasn't allowing users to cancel immediately, allowing users to stop request instantly to give further instructions - Add AbortedSessions map to track aborted sessions - Ignore SSE events for aborted sessions to stop UI streaming - Mark last assistant message as completed on abort - Clear aborted flag when starting new operations to allow subsequent requests This fix ensures cancellation works properly.
yindo added the pull-request label 2026-02-16 18:15:17 -05:00
yindo closed this issue 2026-02-16 18:15:17 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#10589