Skip to content

refactor(workspaces): drop CLI-pick checkboxes from create flow#215

Merged
luokerenx4 merged 1 commit into
masterfrom
claude/workspace-create-cli-defaults
May 25, 2026
Merged

refactor(workspaces): drop CLI-pick checkboxes from create flow#215
luokerenx4 merged 1 commit into
masterfrom
claude/workspace-create-cli-defaults

Conversation

@luokerenx4
Copy link
Copy Markdown
Contributor

Summary

Three workspace-create surfaces (sidebar quick-create, Chat workspace section inline form, Template detail page spawn form) each carried a row of checkboxes asking the user to pick which CLI adapters (claude / codex / shell) to enable. Two problems:

  • Default was wrongtemplate-registry's fallback is ['claude'], so any template that didn't explicitly opt in shipped a "half-on" workspace. auto-quant was exactly this case.
  • Position was wrong — picking adapters is a configuration decision the user has no judgement basis for at first-action time; it also paved over the bad default by making it "the user's fault" if they didn't tick more boxes.

Changes

  • Remove the checkbox row from all three create surfaces. Every workspace now gets every available adapter enabled
  • Extract useCreateWorkspace hook — the three surfaces had drifted into three copies of the same tag-validation + agent-resolution + create-API logic
  • Template defaultAgents field still drives agents[0] (= "+ new session" default adapter) + TemplateCard badges, so template authors retain steering over the common case
  • auto-quant template defaults bumped to [claude, codex] for parity with chat / finance-research
  • Template README "Parameters" sections updated — were describing the now-removed agent-picker UI

Net: +166 / −234.

Test plan

  • npx tsc --noEmit clean (Alice strict)
  • npx tsc -b clean (UI strict)
  • pnpm test — 1789/1789 pass
  • Visual check of all three create surfaces (Workspaces sidebar / Chat section / Template detail page) — checkbox row gone, tag input + Create button remain

Boundary touch

None — UI + template metadata only. Backend createWorkspace API unchanged (still accepts an agents array; frontend just always sends the full set).


Generated by Claude Code

Three workspace-create surfaces (sidebar quick-create, chat-section
inline form, template detail page spawn form) each carried a row of
checkboxes asking the user to pick which CLI adapters (claude / codex /
shell) to enable. Two problems:

- Default was wrong — template-registry's fallback is `['claude']`,
  so any template that didn't explicitly opt in shipped a "half-on"
  workspace by default. auto-quant was exactly this case.
- Position was wrong — picking adapters is a configuration decision
  the user has no judgement basis for at first-action time. It also
  paved over the bad default by making it "the user's fault" if they
  didn't tick more boxes.

Remove the checkbox row from all three surfaces. Every workspace now
gets every available adapter enabled. The template's `defaultAgents`
field still drives `agents[0]` (= "+ new session" default adapter) +
the TemplateCard badges, so template authors retain steering over the
common case.

Three surfaces had also drifted into three copies of the same
tag-validation + agent-resolution + create-API logic. Extracted to
`useCreateWorkspace` hook so they stay in lockstep.

- auto-quant template defaults bumped to [claude, codex] for parity
  with chat / finance-research. The frontend would enable both
  anyway, but keeps the agents[0] semantic honest if a future
  template ever wants to reach back to "only claude on +".
- Template README "Parameters" sections updated — they were
  describing the now-removed agent-picker UI.
@luokerenx4 luokerenx4 merged commit 180d8e5 into master May 25, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants