Skip to content

chore: cover chat diagram controls on desktop and mobile - #184462

Merged
roboclaw-bot merged 1 commit into
mainfrom
roboclaw/pele-chat-contracts
Oct 27, 2026
Merged

roboclaw-bot merged 1 commit into
mainfrom
roboclaw/pele-chat-contracts

Conversation

@roboclaw-bot

@roboclaw-bot roboclaw-bot commented Oct 26, 2026 •

Copy link
Copy Markdown
Collaborator

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

  • Production-bundle E2E: 2/2 passing (1440×1000 dark desktop and 390×844 light mobile-web viewport). This is mobile-web evidence, not an Android/iOS native-app claim.
  • UI E2E-chat typecheck leaf, focused lint, formatting and diff checks passed.
  • Independent P0–P2 source review: no actionable findings; runtime selectors were also exercised by the E2E test.
  • Actual Mermaid baseline screenshots retained for matched before/after delivery with the engine PR.

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.

@clawsweeper

clawsweeper Bot commented Oct 26, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

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

ClawSweeper review complete

ClawSweeper finished reviewing this revision. The review result is being finalized.

View the workflow run.

@roboclaw-bot
roboclaw-bot marked this pull request as ready for review October 26, 2026 09:49
@roboclaw-bot roboclaw-bot changed the title test: cover chat diagram controls on desktop and mobile chore: cover chat diagram controls on desktop and mobile Oct 26, 2026
@clawsweeper clawsweeper Bot added P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. labels Oct 26, 2026
@clawsweeper

clawsweeper Bot commented Oct 26, 2026

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge.

What this changes

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

  • Before: Existing tests do not cover this narrow-screen sequence-diagram control flow.
  • After: The new test checks image decoding, page overflow, source switching, and expanded-image reuse.

Review scores

Measure Result What it means
Overall readiness 🦐 gold shrimp (3/6) Focused, useful browser coverage with no concrete defect found; supplied execution evidence is a test-run report, and the red UI check remains unexplained.
Proof confidence 🦐 gold shrimp (3/6) This collaborator-authored, test-only PR reports two production-bundle browser cases using a synthetic Gateway; it changes no shipped runtime behavior and is outside the ordinary contributor-proof gate.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Product

Kind: Test only · Worth it: Yes · Fix scope: Complete
User problem: A diagram-engine migration could regress chat controls or narrow-screen layout without a matching browser contract.
Reason: The maintainer-authored scope adds useful coverage for existing behavior and keeps the engine migration separate.

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
Reviewed head: 639f0e5e7ebcf263352f3316591688f7ce40f872

Before merge

None.

Findings

None.

Agent review details

How this fits together

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

Technical review

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

Testing

Proof path: in-process harness.

Security

None.

Evidence

What I checked:

PR surface

Tests +75. Total +75 across 1 file. Added test files: 1.

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

Labels

Label changes:

  • add P3: This is test coverage for existing diagram behavior, with no production behavior change.
  • add rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; proof is 🦐 gold shrimp and patch quality is 🐚 platinum hermit.
  • add status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR.

Label justifications:

  • P3: This is test coverage for existing diagram behavior, with no production behavior change.
  • rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; proof is 🦐 gold shrimp and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR.

Rank-up moves

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

  • Inspect the failing UI job and establish whether its failure is patch-caused or inherited.

Rating scale

6/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.

Workflow

ClawSweeper edits this one comment on every review. Comment @clawsweeper re-review for a fresh review only. Repair and merge execution lanes are retired.

Reviewed October 26, 2026, 6:10 AM ET / 10:10 UTC.

@roboclaw-bot
roboclaw-bot merged commit df0dc9d into main Oct 27, 2026
152 of 155 checks passed
@roboclaw-bot
roboclaw-bot deleted the roboclaw/pele-chat-contracts branch October 27, 2026 07:29
@roboclaw-bot

Copy link
Copy Markdown
Collaborator Author

Merged via explicitly authorized admin squash with attributed pre-existing CI failures.

github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Oct 28, 2026
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 P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. size: S 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