Repository navigation
Revert "feat(composer): choose a base ref in the New Workspace composer" - #21536
Conversation
There was a problem hiding this comment.
✅ No new issues found.
Reviewed changes — a complete, clean revert of #17250; the diff is the exact inverse of squash b7d694f (25 files, +15/−805 vs. +805/−15), with no dangling references to the removed symbols.
- Base-ref picker removed from the composer —
ComposerBaseRefPicker,base-ref-picker-visibility, and thebaseBranch/onBaseBranchChange/startFromResetHintprops onNewWorkspaceComposerCardPropsare gone;NewWorkspaceComposerNameSectionno longer renders the control. - Naming-intent flag removed end-to-end —
baseBranchNamesWorkspaceis gone from the identity model, source/target state,NewWorkspaceDraft,draft-target-sync, and every action hook, so abaseBranchagain always becomes a branch name-source pill and issue/PR selection unconditionally clears it. - Shared picker moved back —
CreateFromPicker(and its test) return fromcomponents/repo/tocomponents/automations/, and the picker's 2-character search gate is restored. - Feature tests deleted — the start-from card test, picker-visibility test, name-source-selection test, and branch-start-point test are removed with the feature.
Verified locally: pnpm tc:web passes; the affected tests (automations/CreateFromPicker.test.tsx, draft-target-sync.test.ts, multiple-create-reset.test.ts) pass; and oxlint --config config/oxlint-react-doctor.json reports 0 warnings on the reverted picker, so the re-added no-adjust-state-on-prop-change disable directive is not flagged as unused.
ℹ️ The revert also drops the Automations picker's open-immediately branch listing
CreateFromPicker is shared with the Automations "Branch from" field, and #17250's last change made it list the repo's branches on an empty query. Restoring the trimmedQuery.length < 2 gate therefore removes that listing for Automations too, not just the composer.
Technical details
# Automations picker loses empty-query branch listing
## Affected sites
- src/renderer/src/components/automations/CreateFromPicker.tsx:147 — `trimmedQuery.length < 2` short-circuits the search effect, so the popover opens with only the project default until two characters are typed.
## Required outcome
- Decide whether the open-immediately listing was desirable independently of the reverted composer UX. If so, it needs to be re-landed on its own (the search helper `searchRuntimeRepoBaseRefs` already supports an empty query).
## Open questions for the human
- Was dropping the Automations listing an accepted side effect of the revert, or should it be restored separately?DeepSeek Flash (free via Pullfrog for OSS) | 𝕏
…ser" (#21536) (#21543) This reverts commit a7b9ea5. Co-authored-by: Vincent <[email protected]>

Reverts #17250
UX update didn't get shipped