Skip to content

fix(ui): hide empty PR message for local-only branches - #132741

Merged
roboclaw-bot merged 1 commit into
mainfrom
openclaw/continue-previous-roboclaw-chat-session
Aug 29, 2026
Merged

roboclaw-bot merged 1 commit into
mainfrom
openclaw/continue-previous-roboclaw-chat-session

Conversation

@roboclaw-bot

@roboclaw-bot roboclaw-bot commented Aug 29, 2026 •

Copy link
Copy Markdown
Collaborator

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

Before After
Session hovercard before: redundant No PR yet line Session hovercard after: branch and diff remain without the redundant line
  • Regression proof: node scripts/run-vitest.mjs ui/src/components/session-hovercard.test.ts failed before the fix because .session-hovercard__no-pr was present, then passed after the fix (23 tests).
  • Mocked-Gateway browser proof: the final production behavior preserved the branch/diff row and removed the placeholder; all 8 session-hovercard E2E cases passed during the before/after capture.
  • node scripts/check-changed.mjs -- ui/src/components/session-hovercard.ts ui/src/components/session-hovercard.test.ts ui/src/i18n/locales/en.ts
  • pnpm ui:i18n:baseline
  • pnpm ui:build
  • Autoreview: clean, no accepted/actionable findings.

AI-assisted implementation; the author reviewed the code, test, and browser output.

Worked on by:

@clawsweeper

clawsweeper Bot commented Aug 29, 2026

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

Pull request received. I will update this pull request when review starts.

@openclaw-barnacle openclaw-barnacle Bot added app: web-ui App: web-ui size: XS maintainer Maintainer-authored PR labels Aug 29, 2026
@roboclaw-bot
roboclaw-bot marked this pull request as ready for review August 29, 2026 17:28
@roboclaw-bot roboclaw-bot reopened this Aug 29, 2026
@clawsweeper clawsweeper Bot added P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. labels Aug 29, 2026
@clawsweeper

clawsweeper Bot commented Aug 29, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge. Reviewed August 29, 2026, 6:32 PM ET / 22:32 UTC.

ClawSweeper review

What this changes

The 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 provenance

Possible regression — probable (reviewed change; known regression link). No predecessor PR is attributed.

Merge readiness

⚠️ Ready for maintainer review - 4 items remain

The 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
Reviewed head: bbcb6e3ca454150ad6a21c1e66d7986a7192978b
Owner decision: Required. See Decision needed.

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) The patch is focused, net-negative in production code, and aligns with both the producer contract and a sibling UI implementation.
Proof confidence 🌊 off-meta tidepool Not applicable: Repository State identifies this as a MEMBER-authored PR, so the external-contributor proof gate does not apply; the body nevertheless supplies before/after UI captures and a focused validation claim as supporting context.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Not applicable Not applicable: Repository State identifies this as a MEMBER-authored PR, so the external-contributor proof gate does not apply; the body nevertheless supplies before/after UI captures and a focused validation claim as supporting context.
Evidence reviewed 6 items Current-main behavior: Current main translates and renders the no-PR placeholder when a branch lacks createUrl, so the reported UI behavior remains present outside this PR.
Gateway contract: The branch contract says createUrl is absent for unpushed branches or branches with nothing to compare while the row still reports local changed files.
Producer behavior: The Gateway retains a branch snapshot for local changes without createUrl, which is the exact input state handled by this PR.
Findings None None.
Security None None.

How this fits together

The 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]
Loading

Decision needed

Question Recommendation
After exact-head CI completes, should this maintainer-authored Control UI cleanup be approved for landing? Approve after gates: Land the focused rendering correction once pending exact-head checks are green and the latest review’s Rank-up moves are satisfied.

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

  • Resolve merge risk (P1) - Exact-head CI is still in progress.
  • Resolve merge risk (P1) - Before landing, the latest ClawSweeper comment’s Rank-up moves must be checked and addressed or explicitly skipped.
  • Complete next step (P2) - Explicit maintainer review is required because the PR is maintainer-labeled and MEMBER-authored; this is not an automated repair candidate.
Agent review details

Security

None.

PR surface

Source -2, Tests +24. Total +22 across 3 files.

View PR surface stats
Area Files Added Removed Net
Source 2 6 8 -2
Tests 1 24 0 +24
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 3 30 8 +22

Review metrics

Metric Value Why it matters
Production versus test LOC production -2, tests +24 The correction removes the obsolete placeholder path while adding focused coverage for the no-create-URL branch state.

Merge-risk options

