Repository navigation
fix: session link browser test fails after chat styles load - #144690
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. |
|
@clawsweeper review |
|
🦞🧹 I asked ClawSweeper to review this item again. |
|
🦞👀 Re-review progress:
|
|
Codex review: needs maintainer review before merge. Reviewed September 11, 2026, 3:21 AM ET / 07:21 UTC. ClawSweeper reviewWhat this changesThe browser test loads the production sidebar and attribution styles and checks the correct computed display for each layout while retaining existing presentation coverage. Merge readiness✅ Ready for maintainer review Keep open as a useful, narrowly scoped correction: fetched main still contains the faulty assertion, and no actionable patch defect was found. Maintainer protection also precludes automatic closure. Priority: P3 Review scores
Verification
How this fits togetherControl UI session links appear inside Markdown and forwarded-message attribution rows. Production styles determine their layout; this browser fixture checks their computed appearance and truncation. flowchart LR
A[Session link fixture] --> B[Production styles]
B --> C{Parent layout}
C --> D[Markdown inline grid]
C --> E[Flex item grid]
D --> F[Browser assertions]
E --> F
Before mergeNone. Agent review detailsSecurityNone. PR surfaceTests +3. Total +3 across 1 file. View PR surface stats
Review metricsNone. Technical reviewBest possible solution: Keep the browser fixture faithful to both production layout contexts without changing product CSS or weakening its presentation assertions. Do we have a high-confidence way to reproduce the issue? Yes, from source: loading grouped.css makes the attribution link a flex item, contradicting main's inline-grid expectation. The PR reports the matching browser failure; this review did not execute it. Is this the best way to solve the issue? Yes. Importing the owning styles and distinguishing computed outer display corrects the fixture without removing cases or changing production behavior. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 67f55de55530. LabelsLabel changes:
Label justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
|
|
Merged via squash.
|
Related: #139428, #144359
Additional instructions
Maintainers can update this same-repository branch.
What Problem This Solves
Resolves a problem where the session-link browser test passes alone but fails in the shared UI shard after chat styles have loaded. The attribution case expects an inline display even though its real parent uses flex layout.
Why This Change Was Made
Load the owning sidebar and attribution styles explicitly, in the canonical chat stylesheet order. Assert
inline-gridfor sidebar links andgridfor attribution links: CSS blockification changes the outer display of a flex item while preserving its grid contents. Keep all four cases and their color, ellipsis, baseline, width, and icon assertions. No production styles change.User Impact
Reliable browser coverage of both actual layout contexts. No user-visible product behavior changes.
Evidence
Reused the failed UI job from PR improve: keep baseline maintenance out of unrelated CI tests #144359 (run
34563571171); test, CSS, render owner, and browser configuration match its actual merge commitf921a5de.Unchanged focused test: 4 passed. The same unchanged test with the real attribution stylesheet loaded: 3 passed, attribution failed with expected
inline-grid/ actualgrid, matching CI. Focused candidate: all 4 passed.CI's browser-session log records panels-tools-skills → menu-surface → tooltip-title → session-link. Menu-surface loads the shared chat stylesheet chain. Two local ordered-replay attempts were limited by Vite dependency optimization reloads: the first collected no tests; the warmed attempt passed 27 predecessor cases before another reload prevented the remaining files from collecting. Neither is claimed as a successful historical replay; the successful canonical shared-context CI coverage below provides the landing proof.
Mapped changed checks, formatting, deslop, and independent P2 review passed. Formatter AST equivalence is recorded. Net change: three test lines; all cases retained.
Exact-head CI 34565385035 passed. Its canonical shared UI shard passed all 358 files / 5,940 tests, including all four repaired cases and all recorded predecessor files. The scheduler used a different browser-session assignment; this is not an exact historical-order replay. The tested merge
e73b0b86contains the exact reviewed test bytes.