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
Add "Interrupt and Resume" command (e.g. /btw) for mid-task Q&A without losing execution context #37246
I have verified this feature I'm about to request hasn't been suggested before.
Describe the enhancement you want to request
I'd like OpenCode to support an "Interrupt and Resume" workflow similar to a feature I used in Qwen CLI (there it was a /btw command, roughly "by the way").
How it worked in Qwen CLI:
While the agent is mid-execution on a task, you can invoke /btw .
This pauses the current task without cancelling it.
The CLI answers your question (or takes your comment into account) as a side conversation.
Once resolved, execution resumes from where it left off — but if your input changes the approach, the agent adapts its remaining steps accordingly instead of blindly continuing the original plan.
Why this would be useful:
Right now, interrupting a running task usually means cancelling it outright and losing progress/context.
Sometimes I just want to ask a clarifying question, point out something the agent missed, or nudge its approach — without derailing the whole task.
This is especially valuable for long-running or multi-step tasks where restarting is costly.
Proposed behavior:
A command (e.g. /btw, /interrupt, or similar) that pauses in-progress execution.
The agent responds to the side query/comment while retaining full context of the paused task.
Execution resumes automatically afterward.
If the side input implies a change in approach, the agent incorporates that into its remaining steps rather than sticking rigidly to the original plan.
Alternatives considered:
Fully cancelling and restarting the task — loses progress and context.
Waiting until the task finishes to ask — often too late to be useful if the concern affects the current steps.
Activity
github-actions commentedon Jul 16, 2026
This issue doesn't fully meet our contributing guidelines.
What needs to be fixed:
[FEATURE]:(e.g.[FEATURE]: Add "Interrupt and Resume" command...)Please edit this issue to address the above within 2 hours, or it will be automatically closed.
This issue might be a duplicate of existing issues. Please check:
If you believe this was flagged incorrectly, please let a maintainer know.
github-actions commentedon Jul 16, 2026
This issue has been automatically closed because it was not updated to meet our contributing guidelines within the 2-hour window.
Feel free to open a new issue that follows our issue templates.