Repository navigation
fix(worktrees): choose known repositories and base branches - #199323
Conversation
Co-authored-by: vyctorbrzezowski <[email protected]>
|
🦞👀 Pull request received. I will update this pull request when review starts. ClawSweeper review completeClawSweeper finished reviewing this revision. The review result is being finalized. |
|
Codex review: needs maintainer review before merge. What this changesThis PR adds searchable repository and base-reference choices while preserving custom entry. Example: Create a worktree for /srv/projects/support using release.
Review scores
ProductKind: Feature · Worth it: Yes · Fix scope: Complete Merge readiness✅ Ready for maintainer review Keep this useful, maintainer-authored draft open; the change preserves existing creation semantics, and no actionable introduced defect was found. Priority: P3 Before mergeNone. FindingsNone. Agent review detailsHow this fits togetherThe Control UI derives repository choices from managed-worktree records, obtains branches through the existing discovery model, and sends explicit creation requests to the Gateway. flowchart LR
A[Managed worktree records] --> B[Repository picker]
B --> C[Worktrees model]
C --> D[Gateway branch discovery]
D --> E[Base reference picker]
E --> C
C --> F[Explicit Create request]
Technical reviewBest possible solution: Keep the shared reference field and existing discovery and mutation owners, with custom refs and automatic base selection preserved. Do we have a high-confidence way to reproduce the issue? Current-main source and the baseline screenshot establish the raw repository input and branch datalist; this read-only review ran no target code. Is this the best way to solve the issue? The shared component is used twice and owns only custom-entry presentation, while the model retains synchronous draft updates and request cancellation. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 92016ce978f0. Provenance checked
TestingProof path: shipped entry point. SecurityNone. EvidenceWhat I checked:
PR surfaceSource +90, Tests +127, Docs +2. Total +219 across 6 files. Added test files: 0. View PR surface stats
Preflight sourceSource unknown. Source comparison at the observed PR snapshot only. Completion is self-reported; body, policy, tests, execution, and report bytes are not verified. LabelsLabel changes: No label changes. Label justifications:
Rating scale6/6 🦀 challenger crab · 5/6 🦞 diamond lobster · 4/6 🐚 platinum hermit · 3/6 🦐 gold shrimp · 2/6 🦪 silver shellfish · 1/6 🧂 unranked krab. Overall follows the weaker of proof and patch quality; ✨ marks media proof (a screenshot, video, or linked artifact) that directly shows the changed behavior. WorkflowClawSweeper edits this one comment on every review. Comment Reviewed November 14, 2026, 7:11 PM ET / November 15, 2026, 00:11 UTC. |
|
Merged via squash.
|
…#199323) * fix(worktrees): choose known repositories and base branches Co-authored-by: vyctorbrzezowski <[email protected]> * test(ui): exercise automatic and explicit base through the worktree picker --------- Co-authored-by: vyctorbrzezowski <[email protected]>
What Problem This Solves
Creating a worktree requires retyping repository paths and branch names that the page already knows.
User Impact
Choose known repositories and discovered branches by name, search the lists, or enter a custom repository path, branch, tag, or commit. Automatic base retains the existing Gateway decision: remote default when configured, otherwise local HEAD. Only Create creates a worktree.
Why This Change Was Made
Both reference fields use the existing picker and creation model. Repository choices come from the current managed-worktree records, not a new filesystem scan or a complete project catalog. Branches still come from the selected repository’s existing discovery owner. Changing the source clears its old base selection and cancels the old branch read before it can repopulate the new source’s choices. Unknown refs, custom drafts, failed creation, offline editing, and admin boundaries remain supported.
Requested by @vyctorbrzezowski.
Work sessions
Linked for team reference; these sessions aren’t public.
Evidence
Before
After
Phone search and custom refs