Repository navigation
test(ui): finish native chat transcript fixtures - #173575
Conversation
|
🦞👀 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 SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
Codex review: needs changes before merge. What this changesThis PR migrates remaining chat regression fixtures from Lit adapters to native Solid components and updates renamed test inventory entries. Example: A streaming reply grows while the reader remains at the transcript end.
Review scores
ProductKind: Test only · Worth it: Yes · Fix scope: Complete Merge readiness⛔ Needs changes before merge - 2 items remain Keep this PR open: the native fixture migration is useful, but two introduced fixture regressions cause the keyboard and browser UI checks to fail. Priority: P2 Before merge
Findings
Agent review detailsHow this fits togetherControl UI regression fixtures supply synthetic conversation state and input events to the production chat renderers, controllers, and virtualizer, then inspect DOM identity, navigation, geometry, and cleanup. flowchart LR
A[Synthetic conversation state] --> B[Native Solid fixtures]
B --> C[Chat components]
C --> D[Transcript controller]
D --> E[Virtualizer and DOM]
E --> F[Regression assertions]
Technical reviewBest possible solution: Complete the native migration while preserving native keyboard event boundaries and intrinsic row growth across fixture rerenders. Do we have a high-confidence way to reproduce the issue? Exact-head CI annotations demonstrate both fixture failures, and source inspection explains their triggers; no target code was executed during this review. Is this the best way to solve the issue? Using the existing native renderers is the right migration path, but the fixtures must preserve the event and geometry semantics previously supplied by Lit. Full review comments:
Overall correctness: patch is incorrect AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against f88af5e1e5dc. Provenance checked
TestingProof path: in-process harness. SecurityNone. EvidenceAcceptance criteria:
What I checked:
Likely related people:
PR surfaceTests +159, Other 0. Total +159 across 37 files. Added test files: 0. View PR surface stats
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 October 15, 2026, 8:47 PM ET / October 16, 2026, 00:47 UTC. |
Hourly 38832586414 exposed exports left public after the file-transfer classifier and engine-owned memory search migrations. Keep those helpers private, along with the unused plugin-state read alias and install-action DOM alias; their implementations and actual consumers remain intact. Model the documented standalone Doctor proof as a real executable entry and use the production-shaped dynamic chat route import in its existing test. Preserve every route export and assertion; add no Knip ignores. The requested three audits reproduced on main 4cf3df6. With the reviewed candidate, production/script exports and all unused-file scans pass; full-tree exports only reports TranscriptTestHost, covered by the active ready PR #173575. After proof, omit the lazy-error/loading adapter hunks because new ready PR #173638 deletes those files. Their findings remain until that PR lands. Memory package repair #173641 is independent; this commit changes no dependencies, SQL, or engine contracts. Proof: 151 tests across 12 focused files, each invoked with pnpm test <file> --maxWorkers=1; summed wall time 548.15s. The changed router-outlet-legacy.test.tsx passed in 23.00s with all assertions retained. Core, scripts, extensions, UI, memory-core and UI-app test typechecks pass, as do targeted typed lint, boundary lint, formatting and diff checks. Stale generated SDK declarations were regenerated normally before the memory package typecheck passed. Isolated P2 review: scoped-clean.
|
Merged via explicitly authorized admin squash with attributed pre-existing CI failures.
|
Hourly 38832586414 exposed exports left public after the file-transfer classifier and engine-owned memory search migrations. Keep those helpers private, along with the unused plugin-state read alias and install-action DOM alias; their implementations and actual consumers remain intact. Model the documented standalone Doctor proof as a real executable entry and use the production-shaped dynamic chat route import in its existing test. Preserve every route export and assertion; add no Knip ignores. The requested three audits reproduced on main 93c11c2. With the reviewed candidate, production/script exports and all unused-file scans pass; full-tree exports only reports TranscriptTestHost, covered by the active ready PR openclaw#173575. After proof, omit the lazy-error/loading adapter hunks because new ready PR openclaw#173638 deletes those files. Their findings remain until that PR lands. Memory package repair openclaw#173641 is independent; this commit changes no dependencies, SQL, or engine contracts. Proof: 151 tests across 12 focused files, each invoked with pnpm test <file> --maxWorkers=1; summed wall time 548.15s. The changed router-outlet-legacy.test.tsx passed in 23.00s with all assertions retained. Core, scripts, extensions, UI, memory-core and UI-app test typechecks pass, as do targeted typed lint, boundary lint, formatting and diff checks. Stale generated SDK declarations were regenerated normally before the memory package typecheck passed. Isolated P2 review: scoped-clean.
* test(ui): finish native chat transcript fixtures * test(ui): finish native chat renderer fixtures * test(ui): render clipboard fixtures with Solid * test(ui): fix native transcript fixture lifecycle and typing
What Problem This Solves
The remaining transcript regression fixtures still enter through Lit adapters, and two virtualizer fixtures use Lit lifecycle hooks. They need to exercise the native renderer as the transcript completes its Solid migration.
User Impact
Recovery, reader position, row identity, search, keyboard, media, and voice contracts are exercised through native Solid rendering. This final diff changes tests, test support, and the protected test inventory only. Product rendering, layout, and startup imports are unchanged.
Why This Change Was Made
Moves the remaining transcript, message, composer, question, and activity fixtures onto native Solid renderers and the production virtual-core lifecycle. Obsolete Lit test hosts and mount helpers are removed. Controller and media retirement remain synchronous; only the outer test root waits one microtask before disposal so a same-task move retains its root.
Markdown and streaming tests mount native components with retained props. Disclosure parking checks the same card before, during, and after presentation changes. Search reads the existing transcript state, and opaque media callbacks use the existing native-content boundary. The protected inventory follows renamed files, including seven already-renamed chat entries. Coupled test callers use the same native fixtures, and four obsolete Lit support modules are removed.
The first full PR run exposed two fixture conversion defects, repaired without weakening assertions: end-follow reapplied unchanged bound heights over intrinsic DOM growth, while the keyboard fixture mixed a native listener with Solid's delegated render root and observed the wrong
currentTarget. Height bindings now commit only when the fixture value changes; keyboard history intent uses the same JSX event boundary as the production thread. The repair also supplies required return annotations, keyed row rendering, a bound update callback, and correct JSX attribute casing.After the repaired head passed full CI, main advanced into three conflicts. The merge takes main's complete native clipboard fixture and Solid avatar implementation unchanged. The message fixture uses a native
TestAvatarmock and removes its retired Lit-content import. No assertions were removed. Clipboard and avatar files therefore disappear from this PR's final diff.Evidence
bc3e83889f9e0fd7b45225d2c00f866dbfac7219--maxWorkers=1, 11.02 s Vitest durationbc3e83889f9e0fd7b45225d2c00f866dbfac7219bc3e83889f9e0fd7b45225d2c00f866dbfac7219failed only the two jobs attributed below;ci:fullretained. Predecessor run 38832519669 passedThe original 17-source codemod review was retrospective: its dry-run reported 50 templates and 146 manual diagnostics, reviewed against the draft. This does not claim the dry-run preceded those conversions. The two later coupled Markdown/streaming files had a pre-edit dry-run, with one template and 23 diagnostics. The subsequent direct-caller conversions had individual pre-edit codemod dry-runs.
Review scope is explicit: the original review received unchanged context only for supplied thread, search, and Solid-render files; the ten-test delta received six supplied datasets and two review passes. The earlier clipboard review received its diff without unchanged helper context; main's complete fixture now supersedes that delta. Reviewers did not execute project tests. The lead inspected final source, and the CI repair and conflict resolution each received fresh isolated reviews.
The first failed run (38829710841 on
00215d069793186934c8e935924ce47b3fe654a6) also had an unrelated real-Gateway service-child cleanup timeout in the quota recovery case. Its runtime and test inputs were byte-identical to the base, but the compared scheduled-main run passed; this was not claimed as inherited or repaired. The subsequent repaired head's full CI run passed. The first head's security workflow also completed with dependency and sensitive-code review success. New-head checks must be evaluated independently.The final full CI run (38835565326, attempt 1) has two source-proven main-side failures.
check-test-types-core-3reports TS2304 atchat-pane-model-catalog.test.ts:167;checks-ui (2/3)failschat pane composer controls > revalidates the warm restricted configured model catalog when the picker opensandchat pane composer controls > revalidates the cold configured model catalog when the picker openswithReferenceError: render is not definedat the same line. The UI shard otherwise passes 623 files and 6,911 tests (three skipped).CI checked out merge
f86255ff54ab86b2b37897f08728e1855e7dc065, merging this PR into main4cf3df6352cea03d80bf0ff35758503089ba30db. The failing fixture blob is identical in that main parent and the tested merge (173c37c59ed9b07c2cb36429b81e27ea12ac829f); this PR does not change the file. The published table classified the jobs as new against an earlier passing scheduled-main run, so this attribution is based on inspected source equality, not that table. Main fix56c315156f4542f197a2b7f727681ba3f41c21b5removes the one stale Lit cleanup call. Landing requests the authorized native exception for these unrelated failures; it does not claim the failed CI run is green. Security and other required gates remain enforced.Earlier production Knip runs reported three unchanged base orphans (
dropdown-menu-controller.ts,web-awesome-popover.ts, andweb-awesome.ts). Main has since removed them, and production Knip passes on the final committed head. No ignore entries or unrelated deletions are added here.No local build, E2E battery, or parity run was performed for this test-only diff. Local reruns were limited to the two fixtures that failed CI and the message fixture changed by conflict resolution, once each with
--maxWorkers=1. Broad proof belongs to PR CI. No lease was created.Size
Against pinned merged main
e4a0517cc2f4c46a733515fef5f2863166074ff1: 36 logical paths, or 47 physical paths counting both sides of 11 renames. Tests/support: 19,790 → 19,940 lines (+150); within that, tests are 19,174 → 19,393 and support is 616 → 547. Protected test inventory: 5,153 → 5,153. No production paths change. The increase supplies native fixtures for retained identity and recovery contracts while deleting obsolete Lit support.