Bug
When /btw is open at the same time as an agent option/permission dialog, pressing ESC to close the /btw overlay also cancels the underlying dialog. The keypress propagates through both layers.
Additionally, while the /btw input window is open, the option dialog beneath it is not visible, so the user cannot see what they are about to accidentally cancel.
Steps to reproduce
- Trigger any option or permission dialog (e.g. a tool permission prompt, or an
AskUserQuestion dialog).
- While the dialog is waiting for input, type
/btw to open the background-context overlay.
- Press ESC to dismiss the
/btw window.
- The underlying dialog is also dismissed/cancelled without any explicit user action on it.
Expected behaviour
ESC should close only the /btw overlay. The underlying dialog should remain visible and unaffected, with focus returning to it.
Environment
- Platform: macOS
- TUI mode: fullscreen
Bug
When
/btwis open at the same time as an agent option/permission dialog, pressing ESC to close the/btwoverlay also cancels the underlying dialog. The keypress propagates through both layers.Additionally, while the
/btwinput window is open, the option dialog beneath it is not visible, so the user cannot see what they are about to accidentally cancel.Steps to reproduce
AskUserQuestiondialog)./btwto open the background-context overlay./btwwindow.Expected behaviour
ESC should close only the
/btwoverlay. The underlying dialog should remain visible and unaffected, with focus returning to it.Environment