Skip to content

Add "Interrupt and Resume" command (e.g. /btw) for mid-task Q&A without losing execution context #37246

Closed as not planned

Description

@MahmoudSamerAli

Feature hasn't been suggested before.

  • 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:

  1. A command (e.g. /btw, /interrupt, or similar) that pauses in-progress execution.
  2. The agent responds to the side query/comment while retaining full context of the paused task.
  3. Execution resumes automatically afterward.
  4. 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

  1. github-actions commented on Jul 16, 2026

    @github-actions
    Contributor

    This issue doesn't fully meet our contributing guidelines.

    What needs to be fixed:

    • Feature request titles must start with [FEATURE]: (e.g. [FEATURE]: Add "Interrupt and Resume" command...)
    • The verification checkbox ("I have verified this feature I'm about to request hasn't been suggested before") must be checked before submitting

    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.

  2. github-actions commented on Jul 16, 2026

    @github-actions
    Contributor

    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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions