Repository navigation
refactor(composer): delete the full-create path no caller reaches - #26052
Conversation
NewWorkspaceComposerModal is the only renderer of the composer card, and it overrides the card props' onCreate (the full-create submit) with its quick create and never reads useComposerState's submit. The full path (source and submit preparation, creation execution and its finalization, issue-command, startup and structured-launch helpers, the orchestration) was reachable only from its own tests. Delete it with them, and drop onCreate and submit from the composer contracts.
Removing the full-create path left code whose only readers were gone: - applyWorktreeMeta and the updateWorktreeMeta plumbing that fed it - createWorktree and setSidebarOpen on the composer target store - currentIssueCommand on the composer model - buildAgentPromptWithContext and getLinkedWorkItemPromptContext (only their own tests still called them) and those test cases - the "Selected agent is disabled" locale string in every catalog - the export on confirmRuntimeIssueCommandRead The 'full' create-gate mode goes too. Its only caller passed 'quick', so the default named a mode with no create action. That removes the option, the full gate, the issue-automation wait flag and the renderer issue command preload that ran only in 'full' mode. Quick create is unchanged. The quick path's name-retirement comment pointed at the deleted full submit path; it now carries that reasoning itself, including the mobile counterpart that must change with it. An e2e comment no longer names applyWorktreeMeta.
Review and QA summaryThe problem. The New Workspace composer carried two ways to create a workspace:
It was unreachable because the modal, the only component that renders the composer card, passes its own What changes for users: nothing. Every create still runs the same quick create as on main. Review
Live QA (main vs this branch, same machine, macOS)Production builds of main (d3e1494) and this branch (13420ab), each with an isolated profile, driven over Playwright/CDP:
Verified and not verified
|
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configuration
📒 Files selected for processing (46)
💤 Files with no reviewable changes (35)
Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 6 remain after this review. 📝 WalkthroughWalkthroughThe composer no longer exposes the full-submit API or its preparation, orchestration, and creation modules. Quick-submit actions remain, and the create gate now uses quick-submit checks. The changes also remove issue-command loading and related prompt helpers, plus worktree metadata actions from the composer action contracts. Priority: ⬇️ Low Merge Risk: ⚪ Minimal · up to Quick-create issue automation retains its submission-time command check. No actionable merge-blocking risk was established. 🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✨ Finishing Touches 💡 2📝 Generate docstrings 💡
🛠️ Fix failing CI checks 💡
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
ELI5
The new-workspace composer contains a second, older way to create a workspace (the "full create" path) that nothing in the app can reach any more. Only its own tests run it. This PR deletes it, so the next change to workspace creation has one composer path to move, not two. Nothing in the app changes.
What Changed
The problem.
submitand as the composer card'sonCreate.NewWorkspaceComposerModalis the only component that renders the composer card. The other is a test fixture.submitfromuseComposerState.onCreate={() => void handleCreate()}after{...cardProps}, which overrides the card props'onCreate: submit.handleCreateruns the quick create (submitQuick), the composer's only create.For users: nothing changes. Every create still goes through the quick create, as before.
The change:
full-submit-source-preparationfull-submit-preparationfull-creation-execution,-finalization,-issue-command,-startup,-structured-launchfull-submit-orchestrationexecuteFullCreation,prepareFullSubmit,prepareFullSubmitSource,submitand the full-submit types;onCreate(the modal supplies its own);useComposerState'ssubmit.applyWorktreeMetaand theupdateWorktreeMetaplumbing behind it;createWorktreeandsetSidebarOpen(quick create uses the app store's);currentIssueCommandon the composer model;buildAgentPromptWithContextandgetLinkedWorkItemPromptContext, with their tests;createGateModedefaulted to'full', and the modal, the only caller, always passed'quick'. With the full submit gone, the default would have named a mode with no create action. This removes:getFullComposerCreateDisabled;Why
Dead code that looks live is the code a later change trips on. The next step, moving new-workspace launches onto one host operation, would otherwise have to port or reason about a path no user can reach.
Linked Issue
None.
Visual Proof
N/A: no reachable behavior changes. Main and this branch were compared live; the screenshots are in the review comment.
Testing
tc:webandtc:nodepass (tc:webre-run on the follow-up commit, which touches only renderer code).Follow-up commit: 43 composer, card, gate and work-item test files pass (394 tests), along with the localization checks.
The 17 composer test files (composer-state, the composer card and modal,
useComposerState) pass: 101 tests.oxlint is clean.
No reference to a deleted module or symbol remains in
src/ortests/.The CI timing baseline still lists the two deleted tests. The balancer only weights files that exist, and the baseline already tolerates deleted paths (
ci-shard-timings.md).I manually tested these changes locally
Automated tests added/updated, or explained why not below
AI Disclosure
Review
Agent skill upstream boundary
docs/reference/agent-skill-sharing-upstream-boundary.mdand copies or mechanically translates no upstream skill-installer source, tests, fixtures, registry entries, path tables, comments, or documentation.Notes
Author: @BrennanKB5. Deletion only (about −1,740 lines net). No wire, storage or platform impact.
Checklist
N/Awith reasonpnpm lint,pnpm typecheck,pnpm test, andpnpm buildpass (or CI will cover; local preferred)