Skip to content

fix: session link browser test fails after chat styles load - #144690

Merged
steipete merged 1 commit into
mainfrom
codex/session-link-browser-display
Sep 11, 2026
Merged

steipete merged 1 commit into
mainfrom
codex/session-link-browser-display

Conversation

@steipete

@steipete steipete commented Sep 11, 2026 •

Copy link
Copy Markdown
Contributor

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-grid for sidebar links and grid for 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 commit f921a5de.

  • Unchanged focused test: 4 passed. The same unchanged test with the real attribution stylesheet loaded: 3 passed, attribution failed with expected inline-grid / actual grid, 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 e73b0b86 contains the exact reviewed test bytes.

@clawsweeper

clawsweeper Bot commented Sep 11, 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 Sep 11, 2026
@steipete
steipete marked this pull request as ready for review September 11, 2026 05:17
@steipete

Copy link
Copy Markdown
Contributor Author

@clawsweeper review

@clawsweeper

clawsweeper Bot commented Sep 11, 2026

Copy link
Copy Markdown
Contributor

🦞🧹
ClawSweeper re-review requested.

I asked ClawSweeper to review this item again.
Action: item re-review queued (workflow sweep.yml, event exact_review_queue).
Result: when the review finishes, ClawSweeper will create the durable review comment if needed or update the existing comment in place.

@clawsweeper

clawsweeper Bot commented Sep 11, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
Exact review queued.

Re-review progress:

@clawsweeper

clawsweeper Bot commented Sep 11, 2026

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge. Reviewed September 11, 2026, 3:21 AM ET / 07:21 UTC.

ClawSweeper review

What this changes

The 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
Reviewed head: c8fece8008d4c21a393e2f390ad46d092e3817da

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) A focused, source-supported test correction with preserved assertions and successful CI.
Proof confidence 🌊 off-meta tidepool Not applicable: The external-contributor runtime-proof gate does not apply to this maintainer-authored test correction. Its focused browser results and successful shared UI CI address the changed fixture; there is no changed production flow requiring visual proof.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Not applicable Not applicable: The external-contributor runtime-proof gate does not apply to this maintainer-authored test correction. Its focused browser results and successful shared UI CI address the changed fixture; there is no changed production flow requiring visual proof.
Evidence reviewed 6 items Introduced change: The pinned parent-to-head diff changes only stylesheet imports and layout-specific display expectations; all four cases and the other assertions remain.
Production layout contract: The attribution row uses inline-flex, while titled links use inline-grid in chat/text.css. The renderer places the link directly inside that flex parent, making grid the correct computed display. The fixture's import order matches styles/chat.ts.
Still necessary on fetched main: Fetched main still omits both owning stylesheets and expects inline-grid in both contexts. The relevant production styles are identical between the reviewed head and fetched main. The test file does not exist at the supplied latest-release commit.
Findings None None.
Security None None.

How this fits together

Control 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
Loading

Before merge

None.

Agent review details

Security

None.

PR surface

Tests +3. Total +3 across 1 file.

View PR surface stats
Area Files Added Removed Net
Source 0 0 0 0
Tests 1 17 14 +3
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 1 17 14 +3

Review metrics

None.

Technical review

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

Labels

Label changes:

  • add P3: This is bounded browser-test maintenance with no production behavior change.
  • add rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🌊 off-meta tidepool and patch quality is 🐚 platinum hermit.

Label justifications:

  • P3: This is bounded browser-test maintenance with no production behavior change.
  • rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🌊 off-meta tidepool and patch quality is 🐚 platinum hermit.

Evidence

What I checked:

Likely related people:

  • RoboClaw: Raw commit 7f8a694 adds ui/src/components/session-link-presentation.browser.test.ts:7 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: 7f8a694ee1c8; files: ui/src/components/session-link-presentation.browser.test.ts)

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.

@steipete
steipete merged commit 2579303 into main Sep 11, 2026
134 checks passed
@steipete
steipete deleted the codex/session-link-browser-display branch September 11, 2026 07:36
@steipete

Copy link
Copy Markdown
Contributor Author

Merged via squash.

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 size: XS

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant