[Bug]: New role wizard's CLI picker only lists CodeBuddy/Codex/Claude Code, missing DSH and other platform agent CLIs
Component / host
Platform — web / API
Edition
Platform
LoopForge version
v0.3.6 (c87694a); the same restriction is present on main (08e7110).
What happened
In 角色 → 新建角色 → 运行方式 → CLI, the select offers only CodeBuddy, Codex and Claude Code.
The platform's built-in executor catalog contains more agent CLIs: OpenCode, Cursor CLI, Antigravity, Kimi Code, Pi, DeepSeek Harness (DSH) and ZCode. They already appear in the chat composer, personal credentials and runner labels, and the executor model catalog already serves their model/effort lists, but they cannot be selected for a role.
If a role already has executorId: "dsh" (for example created through the API), the wizard shows a disabled 历史执行器 dsh(请重新选择 CLI) entry, so the role cannot be edited without switching to one of the three offered CLIs.
What I expected
The role CLI picker should offer every built-in platform executor — the same catalog as /api/executors — including DeepSeek Harness and the other agent CLIs. Selecting one should populate the existing model/effort picker from /api/executor-models.
Steps to reproduce
- Sign in to a Platform deployment (v0.3.6 or current
main) and open any project. - Go to 角色 → 新建角色.
- Under 运行方式, open the CLI select.
- Observe only CodeBuddy / Codex / Claude Code.
- Optional: save a role with
executorId: "dsh"throughPUT /api/agents, then reopen it in the wizard — DSH appears only as a disabled 历史执行器.
Additional context
- The chat composer CLI picker, personal credential cards and runner labels already expose the expanded list, so the role wizard is inconsistent with the rest of the platform.
- SOP run requirements already know how to check API keys for these CLIs, so the gap is only role creation/editing.
- Hermes is not currently a Platform executor: this checkout and
mainonly support it through LoopForge Local (.hermes/skills+delegate_task). Excluding Hermes from this dropdown is therefore expected today; supporting Hermes as a Platform executor would be a separate feature request.
Triage: confirmed bug.
Reproduced on main (08e7110):
web/app/agents.js'sexecutorOptions()hardcodes an allow-list['codebuddy','codex','claude']for the role wizard's CLI select, so OpenCode, Cursor CLI, Antigravity, Kimi Code, Pi, DeepSeek Harness (dsh) and ZCode never appear, even thoughinternal/repo/catalog.go'sBuiltInExecutors()already lists all of them and/api/executor-modelsalready serves their model/effort catalogs.internal/httpapi/catalog.go's agent-save validation (role PUT and the workflow-template agent endpoint) also returns a stale error message claiming the CLI is limited to codebuddy/codex/claude, which no longer matches whatrepo.BuiltInExecutor()actually accepts.- Confirmed via
PUT /api/agents: a role saved withexecutorId: "dsh"shows only as a disabled历史执行器 dsh(请重新选择 CLI)entry in the wizard, matching the report.
Actual: role wizard CLI select only lists CodeBuddy/Codex/Claude Code; roles already using another built-in executor id can't be re-selected without switching to one of those three.
Expected (per report): the wizard should offer every built-in executor from /api/executors, same as the chat composer, personal credential cards and runner labels.