diff --git a/src/web/public/i18n.js b/src/web/public/i18n.js index e6a1ee0c..ba17ca60 100644 --- a/src/web/public/i18n.js +++ b/src/web/public/i18n.js @@ -214,6 +214,7 @@ 'Run DeepSeek': '运行 DeepSeek', 'Run OMP': '运行 OMP', 'Run Shell': '运行 Shell', + 'More tools': '更多工具', 'Select AI backend': '选择 AI 后端', 'Create New Case': '新建案例', 'Create new case': '新建案例', diff --git a/src/web/public/index.html b/src/web/public/index.html index 994e08c2..962cab83 100644 --- a/src/web/public/index.html +++ b/src/web/public/index.html @@ -460,9 +460,14 @@

Codeman

Manage AI Coding tools in persistent tmux sessions.

+
- diff --git a/src/web/public/mobile.css b/src/web/public/mobile.css index af764a67..70c84385 100644 --- a/src/web/public/mobile.css +++ b/src/web/public/mobile.css @@ -1705,17 +1705,21 @@ html.mobile-init .file-browser-panel { } .welcome-actions { - flex-direction: column; - gap: 0.5rem; margin-top: 1rem; } - .welcome-btn { + /* Only reached with the phone overview switched off. The primary spans the + column; the chips keep wrapping, a little taller for a thumb. */ + .welcome-primary { width: 100%; justify-content: center; min-height: 44px; - padding: 0.75rem 1rem; - font-size: 0.85rem; + font-size: 0.9rem; + } + + .welcome-chip { + height: 36px; + border-radius: 18px; } .history-show-more { diff --git a/src/web/public/settings-ui.js b/src/web/public/settings-ui.js index 1b2a4403..0cfa04d8 100644 --- a/src/web/public/settings-ui.js +++ b/src/web/public/settings-ui.js @@ -1645,40 +1645,81 @@ Object.assign(CodemanApp.prototype, { return flags[tool] !== false; }, - /** Render the registry's enabled, available CLIs as welcome-screen actions. */ + /** + * Render the registry's enabled, available CLIs as welcome-screen actions: + * ONE primary button, then every other entry as a slim chip in a row under it. + * + * The primary is the first AGENT in catalog order (the first entry whose kind + * is not 'shell'), so on a stock install it is Claude Code, and with Claude + * disabled or missing it is simply the next agent; only a catalog with no agent + * at all promotes the shell. Chosen from the catalog's order and kind, never by + * an id: the registry decides what comes first. Everything else keeps catalog + * order inside the chip row, so the DOM order across both is the catalog's. + * + * The CLI id travels only as DATA: `data-mode` for the click, and the + * `run-mode-dot ` logo slot every Run menu shares (styles.css draws the + * brand mark, or a plain dot for an id it has no logo for). No per-id class on + * the buttons themselves, so no rule anywhere can give one CLI its own look. + */ renderWelcomeCliActions() { const container = document.getElementById('welcomeCliActions'); if (!container) return; const catalog = Array.isArray(window.__codemanCliCatalog) ? window.__codemanCliCatalog : []; + const offered = catalog.filter((cli) => cli.enabled && this.isCliAvailable(cli.id)); + const primary = offered.find((cli) => cli.kind !== 'shell') || offered[0]; + // "Run