[BUG] `/mcp` menu appears to use the `Confirmation` keybindings context
Resolved 💬 2 comments Opened Apr 18, 2026 by austinbutler Closed May 27, 2026
Summary
The /mcp menu behaves as if it uses the Confirmation keybindings context. Users who unbind escape in Confirmation to avoid accidentally rejecting tool-use approvals lose the ability to close /mcp. I could not find a keyboard way to dismiss it in my testing.
Environment
- Claude Code: 2.1.111
- Platform: Linux (NixOS)
- Terminal: Ghostty 1.3.1 (
TERM=xterm-256color) inside Zellij
Repro
~/.claude/keybindings.json:
{
"bindings": [
{
"context": "Chat",
"bindings": { "escape": null, "escape escape": null }
},
{
"context": "Confirmation",
"bindings": { "escape": null }
}
]
}
- Run
/mcp - Try to close the menu. These keys did not close it:
esc,ctrl+c,q - Menu stays open
Expected
/mcp is a list/menu, not an approval prompt, so it should not be affected by Confirmation keybindings. Give /mcp its own menu/select context.
Narrowing
- Commenting out only the
Chatblock does not fix it - Commenting out only the
Confirmationblock does fix it - So
/mcpappears to use theConfirmationcontext, which is surprising
Impact
In my testing, the only way out was killing/restarting the session.
Related
- https://github.com/anthropics/claude-code/issues/22626
- https://github.com/anthropics/claude-code/issues/36537
Asks
- Give
/mcpits own menu/select context (or move it out ofConfirmation) - Document the full set of context names in https://code.claude.com/docs/en/keybindings, the current table doesn't list
/mcpor clarify which overlays fall underConfirmation
This issue has 2 comments on GitHub. Read the full discussion on GitHub ↗