Skip to content

Reapply composer base-ref picker with final UX - #21543

Merged
nwparker merged 1 commit into
mainfrom
nwparker/unrevert-branch-change
Sep 18, 2026
Merged

nwparker merged 1 commit into
mainfrom
nwparker/unrevert-branch-change

Conversation

@nwparker

@nwparker nwparker commented Sep 18, 2026 •

Copy link
Copy Markdown
Contributor
Files Added Deleted Net
Test 7 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​618 $\color{#cf222e}{\Huge{\mathbf{−}}}$​1 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​617
Prod 18 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​187 $\color{#cf222e}{\Huge{\mathbf{−}}}$​14 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​173

ELI5

The previous revert removed the New Workspace base-branch picker, so users could not choose a release or feature branch while creating a workspace. This restores the final reviewed UX from PR #17250.

What Changed

The New Workspace composer again separates the workspace name from the branch it is created from. The final UX uses the clearer Create From label, a compact base-ref control, and a Branch from picker for typed names and issue-backed sources. The picker lists branches when opened and preserves the typed workspace name.

This re-applies the complete implementation from #17250, including its state handling, draft persistence, visibility rules, tests, and shared picker move.

Why

The revert removed a requested workflow and discarded the final UX that had already been reviewed and merged. Reapplying the known-good merge keeps the original implementation and tests together instead of rebuilding a partial variant.

Original implementation author: Vincent (@Tkotm76).

Linked Issue

Fixes #15747

Visual Proof

Before: original PR before screenshot

After: final composer screenshot

Testing

The restored commit contains the original focused coverage for picker visibility, naming intent, draft persistence, rendered composer behavior, and empty-query branch listing. A local targeted Vitest run was started after restoration but did not complete in this workspace environment.

  • I manually tested these changes locally
  • Automated tests added/updated, or explained why not below

Review

  • Renderer-only behavior; no platform-specific keyboard, path, child-process, or wire changes.
  • Existing runtime helpers continue to resolve refs on the repository's execution host, including SSH/remote repositories.
  • The restored implementation includes the original performance and visibility guards and does not add a new IPC surface.
  • Original author credited in the commit and PR description.

Agent skill upstream boundary

  • Not applicable.

Notes

This is an exact re-application of the merged #17250 implementation after #21536 reverted it.

Checklist

  • This PR is small and focused
  • I explained what changed and why (ELI5, the user-facing before/after, the mechanism, and why over the alternatives)
  • Before/after screenshots or videos attached for UI changes, or N/A with reason
  • Self-reviewed for correctness, security, and performance
  • Cross-platform, SSH/remote, and path/shortcut impact considered (or N/A)
  • pnpm lint, pnpm typecheck, pnpm test, and pnpm build pass (or CI will cover; local preferred)

@pullfrog

pullfrog Bot commented Sep 18, 2026 •

Copy link
Copy Markdown
Contributor

This run was cancelled 🛑

The workflow was cancelled before completion. Please check the link below for details.

Pullfrog  | View workflow run | via Pullfrog | 𝕏

@nwparker
nwparker merged commit 9ebfd2e into main Sep 18, 2026
4 of 5 checks passed
@nwparker
nwparker deleted the nwparker/unrevert-branch-change branch September 18, 2026 23:00
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.

[Feature]: Pick a base branch when creating a workspace from a task

1 participant