Repository navigation
fix: new-session branch suggestions ignore search text - #199432
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 filters New Session branch suggestions by the From field before limiting results to eight. Example: Type PORTAL when release/customer-portal follows eight unrelated branches in the loaded catalog.
Review scores
ProductKind: Bug fix · Worth it: Yes · Fix scope: Complete Merge readiness✅ Ready for maintainer review Keep this PR open: it fixes a current branch-search defect with a focused change, and I found no actionable correctness or security defects; it remains a draft. Priority: P2 Before mergeNone. FindingsNone. Agent review detailsHow this fits togetherThe Checkout picker consumes the draft’s repository-scoped branch catalog and typed base reference, renders suggestions, and passes the selected reference to the existing draft and submission owners. flowchart LR
A[Gateway branch catalog] --> B[Draft repository owner]
B --> C[Checkout picker]
D[From field text] --> C
C --> E[Up to eight matching branches]
E --> B
B --> F[Explicit session submission]
Technical reviewBest possible solution: Keep filtering in the existing picker, preserve custom references and input identity, and complete the normal draft-to-ready validation. Do we have a high-confidence way to reproduce the issue? Current-main source deterministically shows the first eight branches regardless of input, matching the supplied before screenshot; I did not execute a reproduction. Is this the best way to solve the issue? The patch repairs the suggestion computation at its existing owner and separates catalog availability from match availability, avoiding input remounts without adding state or another implementation. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 76b7ed16d6e5. Provenance checked
TestingProof path: shipped entry point. SecurityNone. EvidenceWhat I checked:
Likely related people:
PR surfaceSource +7, Tests +47, Docs +4. Total +58 across 3 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, 11:38 PM ET / November 15, 2026, 04:38 UTC. |
|
Merged via explicitly authorized admin squash with attributed pre-existing CI failures.
|
Co-authored-by: vyctorbrzezowski <[email protected]>
What Problem This Solves
Fixes: New Session keeps offering the first eight branches instead of matching the name typed into the worktree’s From field, leaving later known branches unselectable.
User Impact
Users can type part of a known branch name and select the matching branch without spelling its full reference. Search is case-insensitive. Custom branches, tags, commits, blank/default behavior, and the explicit Start session boundary are preserved. No new network request, repository access, persistence policy, or migration is introduced.
Why This Change Was Made
Filter the existing repository-scoped catalog before applying the eight-result menu limit. Keep the field and its suggestion container mounted when a custom value has no matches, so typing does not lose focus or the input node. An empty result closes the suggestion popup rather than displaying an empty panel.
The existing draft, discovery, keyboard-selection and submission owners remain unchanged. Author simplification/review found no additional owner or helper needed. Net change: +7 production lines, +47 test lines, +4 documentation lines.
Requested by @vyctorbrzezowski.
Work sessions
Linked for team reference; these sessions aren’t public.
Evidence
Before — typing portal still shows the first eight unrelated branches
After — a later known branch is selectable
Narrow-screen branch search