Repository navigation
fix(ui): hide empty PR message for local-only branches - #132741
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. |
|
Codex review: needs maintainer review before merge. Reviewed August 29, 2026, 6:32 PM ET / 22:32 UTC. ClawSweeper reviewWhat this changesThe PR hides the empty pull-request placeholder in Control UI session hovercards when a branch has no GitHub create-PR URL, while preserving branch details and the Create PR link when available. Regression provenancePossible regression — probable (reviewed change; known regression link). No predecessor PR is attributed. Merge readinessThe PR remains necessary: current main still renders “No PR yet” when the Gateway deliberately omits a create URL for local-only changed branches. The conditional rendering matches the Gateway contract and the equivalent chat UI behavior; no introduced correctness or security defect was found. The maintainer label and MEMBER association require explicit maintainer handling, with exact-head CI still pending. Priority: P3 Review scores
Verification
How this fits togetherThe Gateway sends each session’s branch and pull-request snapshot to the Control UI. The session hovercard presents the branch’s local diff information and shows a Create PR action only when the Gateway provides a usable URL. flowchart LR
A[Local session branch] --> B[Gateway branch snapshot]
B --> C[Control UI hovercard]
C --> D[Branch and diff summary]
D --> E{Create PR URL present?}
E -->|Yes| F[Create PR link]
E -->|No| G[No empty PR row]
Decision needed
Why: The item carries the protected maintainer label and Repository State identifies its author association as MEMBER, so automated cleanup must not close or land it. Before merge
Agent review detailsSecurityNone. PR surfaceSource -2, Tests +24. Total +22 across 3 files. View PR surface stats
Review metrics
Merge-risk optionsMaintainer options:
Technical reviewBest possible solution: Retain the conditional action row and its focused regression test, then land only after the designated maintainer confirms the cleanup and the exact-head checks pass. Do we have a high-confidence way to reproduce the issue? Yes: current Gateway tests establish a branch with local changes and no createUrl, and the focused hovercard test exercises that exact rendering state. This read-only review did not execute the test. Is this the best way to solve the issue? Yes: omitting the entire action row when no action exists follows the Gateway contract and matches the chat pull-request sibling; changing the producer would incorrectly invent a GitHub action. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against 6d3351190744. LabelsLabel justifications:
EvidenceWhat I checked:
Likely related people:
Rank-up movesOptional improvements that raise the rating; they are not merge blockers.
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
HistoryReview history (1 earlier review cycle)
|
Worked on by: - @steipete Co-authored-by: steipete <[email protected]>
2c3dea2 to
bbcb6e3
Compare
|
Land-ready verification for
Known proof gap: no live external channel was involved; the changed Control UI path is covered by the browser flow, focused regression, and exact-head CI. Separate follow-up if it recurs: investigate the Chrome-extension bootstrap Playwright binding race observed in the first CI attempt. |
|
Merged via squash.
|
Worked on by: - @steipete Co-authored-by: roboclaw-bot <[email protected]> Co-authored-by: steipete <[email protected]>
What Problem This Solves
Fixes an issue where session hovercards showed a redundant “No PR yet” line for local-only branches that had changes but no GitHub create-PR URL.
Why This Change Was Made
The hovercard now keeps the useful branch and diff summary while omitting the empty PR state. The existing “Create PR” link remains unchanged when the Gateway provides a valid create URL, and the unused English placeholder is removed.
User Impact
Session hovercards are quieter for unpushed or otherwise non-creatable branches, without losing branch details, diff counts, or the actionable Create PR link when available.
Evidence
node scripts/run-vitest.mjs ui/src/components/session-hovercard.test.tsfailed before the fix because.session-hovercard__no-prwas present, then passed after the fix (23 tests).node scripts/check-changed.mjs -- ui/src/components/session-hovercard.ts ui/src/components/session-hovercard.test.ts ui/src/i18n/locales/en.tspnpm ui:i18n:baselinepnpm ui:buildAI-assisted implementation; the author reviewed the code, test, and browser output.
Worked on by: