From d16172c4b80fad83ebdbb5a98fb844682f81d76e Mon Sep 17 00:00:00 2001 From: Codeman maintainer Date: Sat, 24 Oct 2026 14:05:12 +0200 Subject: [PATCH] fix: apply the review items for #685 at merge palette agent switch: aria-hidden on .command-palette-agent, arrows lose role="button" and aria-label (no nested buttons in the row) i18n: zh-CN entry for the "Agent for the new session (Left/Right to change)" tooltip docs: Keyboard-Shortcuts Ctrl+K row says Left/Right change the agent on the New session row test: pin the aria-hidden switch and the zh-CN tooltip entry in command-palette-ui.test.ts Co-Authored-By: Claude Opus 5.5 (1M context) --- docs/wiki/Keyboard-Shortcuts.md | 2 +- src/web/public/i18n.js | 2 ++ src/web/public/panels-ui.js | 12 +++++++----- test/command-palette-ui.test.ts | 14 ++++++++++++++ 4 files changed, 24 insertions(+), 6 deletions(-) diff --git a/docs/wiki/Keyboard-Shortcuts.md b/docs/wiki/Keyboard-Shortcuts.md index d4d54c46..8426daec 100644 --- a/docs/wiki/Keyboard-Shortcuts.md +++ b/docs/wiki/Keyboard-Shortcuts.md @@ -8,7 +8,7 @@ Press `Ctrl+?` in the app for the same list in a floating overlay. | Shortcut | Action | | ------------------------------- | --------------------------------------------------------------- | -| `Ctrl+K` (also `Cmd+K`, `Alt+K`)| Find an open session or start a new one. | +| `Ctrl+K` (also `Cmd+K`, `Alt+K`)| Find an open session or start a new one. On the **New session** row, `Left` / `Right` change the agent it starts. | | `Ctrl+Tab` | Next session. | | `Alt+[` / `Alt+]` | Previous / next tab. | | `Alt+1` to `Alt+9` | Switch to tab N. Physical keys, so macOS Option layouts work. | diff --git a/src/web/public/i18n.js b/src/web/public/i18n.js index 2d0bbda9..7ae0575e 100644 --- a/src/web/public/i18n.js +++ b/src/web/public/i18n.js @@ -94,6 +94,8 @@ 'Move to Ungrouped': '移到未分组', 'Move to new group': '移到新分组', 'New session': '新建会话', + // The Cmd+K palette's new-session agent switch (panels-ui.js, its title tooltip). + 'Agent for the new session (Left/Right to change)': '新会话使用的智能体(按左/右方向键切换)', 'A session is already starting.': '已有会话正在启动。', 'Follow parent again': '重新跟随父会话', 'Parent closed; placed on its own': '父会话已关闭;单独放置', diff --git a/src/web/public/panels-ui.js b/src/web/public/panels-ui.js index 9561d4a3..40a758f5 100644 --- a/src/web/public/panels-ui.js +++ b/src/web/public/panels-ui.js @@ -694,19 +694,21 @@ Object.assign(CodemanApp.prototype, { /** * The new-session row's agent switch: arrows either side of the agent's logo - * and name. Spans, not buttons: the row itself is a