feat(coding-agent): add resume as configurable keybinding action (#1249)

feat(coding-agent): add resume as configurable keybinding action

Allow users to bind a key to open the session resume selector, matching the pattern of newSession, tree, and fork actions.
This commit is contained in:
Juan Ibiapina 2026-02-04 13:43:51 +01:00 committed by GitHub
parent b5be54b8ef
commit b80762966a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 9 additions and 1 deletions

View file

@ -2,6 +2,10 @@
## [Unreleased]
### Added
- Added `resume` as a configurable keybinding action, allowing users to bind a key to open the session resume selector (like `newSession`, `tree`, and `fork`)
## [0.51.5] - 2026-02-04
### Changed

View file

@ -32,7 +32,8 @@ export type AppAction =
| "pasteImage"
| "newSession"
| "tree"
| "fork";
| "fork"
| "resume";
/**
* All configurable actions.
@ -68,6 +69,7 @@ export const DEFAULT_APP_KEYBINDINGS: Record<AppAction, KeyId | KeyId[]> = {
newSession: [],
tree: [],
fork: [],
resume: [],
};
/**
@ -98,6 +100,7 @@ const APP_ACTIONS: AppAction[] = [
"newSession",
"tree",
"fork",
"resume",
];
function isAppAction(action: string): action is AppAction {

View file

@ -1779,6 +1779,7 @@ export class InteractiveMode {
this.defaultEditor.onAction("newSession", () => this.handleClearCommand());
this.defaultEditor.onAction("tree", () => this.showTreeSelector());
this.defaultEditor.onAction("fork", () => this.showUserMessageSelector());
this.defaultEditor.onAction("resume", () => this.showSessionSelector());
this.defaultEditor.onChange = (text: string) => {
const wasBashMode = this.isBashMode;