Repository navigation
fix: align PR chip browser expectations with qualified labels - #172998
Conversation
|
🦞👀 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 updates two browser assertions to expect repository-qualified pull request labels. Example: The Details panel displays openclaw/openclaw pull request 103469 before and after another chip is dismissed.
Review scores
ProductKind: Test only · Worth it: Yes · Fix scope: Complete Regression provenanceRegression provenance — verified: source commit Merge readiness✅ Ready for maintainer review Keep open: this maintainer-authored PR repairs stale browser assertions still present on main, preserves interaction coverage, and introduces no identified defect. Priority: P3 Before mergeNone. FindingsNone. Agent review detailsHow this fits togetherThe Control UI receives session pull request metadata from the Gateway and renders status chips in Details; the browser scenario supplies Gateway fixtures and checks rendered labels and interactions. flowchart LR
A[Gateway fixture] --> B[Session PR event]
B --> C[Control UI Details]
C --> D[PR chip renderer]
D --> E[Qualified GitHub label]
E --> F[Browser assertions]
Technical reviewBest possible solution: Merge the focused expectation correction through the normal checks while preserving the qualified production labels. Do we have a high-confidence way to reproduce the issue? Current source deterministically renders #103469 against the two stale expectations; the body reports a matching baseline failure, corroborated by another PR's CI report. Is this the best way to solve the issue? Updating independent literal expectations is the narrowest repair and retains the scenario's existing behavioral coverage. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 04296fd25a0a. Provenance checked
TestingProof path: in-process harness. SecurityNone. EvidenceWhat I checked:
Likely related people:
PR surfaceTests +2. Total +2 across 1 file. Added test files: 0. View PR surface stats
LabelsLabel 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 October 15, 2026, 5:54 AM ET / 09:54 UTC. |
|
Merged via squash.
|
…aw#172998) Co-authored-by: Shakker <[email protected]>
Related: #172836
What Problem This Solves
The session pull-request browser regression still expects
#103469after #172836 made GitHub references repository-qualified. The existing Details and rate-limit scenario therefore fails on the intendedopenclaw/openclaw#103469label before it can check the remaining interactions.User Impact
There is no production UI change. This restores the regression test to the delivered label contract while retaining its checks for the PR title, rate-limit warning, CI popover and keyboard controls, layout, and dismissal.
Why This Change Was Made
Both exact text expectations in the same scenario need the repository prefix: the first displayed PR and the PR retained after another chip is dismissed. Keeping literal expected values checks the public presentation contract independently of the formatter; no assertions or cases are removed.
Evidence
The unchanged baseline reproduced the exact expected-versus-actual mismatch in the existing bundled UI browser configuration. The corrected file passed all 12 existing browser cases through its native UI E2E runner, including the Details/staleness case and dismissal check. Vitest reported 30.38 seconds; the complete test command took 32.47 seconds, including the existing bundled browser setup. Changed-file formatting, lint, the UI catalog check, and the affected
core-test-ui-e2e-chattype graph passed remotely.Hosted CI passed on
2ba56181d1fefaf4a3aaf2190e3b7b637dd3b0dc, and independent review found no defects. The browser CI row passed 24 tests across six files in 42.98 seconds; this file’s 12 cases took 23.707 seconds, including 2.175 seconds for the corrected Details/staleness case. The full browser job, including preparation, took 114 seconds. CI run. No UI behavior changes, so before/after screenshots are not applicable to this test-only correction.