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