[PR #9240] feat(tui): add force push for queued messages #13034

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

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

State: open
Merged: No


Why

When a message is queued while the session is busy, there's no way to force it to process immediately. The only workaround is to:

  1. Press esc twice to interrupt
  2. Undo the queued message
  3. Re-enter and submit it

This is quite cumbersome.

Fixes #5770
Related: #5333, #8685

How

Added a force function that:

  1. Deletes session state before aborting (so the old loop's defer() cleanup finds nothing)
  2. Aborts the current operation
  3. Starts a fresh loop that picks up the queued user message from the database

The UI shows an "enter force" hint when a queued message exists, and pressing Enter triggers the force.

Test Plan

https://github.com/user-attachments/assets/66e0d3b1-7e39-4774-b7b0-df399f6ace3a

Note

This PR was written entirely using AI.

**Original Pull Request:** https://github.com/anomalyco/opencode/pull/9240 **State:** open **Merged:** No --- # Why When a message is queued while the session is busy, there's no way to force it to process immediately. The only workaround is to: 1. Press `esc` twice to interrupt 2. Undo the queued message 3. Re-enter and submit it This is quite cumbersome. Fixes #5770 Related: #5333, #8685 # How Added a `force` function that: 1. Deletes session state before aborting (so the old loop's `defer()` cleanup finds nothing) 2. Aborts the current operation 3. Starts a fresh loop that picks up the queued user message from the database The UI shows an "enter force" hint when a queued message exists, and pressing `Enter` triggers the force. # Test Plan https://github.com/user-attachments/assets/66e0d3b1-7e39-4774-b7b0-df399f6ace3a > [!NOTE] > This PR was written entirely using AI.
yindo added the pull-request label 2026-02-16 18:17:55 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#13034