Commit Graph
6 Commits
Author SHA1 Message Date
Julius Marmingeandcodex be32ce9792 Harden keybinding parsing and config resolution
Co-authored-by: codex <[email protected]>
2026-02-15 13:20:36 -08:00
Julius Marminge 1c80b4f1fe Resolve keybinding precedence across commands
- Evaluate shortcut matches by resolving the last matching key+when rule, regardless of command
- Add cross-command precedence tests and switch assertions to `vitest` `assert`
- Clarify precedence behavior in `KEYBINDINGS.md`
2026-02-15 12:00:53 -08:00
Julius Marminge 5fac591417 Add configurable shortcuts for new chat and open-in-editor
- add `chat.new` and `editor.openFavorite` to keybinding contracts and server defaults
- use shared keybinding matching in sidebar/chat view instead of hardcoded Cmd/Ctrl combos
- document new commands/defaults and extend server/web keybinding tests
2026-02-15 11:48:43 -08:00
Julius Marminge 0707d4a826 Resolve terminal keybindings on server before sending config
- Move default keybinding resolution/override merging into `server.getConfig`
- Return server-resolved keybindings to the web client instead of resolving in UI
- Update docs and tests to reflect server-side defaults, overrides, and truncation behavior
2026-02-15 11:30:27 -08:00
Julius Marminge 68f3184d3f Align web keybinding types with shared contract aliases
- Reuse `KeybindingRule` and `KeybindingsConfig` directly for resolved keybinding types
- Update normalization helper to accept `KeybindingRule` for consistent typing
2026-02-15 11:21:38 -08:00
Julius Marminge ce4ad7ec18 Rename terminal-shortcuts module to keybindings
- Rename `terminal-shortcuts.ts` and its test to `keybindings`
- Update ChatView and ThreadTerminalDrawer imports to use new module path
2026-02-15 11:19:51 -08:00