opencode icon indicating copy to clipboard operation
opencode copied to clipboard

feature: add an "interject" response option to the "ask" permission's modal (implements #4822)

Open ariane-emory opened this issue 1 month ago • 5 comments

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

ariane-emory avatar Nov 27 '25 23:11 ariane-emory

Temporarily re-drafting to resolve newly introduced API conflict, likely will have time sort that out that tomorrow.

ariane-emory avatar Dec 08 '25 07:12 ariane-emory

Sorted, un-drafting.

ariane-emory avatar Dec 08 '25 18:12 ariane-emory

Corrupted by a bad merge, will fix.

ariane-emory avatar Dec 11 '25 00:12 ariane-emory

Investigated, was not actually corrupted.

ariane-emory avatar Dec 11 '25 01:12 ariane-emory