Maintainer options:

  1. Decide the mitigation before merge
    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.
  2. Pause or close
    Do not merge this PR until maintainers decide whether the risk is worth taking.

Technical review

Best 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.

Labels

Label justifications:

  • P3: This is a small Control UI presentation correction with limited blast radius.
  • rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🌊 off-meta tidepool and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Not applicable: Repository State identifies this as a MEMBER-authored PR, so the external-contributor proof gate does not apply; the body nevertheless supplies before/after UI captures and a focused validation claim as supporting context.

Evidence

What I checked:

Likely related people:

  • steipete: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)

Rank-up moves

Optional improvements that raise the rating; they are not merge blockers.

  • Confirm the latest ClawSweeper Rank-up moves and wait for exact-head CI before landing.

Rating scale

Score Internal tier Crab rank Meaning
6/6 S 🦀 challenger crab Exceptional readiness
5/6 A 🦞 diamond lobster Very strong readiness
4/6 B 🐚 platinum hermit Good normal PR; ordinary maintainer review
3/6 C 🦐 gold shrimp Useful, but confidence is limited
2/6 D 🦪 silver shellfish Proof or implementation needs work
1/6 F 🧂 unranked krab Not merge-ready
N/A NA 🌊 off-meta tidepool Rating does not apply

Overall follows the weaker of proof and patch quality.
Shiny media proof means a screenshot, video, or linked artifact directly shows the changed behavior. Runtime, network, CSP, and security claims still need visible diagnostics.

Workflow

  • ClawSweeper keeps one durable marker-backed review comment per issue or PR.
  • Re-runs edit this comment so the latest verdict, findings, and automation markers stay together instead of adding duplicate bot comments.
  • A fresh review can be triggered by eligible @clawsweeper re-review comments, exact-item GitHub events, scheduled/background review runs, or manual workflow dispatch.
  • PR/issue authors and users with repository write access can comment @clawsweeper re-review or @clawsweeper re-run on an open PR or issue to request a fresh review only.
  • Maintainers can also comment @clawsweeper review to request a fresh review only.
  • Fresh-review commands do not start repair, autofix, rebase, CI repair, or automerge.
  • Maintainer-only repair and merge flows require explicit commands such as @clawsweeper autofix, @clawsweeper automerge, @clawsweeper fix ci, or @clawsweeper address review.
  • Maintainers can comment @clawsweeper explain to ask for more context, or @clawsweeper stop to stop active automation.

History

Review history (1 earlier review cycle)
  • reviewed 2026-08-29T17:37:26.185Z sha 2c3dea2 :: needs maintainer review before merge. :: none

Worked on by:
- @steipete

Co-authored-by: steipete <[email protected]>
@roboclaw-bot
roboclaw-bot force-pushed the openclaw/continue-previous-roboclaw-chat-session branch from 2c3dea2 to bbcb6e3 Compare August 29, 2026 22:25
@roboclaw-bot

Copy link
Copy Markdown
Collaborator Author

Land-ready verification for bbcb6e3ca454150ad6a21c1e66d7986a7192978b:

  • Exact-head CI run 33278578960 is green, including openclaw/ci-gate. The unrelated Chrome-extension Playwright rejection in the first attempt passed on the failed-job rerun.
  • Local proof: node scripts/run-vitest.mjs ui/src/components/session-hovercard.test.ts (26 passed); node scripts/check-changed.mjs -- ui/src/components/session-hovercard.ts ui/src/components/session-hovercard.test.ts ui/src/i18n/locales/en.ts; pnpm ui:build.
  • Fresh Autoreview: clean, no accepted/actionable findings.
  • Visual proof: before and after screenshots from the mocked-Gateway browser flow.
  • Surface: production +6/-8 (net -2); tests +24/-0.
  • Latest ClawSweeper Rank-up move applied: reviewed the latest comment and waited for exact-head CI. No move was skipped.
  • OPENCLAW_TESTBOX=1 scripts/pr prepare-run 132741 passed with hosted exact-head gates.

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.

@roboclaw-bot
roboclaw-bot merged commit 4db4344 into main Aug 29, 2026
289 of 291 checks passed
@roboclaw-bot

Copy link
Copy Markdown
Collaborator Author

Merged via squash.

@roboclaw-bot
roboclaw-bot deleted the openclaw/continue-previous-roboclaw-chat-session branch August 29, 2026 23:50
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Aug 30, 2026
Worked on by:
- @steipete

Co-authored-by: roboclaw-bot <[email protected]>
Co-authored-by: steipete <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

app: web-ui App: web-ui maintainer Maintainer-authored PR P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. size: XS status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant