Repository navigation
refactor(ui): remove transcript virtualizer controller registry - #174231
Conversation
Give the per-session virtualizer one invalidation callback and explicit ownership of its rail observer, virtual-core lifecycle, and deferred row measurements. Preserve synchronous geometry and retained renderer 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 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 maintainer review before merge. What this changesThis PR replaces the transcript virtualizer’s controller registry with explicit resource lifecycles and one invalidation callback. Example: A reader resizes a chat pane, hides it, then returns.
Review scores
ProductKind: Refactor · Worth it: Yes · Fix scope: Complete Merge readiness✅ Ready for maintainer review Keep open: this maintainer-directed refactor simplifies lifecycle ownership without an identified correctness defect; exact-head CI is still pending. Priority: P3 Before mergeNone. FindingsNone. Tests
Agent review detailsHow this fits togetherThe Control UI transcript session receives projected rows and viewport events, coordinates virtualization and measurements, and supplies retained rows to the Solid renderer. flowchart TD
A[Projected chat rows] --> B[Transcript controller]
B --> C[Session virtualizer owner]
C --> D[Rail and measurement resources]
C --> E[TanStack virtualizer]
C --> F[Solid transcript renderer]
E --> F
F --> G[Retained transcript DOM]
Technical reviewBest possible solution: Keep explicit session-owned lifecycles while preserving synchronous geometry, retained DOM, and existing scroll contracts. Do we have a high-confidence way to reproduce the issue? This is a behavior-preserving refactor, so there is no reported product failure to reproduce; source inspection confirms the registry and its three fixed resources. Is this the best way to solve the issue? Explicit lifecycle calls are appropriate for these fixed resources, preserve their ordering, and avoid introducing another owner or reactive state copy. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against c0a3b397d288. Provenance checked
TestingProof path: in-process harness. SecurityNone. EvidenceWhat I checked:
Likely related people:
PR surfaceSource -36. Total -36 across 5 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 16, 2026, 9:16 AM ET / 13:16 UTC. |
|
Merged via squash.
|
* commit '3f14c05236f10ad9a833770ee5962d4dd6c22110': (74 commits) fix(update): compare each recovery manifest once during cleanup confirmation (#174249) perf(agents): release completed attempt transcript references (#174236) refactor(ui): bind board frames through Solid refs (#174180) fix: stop repetitive output from small models (#173844) fix(update): stop listing missing recovery originals as cleanup candidates (#174241) refactor(ui): remove transcript virtualizer controller registry (#174231) fix(ai): surface bounded response errors before cancellation settles (#174238) refactor(test): reuse descendant-death waits (#174240) refactor: consume existing channel and SDK type owners (#174010) refactor(ui): bind sidebar session classes directly (#174229) fix(logging): omit content from AI transport diagnostics (#174217) test(tooling,talk,sessions,infra,browser,github): remove low-value tests (batch d121) (#173137) fix(ci): drop orphaned exports and copy cli-invocation into the package harness refactor(ui): derive login drafts and share native input bindings (#174223) refactor(ui): own chat locale and clock lifetime in Solid (#174224) feat(build): support selected standalone plugins (#173794) refactor(ui): bind browser input through viewport refs (#174138) refactor(ui): simplify multi-select callback ownership (#174225) refactor: simplify settings input ownership (#174222) refactor(ui): pair popup and hovercard listener teardown (#174209) ... # Conflicts: # scripts/plugin-sdk-surface-report.mts
* commit 'ad851536ea160d43294fb35e3e3cb9a7011d3873': (74 commits) fix(update): compare each recovery manifest once during cleanup confirmation (#174249) perf(agents): release completed attempt transcript references (#174236) refactor(ui): bind board frames through Solid refs (#174180) fix: stop repetitive output from small models (#173844) fix(update): stop listing missing recovery originals as cleanup candidates (#174241) refactor(ui): remove transcript virtualizer controller registry (#174231) fix(ai): surface bounded response errors before cancellation settles (#174238) refactor(test): reuse descendant-death waits (#174240) refactor: consume existing channel and SDK type owners (#174010) refactor(ui): bind sidebar session classes directly (#174229) fix(logging): omit content from AI transport diagnostics (#174217) test(tooling,talk,sessions,infra,browser,github): remove low-value tests (batch d121) (#173137) fix(ci): drop orphaned exports and copy cli-invocation into the package harness refactor(ui): derive login drafts and share native input bindings (#174223) refactor(ui): own chat locale and clock lifetime in Solid (#174224) feat(build): support selected standalone plugins (#173794) refactor(ui): bind browser input through viewport refs (#174138) refactor(ui): simplify multi-select callback ownership (#174225) refactor: simplify settings input ownership (#174222) refactor(ui): pair popup and hovercard listener teardown (#174209) ...
* commit 'c99bc43bffb351d0e37d72b2f4aa89f7d4fd116b': (157 commits) fix(update): compare each recovery manifest once during cleanup confirmation (#174249) perf(agents): release completed attempt transcript references (#174236) refactor(ui): bind board frames through Solid refs (#174180) fix: stop repetitive output from small models (#173844) fix(update): stop listing missing recovery originals as cleanup candidates (#174241) refactor(ui): remove transcript virtualizer controller registry (#174231) fix(ai): surface bounded response errors before cancellation settles (#174238) refactor(test): reuse descendant-death waits (#174240) refactor: consume existing channel and SDK type owners (#174010) refactor(ui): bind sidebar session classes directly (#174229) fix(logging): omit content from AI transport diagnostics (#174217) test(tooling,talk,sessions,infra,browser,github): remove low-value tests (batch d121) (#173137) fix(ci): drop orphaned exports and copy cli-invocation into the package harness refactor(ui): derive login drafts and share native input bindings (#174223) refactor(ui): own chat locale and clock lifetime in Solid (#174224) feat(build): support selected standalone plugins (#173794) refactor(ui): bind browser input through viewport refs (#174138) refactor(ui): simplify multi-select callback ownership (#174225) refactor: simplify settings input ownership (#174222) refactor(ui): pair popup and hovercard listener teardown (#174209) ...
* commit 'ad851536ea160d43294fb35e3e3cb9a7011d3873': (157 commits) fix(update): compare each recovery manifest once during cleanup confirmation (#174249) perf(agents): release completed attempt transcript references (#174236) refactor(ui): bind board frames through Solid refs (#174180) fix: stop repetitive output from small models (#173844) fix(update): stop listing missing recovery originals as cleanup candidates (#174241) refactor(ui): remove transcript virtualizer controller registry (#174231) fix(ai): surface bounded response errors before cancellation settles (#174238) refactor(test): reuse descendant-death waits (#174240) refactor: consume existing channel and SDK type owners (#174010) refactor(ui): bind sidebar session classes directly (#174229) fix(logging): omit content from AI transport diagnostics (#174217) test(tooling,talk,sessions,infra,browser,github): remove low-value tests (batch d121) (#173137) fix(ci): drop orphaned exports and copy cli-invocation into the package harness refactor(ui): derive login drafts and share native input bindings (#174223) refactor(ui): own chat locale and clock lifetime in Solid (#174224) feat(build): support selected standalone plugins (#173794) refactor(ui): bind browser input through viewport refs (#174138) refactor(ui): simplify multi-select callback ownership (#174225) refactor: simplify settings input ownership (#174222) refactor(ui): pair popup and hovercard listener teardown (#174209) ...
…157148) * feat: describe decision capabilities in model catalogs Keep task, protocol, modalities, reasoning, grounding, probability semantics, abstention and route billing distinct without changing chat Model types. Co-authored-by: steipete <[email protected]> Co-authored-by: vincentkoc <[email protected]> * fix: apply shared plugin model policy to decisions Co-authored-by: steipete <[email protected]> Co-authored-by: vincentkoc <[email protected]> * feat: support plugin-owned model credentials Co-authored-by: steipete <[email protected]> Co-authored-by: vincentkoc <[email protected]> * feat(decisions): preserve richer answers with versioned data codecs Co-authored-by: steipete <[email protected]> Co-authored-by: vincentkoc <[email protected]> * chore(sdk): record approved Decision V2 data allowance Apply only the +14 exports / +6 callables for the existing decisions data contract. Peter Steinberger explicitly approved the complete +18/+6 stack allowance on 2026-09-26; the remaining four execution types belong to the dependent PR. No additional API or guard exception. Co-authored-by: steipete <[email protected]> * fix(models): retain decision facts on their declared routes Merge current main and reconcile the original Decision capability metadata with the canonical catalog. Preserve facts for matching hosted routes, clear stale facts on route changes, and retain chat:false. Validated 50 focused tests, planner replay, types, lint, formatting, and full build. * feat(decisions): enforce shared plugin model policy Integrate current model metadata while preserving the original decision-policy ancestry. Apply the reviewed shared completion authorization port without changing its six-file patch. Validated 112 focused tests, targeted typecheck/lint/format, and the strict plugin SDK smoke build. Original PR: #156621 * fix(models): include inference metadata in extracted tooling * chore(models): include metadata tooling closure repair * commit '00d93bb011fd8ac55d72623d1bd9e5bbcdb7d301': fix(models): include inference metadata in extracted tooling * feat(auth): integrate plugin-owned model credentials Preserve contributor history while integrating physical credential ownership with the shared model policy. Plugin-owned routes bypass agent profile discovery and agent no-auth substitution; agent-owned routes retain explicit no-auth behavior. Co-authored-by: steipete <[email protected]> * fix(models): preserve decision policy on current main * merge: integrate current model policy into plugin auth Preserve both signed ancestry chains and current-main OAuth refresh, secret-owner, abort, and authentication bootstrap behavior. The plugin-owned authentication patch is unchanged. * feat(decisions): integrate versioned data codecs on shared auth Preserve the original contributor PR ancestry while applying the reviewed V2 data contract to the shared-policy and plugin-owned-auth stack. The fourteen-file feature delta matches the qualified candidate exactly, including the measured SDK budget expansion. * fix(decisions): preserve explicit owner-agent selection * merge: preserve decision owner selection in plugin auth Integrate the reviewed explicit owner-agent selection repair while preserving the unchanged plugin-owned authentication patch and both ancestry chains. * fix(decisions): carry owner-bound policy repair into data stack Merge the repaired shared-auth parent while preserving the qualified fourteen-file V2 data delta. Frozen dependency inputs are unchanged; the incoming policy runtime and tests retain their independent qualification. * merge: reconcile plugin auth with landed model policy Preserve the original contributor and signed integration ancestry while basing the unchanged plugin-owned authentication patch on the landed shared model policy. * chore(decisions): reconcile data stack with published auth ancestry Merge the qualified shared-auth head while preserving the byte-identical fourteen-file V2 data patch. Dependency declarations and frozen lock/workspace inputs are unchanged; the existing physical install remains available to the native PR tooling owner. * fix(auth): retain plugin credential authority through dispatch * chore(decisions): integrate canonical auth authority fix * fix(decisions): distinguish plain record validation * test(auth): preserve health probe exports in lifecycle fixture * chore(auth): integrate repaired main for credential lifecycle gates * chore(decisions): integrate repaired auth authority * chore(auth): integrate current main for landing * chore(decisions): integrate current auth authority * commit '3f14c05236f10ad9a833770ee5962d4dd6c22110': (74 commits) fix(update): compare each recovery manifest once during cleanup confirmation (#174249) perf(agents): release completed attempt transcript references (#174236) refactor(ui): bind board frames through Solid refs (#174180) fix: stop repetitive output from small models (#173844) fix(update): stop listing missing recovery originals as cleanup candidates (#174241) refactor(ui): remove transcript virtualizer controller registry (#174231) fix(ai): surface bounded response errors before cancellation settles (#174238) refactor(test): reuse descendant-death waits (#174240) refactor: consume existing channel and SDK type owners (#174010) refactor(ui): bind sidebar session classes directly (#174229) fix(logging): omit content from AI transport diagnostics (#174217) test(tooling,talk,sessions,infra,browser,github): remove low-value tests (batch d121) (#173137) fix(ci): drop orphaned exports and copy cli-invocation into the package harness refactor(ui): derive login drafts and share native input bindings (#174223) refactor(ui): own chat locale and clock lifetime in Solid (#174224) feat(build): support selected standalone plugins (#173794) refactor(ui): bind browser input through viewport refs (#174138) refactor(ui): simplify multi-select callback ownership (#174225) refactor: simplify settings input ownership (#174222) refactor(ui): pair popup and hovercard listener teardown (#174209) ... # Conflicts: # scripts/plugin-sdk-surface-report.mts Co-authored-by: steipete <[email protected]> Co-authored-by: vincentkoc <[email protected]> Co-authored-by: Vincent Koc <[email protected]>
…claw#174231) Give the per-session virtualizer one invalidation callback and explicit ownership of its rail observer, virtual-core lifecycle, and deferred row measurements. Preserve synchronous geometry and retained renderer behavior.
…penclaw#157148) * feat: describe decision capabilities in model catalogs Keep task, protocol, modalities, reasoning, grounding, probability semantics, abstention and route billing distinct without changing chat Model types. Co-authored-by: steipete <[email protected]> Co-authored-by: vincentkoc <[email protected]> * fix: apply shared plugin model policy to decisions Co-authored-by: steipete <[email protected]> Co-authored-by: vincentkoc <[email protected]> * feat: support plugin-owned model credentials Co-authored-by: steipete <[email protected]> Co-authored-by: vincentkoc <[email protected]> * feat(decisions): preserve richer answers with versioned data codecs Co-authored-by: steipete <[email protected]> Co-authored-by: vincentkoc <[email protected]> * chore(sdk): record approved Decision V2 data allowance Apply only the +14 exports / +6 callables for the existing decisions data contract. Peter Steinberger explicitly approved the complete +18/+6 stack allowance on 2026-09-26; the remaining four execution types belong to the dependent PR. No additional API or guard exception. Co-authored-by: steipete <[email protected]> * fix(models): retain decision facts on their declared routes Merge current main and reconcile the original Decision capability metadata with the canonical catalog. Preserve facts for matching hosted routes, clear stale facts on route changes, and retain chat:false. Validated 50 focused tests, planner replay, types, lint, formatting, and full build. * feat(decisions): enforce shared plugin model policy Integrate current model metadata while preserving the original decision-policy ancestry. Apply the reviewed shared completion authorization port without changing its six-file patch. Validated 112 focused tests, targeted typecheck/lint/format, and the strict plugin SDK smoke build. Original PR: openclaw#156621 * fix(models): include inference metadata in extracted tooling * chore(models): include metadata tooling closure repair * commit '00d93bb011fd8ac55d72623d1bd9e5bbcdb7d301': fix(models): include inference metadata in extracted tooling * feat(auth): integrate plugin-owned model credentials Preserve contributor history while integrating physical credential ownership with the shared model policy. Plugin-owned routes bypass agent profile discovery and agent no-auth substitution; agent-owned routes retain explicit no-auth behavior. Co-authored-by: steipete <[email protected]> * fix(models): preserve decision policy on current main * merge: integrate current model policy into plugin auth Preserve both signed ancestry chains and current-main OAuth refresh, secret-owner, abort, and authentication bootstrap behavior. The plugin-owned authentication patch is unchanged. * feat(decisions): integrate versioned data codecs on shared auth Preserve the original contributor PR ancestry while applying the reviewed V2 data contract to the shared-policy and plugin-owned-auth stack. The fourteen-file feature delta matches the qualified candidate exactly, including the measured SDK budget expansion. * fix(decisions): preserve explicit owner-agent selection * merge: preserve decision owner selection in plugin auth Integrate the reviewed explicit owner-agent selection repair while preserving the unchanged plugin-owned authentication patch and both ancestry chains. * fix(decisions): carry owner-bound policy repair into data stack Merge the repaired shared-auth parent while preserving the qualified fourteen-file V2 data delta. Frozen dependency inputs are unchanged; the incoming policy runtime and tests retain their independent qualification. * merge: reconcile plugin auth with landed model policy Preserve the original contributor and signed integration ancestry while basing the unchanged plugin-owned authentication patch on the landed shared model policy. * chore(decisions): reconcile data stack with published auth ancestry Merge the qualified shared-auth head while preserving the byte-identical fourteen-file V2 data patch. Dependency declarations and frozen lock/workspace inputs are unchanged; the existing physical install remains available to the native PR tooling owner. * fix(auth): retain plugin credential authority through dispatch * chore(decisions): integrate canonical auth authority fix * fix(decisions): distinguish plain record validation * test(auth): preserve health probe exports in lifecycle fixture * chore(auth): integrate repaired main for credential lifecycle gates * chore(decisions): integrate repaired auth authority * chore(auth): integrate current main for landing * chore(decisions): integrate current auth authority * commit '3f14c05236f10ad9a833770ee5962d4dd6c22110': (74 commits) fix(update): compare each recovery manifest once during cleanup confirmation (openclaw#174249) perf(agents): release completed attempt transcript references (openclaw#174236) refactor(ui): bind board frames through Solid refs (openclaw#174180) fix: stop repetitive output from small models (openclaw#173844) fix(update): stop listing missing recovery originals as cleanup candidates (openclaw#174241) refactor(ui): remove transcript virtualizer controller registry (openclaw#174231) fix(ai): surface bounded response errors before cancellation settles (openclaw#174238) refactor(test): reuse descendant-death waits (openclaw#174240) refactor: consume existing channel and SDK type owners (openclaw#174010) refactor(ui): bind sidebar session classes directly (openclaw#174229) fix(logging): omit content from AI transport diagnostics (openclaw#174217) test(tooling,talk,sessions,infra,browser,github): remove low-value tests (batch d121) (openclaw#173137) fix(ci): drop orphaned exports and copy cli-invocation into the package harness refactor(ui): derive login drafts and share native input bindings (openclaw#174223) refactor(ui): own chat locale and clock lifetime in Solid (openclaw#174224) feat(build): support selected standalone plugins (openclaw#173794) refactor(ui): bind browser input through viewport refs (openclaw#174138) refactor(ui): simplify multi-select callback ownership (openclaw#174225) refactor: simplify settings input ownership (openclaw#174222) refactor(ui): pair popup and hovercard listener teardown (openclaw#174209) ... # Conflicts: # scripts/plugin-sdk-surface-report.mts Co-authored-by: steipete <[email protected]> Co-authored-by: vincentkoc <[email protected]> Co-authored-by: Vincent Koc <[email protected]>
What Problem This Solves
The transcript virtualizer retained a generic view-controller registry solely to connect, update, and dispose three known geometry resources.
User Impact
No intended visible change. Reader anchoring, virtualized rows, and retained transcript lifetimes keep their existing contracts.
Why This Change Was Made
The per-session virtualizer now accepts one invalidation callback instead of impersonating a Solid controller host. It directly owns the position-rail observer, TanStack virtualizer lifecycle, and deferred row measurements in the same order as before. The rail and measurement adapters are plain factory-owned resources; their geometry remains synchronous and the existing Solid transcript renderer still owns the DOM.
The parent chat transcript lifecycle is a separate follow-up. This change removes its child's controller registry and unused commit/update proxies without changing that parent boundary.
Evidence
pnpm tsgo:uici:fullThe retained proof covers fractional measurement, observer retirement and reconnect, hidden rows, native reader input, end-follow compensation, and streaming without rereading retained messages. No markup, styles, route imports, or lazy boundaries change; no screenshots or local build are needed for this lifecycle-only change under the assigned compute budget.
Touched production files: 1,420 → 1,384 LOC (−36). Controller-pattern references: 26 → 6.
createEffect: 0 → 0;untrack: 0 → 0;addEventListener: 1 → 1. No test LOC added.CI strict performance passed on the merged head: 339,440 B startup JavaScript gzip, 7 JS requests, and 1 startup CSS request (38,786 B gzip). Chat-route JavaScript decreased by 15 B with its 30 requests unchanged. Evidence: CI run 38904818833, performance job 116986216002.