[PR #4844] feat: add an "interject" response option to the "ask" permission's modal (implements #4822) #11142

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

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

State: closed
Merged: No


Closes #4822.

This PR adds a new fourth response option to the options presented in the modal dialog produced by the "ask" permission in the TUI: "interject" ("i" key).

When the user hits the "i" key to select the "interject" option, they're prompted to enter their advice for how the model should proceed.

If the user hits enter after entering their advice, the user's interjection is formatted into the error message received by the model, after which it continues processing.

If the user instead hits escape, it behaves as if they'd denied the tool cool.

Step 1: display the option to interject

Screenshot 2025-11-27 at 5 54 26 PM

Step 2: allow the user to enter their interjection/advice

Screenshot 2025-11-27 at 5 54 55 PM

Step 3: model receives the user's advice and continues

Screenshot 2025-11-27 at 5 58 27 PM
**Original Pull Request:** https://github.com/anomalyco/opencode/pull/4844 **State:** closed **Merged:** No --- Closes #4822. This PR adds a new fourth response option to the options presented in the modal dialog produced by the "ask" permission in the TUI: "interject" ("i" key). When the user hits the "i" key to select the "interject" option, they're prompted to enter their advice for how the model should proceed. If the user hits enter after entering their advice, the user's interjection is formatted into the error message received by the model, after which it continues processing. If the user instead hits escape, it behaves as if they'd denied the tool cool. #### Step 1: display the option to interject <img width="746" height="593" alt="Screenshot 2025-11-27 at 5 54 26 PM" src="https://github.com/user-attachments/assets/7f9f650d-0b73-4493-b3b3-f09fc7d132da" /> #### Step 2: allow the user to enter their interjection/advice <img width="739" height="590" alt="Screenshot 2025-11-27 at 5 54 55 PM" src="https://github.com/user-attachments/assets/2567f71b-891b-429c-af0a-f368610039ac" /> #### Step 3: model receives the user's advice and continues <img width="740" height="619" alt="Screenshot 2025-11-27 at 5 58 27 PM" src="https://github.com/user-attachments/assets/a181c026-43c6-447d-9e5b-585b64b6d4fc" />
yindo added the pull-request label 2026-02-16 18:15:56 -05:00
yindo closed this issue 2026-02-16 18:15:56 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#11142