Repository navigation
test(ui): label folded commentary in the routed-model history e2e - #206809
Conversation
- #140835 folds only phase-labeled commentary; the fixture's pre-tool text had no phase, so line 309 asserted removed behavior.
|
🦞👀 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: passed. What this changesAdds 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.
Review scores
ProductKind: Test only · Worth it: Yes · Fix scope: Complete 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: Before mergeNone. FindingsNone. Agent review detailsHow this fits togetherThe 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]
Technical reviewBest 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
TestingProof path: in-process harness. SecurityNone. EvidenceWhat I checked:
Likely related people:
PR surfaceTests +1. Total +1 across 1 file. Added test files: 0. View PR surface stats
Preflight sourceSource unknown. Source comparison at the observed PR snapshot only. Completion is self-reported; body, policy, tests, execution, and report bytes are not verified. LabelsLabel changes:
Label justifications:
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 November 27, 2026, 11:36 AM ET / 16:36 UTC. |
…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]>
What Problem This Solves
checks-ui-e2eis red onmaininchat-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
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.".