Skip to content

test(ui): finish native chat transcript fixtures - #173575

Merged
steipete merged 5 commits into
mainfrom
solid2/chat-b-final-native-tests
Oct 16, 2026
Merged

steipete merged 5 commits into
mainfrom
solid2/chat-b-final-native-tests

Conversation

@steipete

@steipete steipete commented Oct 16, 2026 •

Copy link
Copy Markdown
Contributor

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 TestAvatar mock and removes its retired Lit-content import. No assertions were removed. Clipboard and avatar files therefore disappear from this PR's final diff.

Evidence

Proof Result
UI typecheck and exact chat test type graph Both passed on the merged candidate committed as bc3e83889f9e0fd7b45225d2c00f866dbfac7219
Message fixture after avatar conflict resolution 92/92 passed, one run with --maxWorkers=1, 11.02 s Vitest duration
Transcript row identity 6/6 passed on the retained predecessor; one file run, 18.19 s wall
Transcript recovery 12/12 passed on the retained predecessor; one file run, 22.91 s wall
Voice reconciliation 4/4 passed on the retained predecessor; one file run, 20.49 s wall
Keyboard history/focus Repaired fixture: 30/30 passed, one file run, 13.36 s Vitest duration
Chromium end-follow Repaired fixture: 22/22 passed, including all four late-growth cases; one file run, 8.56 s Vitest duration
Scoped lint Repair candidate passed; only two existing self-closing warnings
Independent Codex review Original and caller deltas, seven-file CI repair, and final conflict-only delta scoped-clean at P0–P2, followed by lead source verification
Production Knip Passed on exact committed head bc3e83889f9e0fd7b45225d2c00f866dbfac7219
Full PR CI Run 38835565326 on exact head bc3e83889f9e0fd7b45225d2c00f866dbfac7219 failed only the two jobs attributed below; ci:full retained. Predecessor run 38832519669 passed

The 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-3 reports TS2304 at chat-pane-model-catalog.test.ts:167; checks-ui (2/3) fails chat pane composer controls > revalidates the warm restricted configured model catalog when the picker opens and chat pane composer controls > revalidates the cold configured model catalog when the picker opens with ReferenceError: render is not defined at 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 main 4cf3df6352cea03d80bf0ff35758503089ba30db. 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 fix 56c315156f4542f197a2b7f727681ba3f41c21b5 removes 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, and web-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.

@steipete steipete added the ci:full Keep ordinary native-locale CI selection on the next PR run. label Oct 16, 2026
@clawsweeper

clawsweeper Bot commented Oct 16, 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.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 16, 2026 •

Copy link
Copy Markdown
Contributor

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-16T01:36:37.914329Z bc3e838 New commits
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@openclaw-barnacle openclaw-barnacle Bot added app: web-ui App: web-ui scripts Repository scripts size: XL labels Oct 16, 2026
@clawsweeper clawsweeper Bot added P2 Normal backlog priority with limited blast radius. rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. labels Oct 16, 2026
@clawsweeper

clawsweeper Bot commented Oct 16, 2026

Copy link
Copy Markdown
Contributor

Codex review: needs changes before merge.

What this changes

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

  • Before: The regression fixture renders through a Lit test host.
  • After: The fixture exercises the native Solid renderer and existing transcript controller.

Review scores

Measure Result What it means
Overall readiness 🦪 silver shellfish (2/6) Useful, scoped migration with meaningful native-owner coverage, but two source-explained fixture regressions prevent a passing review.
Proof confidence 🦐 gold shrimp (3/6) This maintainer-authored PR changes test infrastructure only; supplied focused runs and exact-head CI exercise native production owners, with the failing conversions addressed in the findings.
Patch quality 🦪 silver shellfish (2/6) 2 actionable review findings remain.

Product

Kind: Test only · Worth it: Yes · Fix scope: Complete
User problem: Legacy test adapters leave regression coverage dependent on a renderer the production transcript is retiring.
Reason: The maintainer-authored change completes an explicitly planned migration and removes obsolete test adapters without expanding product scope.

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
Reviewed head: 00215d069793186934c8e935924ce47b3fe654a6

Before merge

  • Keep the history listener outside Solid's delegated event boundary (P2) - Mounting Solid directly into thread registers its delegated key listener before the native history listener. Solid rc.14 overrides event.currentTarget and leaves it at the direct child where traversal stops. The history handler therefore receives the input, select, or video as its root; isTranscriptScrollKey stops before inspecting that control and admits an older-history request. Exact-head CI reports ten such failures, including range Home and input ArrowUp. Mount into an inner container and keep the native history listener on its outer owner, or otherwise preserve the real listener boundary without weakening the assertions.
  • Preserve intrinsic row growth during fixture rerenders (P2) - These unconditional height assignments undo the wheel-intent scenarios' direct DOM growth. Those scenarios change the last row from 900px to 1100px, optionally growing the earlier row by 11px, without changing the fixture fields. A measurement-triggered render writes 900px and 400px back, so the extent returns to 1300 instead of reaching 1500 or 1511. All four cases fail in exact-head Chromium CI and emit ResizeObserver errors. Preserve unchanged height bindings as Lit did, or separate explicit fixture updates from intrinsic DOM growth.

