Skip to content

test(ui): label folded commentary in the routed-model history e2e - #206809

Merged
obviyus merged 1 commit into
mainfrom
fix/model-picker-refresh-e2e
Nov 27, 2026
Merged

obviyus merged 1 commit into
mainfrom
fix/model-picker-refresh-e2e

Conversation

@obviyus

@obviyus obviyus commented Nov 27, 2026

Copy link
Copy Markdown
Collaborator

What Problem This Solves

checks-ui-e2e is red on main in chat-flow.model-picker-refresh.e2e.test.ts › "keeps historical work with its author when switching routed models" (scheduled run 46007024811, and unrelated PRs). The assertion at line 309 expects "Finding from GPT." to be hidden inside Worked, but it is shown below it. It fails every run, not only sometimes.

Why This Change Was Made

#140835 changed the product rule on purpose: assistant text folds into Worked only when the model labels it commentary. Unlabeled text before a tool call now stays visible. That PR relabeled the unit fixtures but not this e2e fixture, whose pre-tool text has no phase. The test asserted the removed behavior.

Fix: label the fixture's pre-tool text phase: "commentary", the same change #140835 made to its unit fixtures. No product code changes. The test still proves what it is for: the fold follows the model that wrote the work (Claude's commentary stays inline, GPT's folds), before and after switching the routed model.

User Impact

None. Test-only.

Evidence

  • On main (11a3b5704647), locally: fails with the same assertion as CI (expected true to be false, line 309); failure screenshot shows Worked › followed by visible "Finding from GPT.".
  • With the fix: the whole file (4 tests) passed in 10 of 10 sequential local runs.

- #140835 folds only phase-labeled commentary; the fixture's pre-tool text had no phase, so line 309 asserted removed behavior.
@clawsweeper

clawsweeper Bot commented Nov 27, 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.

@clawsweeper clawsweeper Bot added P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-environment Preliminary submission classification; full source review pending. 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. and removed clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-environment Preliminary submission classification; full source review pending. labels Nov 27, 2026
@clawsweeper

clawsweeper Bot commented Nov 27, 2026

Copy link
Copy Markdown
Contributor

Codex review: passed.

What this changes

Adds an explicit commentary phase to the routed-model history fixture so its folding expectations match the current presentation contract.

Example: The routed-history test displays “Finding from GPT.” before a tool call.

  • Before: The unlabeled text stays visible, failing the assertion that it is folded.
  • After: The labeled commentary folds under Worked and becomes visible when expanded.

Review scores

Measure Result What it means
Overall readiness 🦐 gold shrimp (3/6) Correct, minimal test maintenance supported by source inspection, reported red/green runs, and passing reviewed-head CI; execution evidence remains harness-based.
Proof confidence 🦐 gold shrimp (3/6) No shipped behavior changes; browser-harness validation and reviewed-head CI support this fixture correction without requiring a separate live-product demonstration.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Product

Kind: Test only · Worth it: Yes · Fix scope: Complete
User problem: The UI E2E suite rejects intended commentary-folding behavior because its historical fixture lacks the required phase label.
Reason: Restores useful browser regression coverage without changing production behavior or weakening expectations.

Merge readiness

✅ Ready for maintainer review

This PR correctly repairs an obsolete fixture without weakening its assertions; no actionable findings remain, and checks pass for the reviewed head.

Reviewed head: 51f7e60265d0dbe3bcdf999c7dc9b6ddb756f7dc

Before merge

None.

Findings

None.

Agent review details

How this fits together

The browser test supplies historical messages through a mock Gateway, exercises the production chat presentation and model picker, and checks rendered visibility before and after switching models.

flowchart LR
  A[History fixture] --> B[Mock Gateway]
  B --> C[Chat presentation]
  C --> D[Worked disclosure]
  E[Model picker] --> C
  D --> F[Browser assertions]
Loading

Technical review

Best possible solution:

Keep the explicit commentary label and all existing historical-author, model-switch, and disclosure assertions.

Do we have a high-confidence way to reproduce the issue?

Source establishes the mismatch between the unlabeled fixture and commentary-only folding; the author reports matching base failure and fixed-file passes, but this review ran no tests.

Is this the best way to solve the issue?

The one-line fixture correction is the smallest complete fix because it restores the test’s intended input while preserving the deliberately changed product behavior.

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning medium; reviewed against 4bc00fc6f22f.

Provenance checked

  • Routed-model historical work fixture keeps the original intent (1129d4c: Protect historical model authorship when selecting a different routed model; the later merged change intentionally requires commentary labels for foldable text.)

Testing

Proof path: in-process harness.

Security

None.

Evidence

What I checked:

Likely related people:

  • Marvinthebored: Raw commit 1129d4c adds ui/src/e2e/chat-flow.model-picker-refresh.e2e.test.ts:240 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: 1129d4c0716c; files: ui/src/e2e/chat-flow.model-picker-refresh.e2e.test.ts)
  • leapdragon: Raw commit 3f475cc adds ui/src/pages/chat/chat-turn-presentation.ts:157 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: 3f475cc62f4e; files: ui/src/pages/chat/chat-turn-presentation.ts)

PR surface

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

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

Preflight source

Source unknown. Source comparison at the observed PR snapshot only. Completion is self-reported; body, policy, tests, execution, and report bytes are not verified.

Labels

Label changes:

  • 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:

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

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 November 27, 2026, 11:36 AM ET / 16:36 UTC.

@obviyus
obviyus merged commit a14e58f into main Nov 27, 2026
88 checks passed
@obviyus
obviyus deleted the fix/model-picker-refresh-e2e branch November 27, 2026 17:31
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Nov 28, 2026
…enclaw#206809)

## What Problem This Solves

`checks-ui-e2e` is red on `main` in `chat-flow.model-picker-refresh.e2e.test.ts` › "keeps historical work with its author when switching routed models" (scheduled run 46007024811, and unrelated PRs). The assertion at line 309 expects "Finding from GPT." to be hidden inside **Worked**, but it is shown below it. It fails every run, not only sometimes.

## Why This Change Was Made

openclaw#140835 changed the product rule on purpose: assistant text folds into **Worked** only when the model labels it `commentary`. Unlabeled text before a tool call now stays visible. That PR relabeled the unit fixtures but not this e2e fixture, whose pre-tool text has no phase. The test asserted the removed behavior.

Fix: label the fixture's pre-tool text `phase: "commentary"`, the same change openclaw#140835 made to its unit fixtures. No product code changes. The test still proves what it is for: the fold follows the model that wrote the work (Claude's commentary stays inline, GPT's folds), before and after switching the routed model.

## User Impact

None. Test-only.

## Evidence

- On `main` (`fcc3552b7dbc`), locally: fails with the same assertion as CI (`expected true to be false`, line 309); failure screenshot shows **Worked ›** followed by visible "Finding from GPT.".
- With the fix: the whole file (4 tests) passed in 10 of 10 sequential local runs.

Co-authored-by: Ayaan Zaidi <[email protected]>
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: XS 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