Repository navigation
chore: cover chat diagram controls on desktop and mobile - #184462
Conversation
Co-authored-by: vincentkoc <[email protected]>
|
🦞👀 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 changesAdds browser coverage for chat diagram rendering, source switching, expansion, accessibility titles, and page overflow at desktop and mobile-web sizes. Example: A sequence diagram appears in chat at 390×844.
Review scores
ProductKind: Test only · Worth it: Yes · Fix scope: Complete Merge readiness✅ Ready for maintainer review Keep open: this maintainer-authored PR adds useful diagram coverage without changing production behavior; no actionable patch defect was found, but the failing UI check remains unattributed. Priority: P3 Before mergeNone. FindingsNone. Agent review detailsHow this fits togetherSynthetic Gateway history enters the production Control UI chat renderer, which renders Mermaid fences as images with source and lightbox controls. flowchart LR
A[Synthetic Gateway history] --> B[Production chat page]
B --> C[Mermaid component]
C --> D[Diagram image]
C --> E[Source view]
D --> F[Image lightbox]
Technical reviewBest possible solution: Retain the focused browser contract and resolve or independently attribute the failing UI check before landing. Do we have a high-confidence way to reproduce the issue? This PR establishes a behavior contract rather than fixing a reported runtime defect; no target code was executed during this read-only review. Is this the best way to solve the issue? The scenarios reuse existing production components and test owners, adding meaningful viewport and diagram-type coverage without new production machinery. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 57a45d1f84a7. TestingProof path: in-process harness. SecurityNone. EvidenceWhat I checked:
PR surfaceTests +75. Total +75 across 1 file. Added test files: 1. View PR surface stats
LabelsLabel changes:
Label justifications:
Rank-up movesOptional improvements that raise the rating; they are not merge blockers.
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 26, 2026, 6:10 AM ET / 10:10 UTC. |
|
Merged via explicitly authorized admin squash with attributed pre-existing CI failures.
|
) Co-authored-by: vincentkoc <[email protected]>
What Problem This Solves
Diagram engine changes need a user-flow contract that covers desktop and narrow-screen chat rather than only SVG helpers.
User Impact
No production behavior changes. This is the first, independently landable test slice of the Pele migration stack.
Why This Change Was Made
Exercise the existing image, source and expanded-image controls through the production Control UI with a synthetic Gateway fixture, including an authored accessible title and page-overflow checks. The same test runs unchanged before and after the engine cutover. Requested by @vincentkoc.
Work sessions
Evidence
CI follow-up
The exact-head production diagram E2E passed 2/2 in CI (file time 9.458 seconds, run 40302606588). ClawSweeper found no actionable findings.
The overall CI gate is not green: the separate UI unit/browser shard failed with an EnvironmentTeardownError while importing extensions/active-memory/control-ui.presentation.json through settings/config tests. This PR changes only the diagram E2E file, which that shard explicitly excludes. A bounded local run of the two implicated suites passed 49/49 on the stack candidate, but that is not a reproduction of CI's pinned Bun shard and is not claimed as a fix. The outside-scope failure is recorded rather than hidden or repaired in this test-only PR.