Findings

  • [P2] Keep the history listener outside Solid's delegated event boundary — ui/src/pages/chat/chat-pane-keyboard-focus.test.tsx:76
  • [P2] Preserve intrinsic row growth during fixture rerenders — ui/src/pages/chat/components/chat-transcript-end-follow.browser.test.ts:43-44
Agent review details

How this fits together

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

Technical review

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

  • [P2] Keep the history listener outside Solid's delegated event boundary — ui/src/pages/chat/chat-pane-keyboard-focus.test.tsx:76
    Mounting Solid directly into thread registers its delegated key listener before the native history listener. Solid rc.14 overrides event.currentTarget and leaves it at the direct child where traversal stops. The history handler therefore receives the input, select, or video as its root; isTranscriptScrollKey stops before inspecting that control and admits an older-history request. Exact-head CI reports ten such failures, including range Home and input ArrowUp. Mount into an inner container and keep the native history listener on its outer owner, or otherwise preserve the real listener boundary without weakening the assertions.
    Confidence: 0.98
  • [P2] Preserve intrinsic row growth during fixture rerenders — ui/src/pages/chat/components/chat-transcript-end-follow.browser.test.ts:43-44
    These unconditional height assignments undo the wheel-intent scenarios' direct DOM growth. Those scenarios change the last row from 900px to 1100px, optionally growing the earlier row by 11px, without changing the fixture fields. A measurement-triggered render writes 900px and 400px back, so the extent returns to 1300 instead of reaching 1500 or 1511. All four cases fail in exact-head Chromium CI and emit ResizeObserver errors. Preserve unchanged height bindings as Lit did, or separate explicit fixture updates from intrinsic DOM growth.
    Confidence: 0.99

Overall correctness: patch is incorrect
Overall confidence: 0.98

AGENTS.md: found and applied where relevant.

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

Provenance checked

  • Native transcript fixture ownership keeps the original intent (bc3ce75: The production Solid migration introduced native fixtures but explicitly deferred the remaining Lit harness and coupled tests.)
  • Native keyboard navigation regressions keeps the original intent (c9dc71e: Distinguish native editing, selection, and media controls from transcript navigation through a shared keyboard owner.)
  • Late intrinsic growth regression keeps the original intent (3e0123b: Exercise simultaneous row remeasurement and newest-reply growth while preserving the reader's wheel intent.)

Testing

Proof path: in-process harness.

Security

None.

Evidence

Acceptance criteria:

  • pnpm --dir ui test src/pages/chat/chat-pane-keyboard-focus.test.tsx --maxWorkers=1
  • pnpm --dir ui test src/pages/chat/components/chat-transcript-end-follow.browser.test.ts --maxWorkers=1
  • pnpm tsgo:ui
  • git diff --check

What I checked:

Likely related people:

  • Peter Steinberger: Raw commit bc3ce75 adds ui/src/pages/chat/test-helpers/chat-transcript-native.tsx:1 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: bc3ce750c436; files: ui/src/pages/chat/test-helpers/chat-transcript-native.tsx)
  • Vyctor H. Brzezowski: Raw commit 57c752a adds ui/src/pages/chat/chat-pane-keyboard-focus.test.ts:11 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: medium; commits: 57c752a46c04; files: ui/src/pages/chat/chat-pane-keyboard-focus.test.ts)

PR surface

Tests +159, Other 0. Total +159 across 37 files. Added test files: 0.

View PR surface stats
Area Files Added Removed Net
Source 0 0 0 0
Tests 36 888 729 +159
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 1 15 15 0
Total 37 903 744 +159

Labels

Label changes:

  • add P2: Two focused test-fixture defects block useful migration work without changing shipped application behavior.
  • add rating: 🦪 silver shellfish: Overall readiness is 🦪 silver shellfish; proof is 🦐 gold shrimp and patch quality is 🦪 silver shellfish.
  • add status: ⏳ waiting on author: ClawSweeper has contributor-facing work open and is waiting for author action.

Label justifications:

  • P2: Two focused test-fixture defects block useful migration work without changing shipped application behavior.
  • rating: 🦪 silver shellfish: Overall readiness is 🦪 silver shellfish; proof is 🦐 gold shrimp and patch quality is 🦪 silver shellfish.
  • status: ⏳ waiting on author: ClawSweeper has contributor-facing work open and is waiting for author action.

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 15, 2026, 8:47 PM ET / October 16, 2026, 00:47 UTC.

steipete added a commit that referenced this pull request Oct 16, 2026
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.
@steipete
steipete merged commit e0c858e into main Oct 16, 2026
134 of 139 checks passed
@steipete
steipete deleted the solid2/chat-b-final-native-tests branch October 16, 2026 02:12
@steipete

Copy link
Copy Markdown
Contributor 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 16, 2026
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.
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Oct 16, 2026
* 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
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 ci:full Keep ordinary native-locale CI selection on the next PR run. P2 Normal backlog priority with limited blast radius. rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. scripts Repository scripts size: XL status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant