A self-improving RLM agent for coding workflows and long-running autonomous tasks.
Rust
Add reverse tab navigation to /login, remaps model scope to alt/option+s (#618)
Johannes Hagemanna6c08e8903af
diff --git a/packages/coding-agent/CHANGELOG.md b/packages/coding-agent/CHANGELOG.mdindex b697beb8a8..9451b09841 100644--- a/packages/coding-agent/CHANGELOG.md+++ b/packages/coding-agent/CHANGELOG.md@@ -2,6 +2,7 @@## [Unreleased]+- Added reverse tab navigation to the `/login` configuration menu and moved the model scope shortcut to `Alt+S`.- Fixed daemon startup crashes hiding their exit status and daemon log until the startup timeout.## [0.6.0] - 2026-08-04diff --git a/packages/coding-agent/docs/keybindings.md b/packages/coding-agent/docs/keybindings.mdindex 5433e2f7a3..8ea87a7ed6 100644--- a/packages/coding-agent/docs/keybindings.md+++ b/packages/coding-agent/docs/keybindings.md@@ -113,12 +113,16 @@ Modifier combinations: `ctrl+shift+x`, `alt+ctrl+x`, `ctrl+shift+alt+x`, `ctrl+1| Keybinding id | Default | Description ||--------|---------|-------------|| `app.model.select` | `ctrl+l` | Open model selector |-| `app.model.toggleScope` | `shift+tab` | Toggle between all and scoped models |+| `app.model.toggleScope` | `alt+s` | Toggle between all and scoped models || `app.thinking.toggle` | `ctrl+t` | Collapse or expand thinking blocks |### Configuration Menu-Use `tab` to cycle through Providers, Models, and MCP Connections, and `escape` to close the menu. Left and right move the cursor in the active search field.+Use `tab` to cycle forward and `shift+tab` to cycle backward through Providers, Models, and MCP Connections. Use `escape` to close the menu. Left and right move the cursor in the active search field.++| Keybinding id | Default | Description |+|--------|---------|-------------|+| `app.configuration.previousTab` | `shift+tab` | Select the previous configuration tab |### Display and Message Queuediff --git a/packages/coding-agent/src/core/keybindings.ts b/packages/coding-agent/src/core/keybindings.tsindex 03718c5a40..a0762e44f9 100644--- a/packages/coding-agent/src/core/keybindings.ts+++ b/packages/coding-agent/src/core/keybindings.ts@@ -19,6 +19,7 @@ export interface AppKeybindings {"app.suspend": true;"app.model.select": true;"app.model.toggleScope": true;+ "app.configuration.previousTab": true;"app.tools.expand": true;"app.thinking.toggle": true;"app.subagents.focus": true;@@ -78,7 +79,8 @@ export const KEYBINDINGS = {description: "Suspend to background",},"app.model.select": { defaultKeys: "ctrl+l", description: "Open model selector" },- "app.model.toggleScope": { defaultKeys: "shift+tab", description: "Toggle model selector scope" },+ "app.model.toggleScope": { defaultKeys: "alt+s", description: "Toggle model selector scope" },+ "app.configuration.previousTab": { defaultKeys: "shift+tab", description: "Select previous configuration tab" },"app.tools.expand": { defaultKeys: "ctrl+o", description: "Toggle tool output" },"app.thinking.toggle": {defaultKeys: "ctrl+t",diff --git a/packages/coding-agent/src/modes/interactive/components/configuration-menu.ts b/packages/coding-agent/src/modes/interactive/components/configuration-menu.tsindex dc4f22b5e9..ce269c7634 100644--- a/packages/coding-agent/src/modes/interactive/components/configuration-menu.ts+++ b/packages/coding-agent/src/modes/interactive/components/configuration-menu.ts@@ -75,8 +75,9 @@ class ConfigurationMenuTabBar implements Component {safeWidth,);const tabKey = keyText("tui.input.tab", { primaryOnly: true });+ const shiftTabKey = keyText("app.configuration.previousTab", { primaryOnly: true });const closeKey = keyText("tui.select.cancel", { primaryOnly: true });- const hint = `${theme.fg("dim", tabKey)}${theme.fg("muted", " switch tabs · ")}${theme.fg("dim", closeKey)}${theme.fg("muted", " close")}`;+ const hint = `${theme.fg("dim", `${tabKey}/${shiftTabKey}`)}${theme.fg("muted", " switch tabs · ")}${theme.fg("dim", closeKey)}${theme.fg("muted", " close")}`;return [...lines, ...wrapTextWithAnsi(hint, safeWidth)];}@@ -228,7 +229,11 @@ export class ConfigurationMenuComponent extends Container implements Focusable {handleInput(keyData: string): void {const kb = getKeybindings();if (kb.matches(keyData, "tui.input.tab")) {- this.switchTab();+ this.switchTab(1);+ return;+ }+ if (kb.matches(keyData, "app.configuration.previousTab")) {+ this.switchTab(-1);return;}if (@@ -245,9 +250,9 @@ export class ConfigurationMenuComponent extends Container implements Focusable {return this.bodies[this.activeTab];}- private switchTab(): void {+ private switchTab(direction: 1 | -1): void {const currentIndex = CONFIGURATION_MENU_TABS.indexOf(this.activeTab);- const nextIndex = (currentIndex + 1) % CONFIGURATION_MENU_TABS.length;+ const nextIndex = (currentIndex + direction + CONFIGURATION_MENU_TABS.length) % CONFIGURATION_MENU_TABS.length;this.setActiveTab(CONFIGURATION_MENU_TABS[nextIndex] ?? "providers");}}diff --git a/packages/coding-agent/test/configuration-menu.test.ts b/packages/coding-agent/test/configuration-menu.test.tsindex eb7afc3d25..e63c750d31 100644--- a/packages/coding-agent/test/configuration-menu.test.ts+++ b/packages/coding-agent/test/configuration-menu.test.ts@@ -110,12 +110,12 @@ describe("ConfigurationMenuComponent", () => {expect(output).not.toContain("Anthropic");});- it("switches tabs with Tab and preserves focus and search state", async () => {+ it("switches tabs with Tab and Shift+Tab while preserving focus and search state", async () => {const menu = await createMenu();menu.focused = true;const lines = stripAnsi(menu.render(120).join("\n")).split("\n");const tabsLine = lines.findIndex((line) => line.includes("[▶ Providers]"));- const shortcutsLine = lines.findIndex((line) => line.includes("Tab switch tabs"));+ const shortcutsLine = lines.findIndex((line) => line.includes("Tab/Shift+Tab switch tabs"));expect(shortcutsLine).toBeGreaterThan(tabsLine);expect(lines[shortcutsLine]).toContain("Esc close");@@ -129,6 +129,12 @@ describe("ConfigurationMenuComponent", () => {expect(menu.getSearchValue("models")).toBe("f");menu.handleInput("\t");expect(menu.getActiveTab()).toBe("providers");++ menu.handleInput("\x1b[Z");+ expect(menu.getActiveTab()).toBe("mcp-connections");+ menu.handleInput("\x1b[Z");+ expect(menu.getActiveTab()).toBe("models");+ expect(menu.getSearchValue("models")).toBe("f");});it("keeps the existing catalog while syncing a post-login current model", async () => {diff --git a/packages/coding-agent/test/interactive-mode-status.test.ts b/packages/coding-agent/test/interactive-mode-status.test.tsindex f57e9fbe7f..56abec3127 100644--- a/packages/coding-agent/test/interactive-mode-status.test.ts+++ b/packages/coding-agent/test/interactive-mode-status.test.ts@@ -2439,7 +2439,7 @@ describe("InteractiveMode model selection persistence", () => {expect(fakeThis.getCachedModelCandidates()).toEqual([scopedModel, catalogModel]);await expect(fakeThis.findExactModelMatch("catalog")).resolves.toEqual(catalogModel);- getSelector().handleInput("\x1b[Z");+ getSelector().handleInput("\x1bs");expect(getSelector().render(120).join("\n")).toContain("catalog");expect(getAvailableModels).not.toHaveBeenCalled();getSelector().handleInput("\t");diff --git a/packages/coding-agent/test/model-selector-actions.test.ts b/packages/coding-agent/test/model-selector-actions.test.tsindex 0553b3751f..9b7694f968 100644--- a/packages/coding-agent/test/model-selector-actions.test.ts+++ b/packages/coding-agent/test/model-selector-actions.test.ts@@ -16,6 +16,10 @@ async function waitForAsyncRender(): Promise<void> {await new Promise((resolve) => setTimeout(resolve, 0));}+function getFauxModels(harness: Harness, count: number) {+ return Array.from({ length: count }, (_, index) => harness.getModel(`faux-${index + 1}`)!);+}+describe("ModelSelectorComponent", () => {const harnesses: Harness[] = [];@@ -181,7 +185,7 @@ describe("ModelSelectorComponent", () => {() => {},() => {},undefined,- { getRows: () => 12 },+ { availableModels: getFauxModels(harness, 12), getRows: () => 12 },);await waitForAsyncRender();@@ -280,7 +284,7 @@ describe("ModelSelectorComponent", () => {() => {},() => {},undefined,- { getRows: () => 16 },+ { availableModels: getFauxModels(harness, 12), getRows: () => 16 },);await waitForAsyncRender();@@ -290,11 +294,11 @@ describe("ModelSelectorComponent", () => {expect(lines.length).toBeLessThanOrEqual(16);expect(output).toContain("Scope: ");- expect(output).toContain("Shift+Tab scope");+ expect(output).toContain(`${process.platform === "darwin" ? "Option" : "Alt"}+S scope`);expect(output).toContain("(all/scoped)");expect(output).not.toContain("(1/12)");- selector.handleInput("\x1b[Z");+ selector.handleInput("\x1bs");lines = selector.render(120);output = stripAnsi(lines.join("\n"));