Skip to content

refactor(ui): audit Solid survivors and reuse input and focus primitives - #178593

Merged
steipete merged 3 commits into
mainfrom
solid2/w-zero-audit
Oct 20, 2026
Merged

steipete merged 3 commits into
mainfrom
solid2/w-zero-audit

Conversation

@steipete

@steipete steipete commented Oct 20, 2026 •

Copy link
Copy Markdown
Contributor

What Problem This Solves

Wave-zero survivor decisions were recorded with inconsistent criteria. This audits every remaining production Control UI effect, untracked read, raw listener, and DOM query against the current Solid ownership rules, then removes two duplicated feature effects.

User Impact

Side chat keeps native draft editing and selection, and question panels keep their initial autofocus opt-out and later navigation focus. The shared native-value primitive now reads its reactive source only in its effect, eliminating the strict-read diagnostic when a ref binds or rebinds an input. No markup, CSS, route, tag, selector, or lazy boundary changes.

Why This Change Was Made

SessionRailComposer delegates native value writes to liveValue; question navigation delegates focus requests to createPendingFocus. liveValue retains its last committed string for replacement refs, while its existing effect owns the initial write and subsequent changes. Equal values still cause no setter write, preserving selection and undo ownership.

The census is pinned to 59797f91cd0: 245 calls = 91 effects + 46 untrack + 59 listeners + 49 queries. Strict decisions: 227 keep, 15 convert, 3 unresolved category exceptions. Ten effect sites require full or partial conversion; two are handled here. Eight are covered by focused follow-ups: prediction inputs (#178603), model-search rendering (#178613), pane-owned question disclosure (#178614), the two DOM-input boundaries (#178610), and Activity/Custodian shared-primitive adoption (#178636), and prepared mascot animation inputs (#178644). Five additional raw listener sites receive explicit terminal cleanup in #178642. Their original calls are not approved survivors; each follow-up removes the misuse or carries prepared inputs into the retained external effect. The table distinguishes permitted survivors, conversions, and three unresolved literal-category exceptions below. The 59 syntactic listener calls include ten ordered Gateway owner-subscription APIs (not native EventTarget registrations) and the mandated shared listen() implementation; their returned teardown remains owned by the caller. Three apparent calls embedded in the remote favicon script are separate foreign-document/platform operations, outside the native AST census.

The initial review used the Solid skill, rc.14 contract, refactor checklist, and native guard. A second pass used the coordinator's exact wave-zero.md: no raw listeners inside Solid owners; plain TypeScript listeners only on non-DOM platform objects with a signal or paired removal; queries only in foreign-DOM islands; untracked reads only for intentional initial reactive-prop snapshots; effects only for external synchronization not covered by an existing primitive. That stricter pass identified the additional page and listener work. Query-to-traversal substitutions and wrappers that only hide calls were rejected as count gaming.

Three calls remain unresolved against the literal categories, not approved survivors: the shared projection's repeated untrack preserves owner-published revision semantics, while two startup service-worker listeners intentionally live for the document. Removing projection isolation changes state ownership; artificial pagehide cleanup risks breaking back/forward-cache restoration. These need an explicit category decision; this focused PR does not silently expand the categories.

Evidence

Proof Result
pnpm tsgo:ui Passed
chat-question-card.test.tsx --maxWorkers=1 22 passed; existing free-text strict-read diagnostics recorded for follow-up
chat-session-rail.test.ts --maxWorkers=1 27 passed; revalidated after shared ref correction
live-value.test.tsx --maxWorkers=1 Passed; same regression fails on base with STRICT_READ_UNTRACKED
pnpm check:control-ui-controllers --prune Effects 91 → 89; untrack 46, listeners 59, queries 49 unchanged
Production Knip Passed
Targeted format/lint Passed; Solid lint heuristics warn on accessors passed to the known liveValue tracking helper
Same-machine startup builds + strict comparison 325,098 → 325,063 B gzip (−35 B); 1 startup CSS request on both; strict check passed
Independent review P0–P2 scoped-clean; helper context supplied
Current-head hosted performance Run 39478389068, job 118820920116 passed against base b934ed2 (CI merge 68b57965130, PR head ae852ff). Startup JS 325,656 B gzip / 7 requests; CSS 38,445 B / 1 request. The job emits an advisory startup warning against its tighter 325,166 B threshold, so this is not claimed as a strict pass. It remains below the campaign 374,285 B budget. Chat boot 1,446,650 → 1,446,686 B (+36), New boot 1,004,727 → 1,004,729 B (+2); request counts unchanged. The log does not print measured base startup JS, so no current startup delta is claimed.
Initial full CI One failure: Control UI mobile widget scrolling > keeps touch flings continuous through widgets and preserves the reader during streaming (dragDistance=0, run 39465702913). Integrated main's concrete touch-harness fix #178578. Replacement run 39472679610 failed only the same named test at the later fling assertion (251 px versus >260 px); all other jobs passed. Deterministic gesture fixture #178645 landed as 6f04e7a and is integrated by replacement head ae852ff. Fresh full CI39478389068 completed successfully on ae852ff; no failed jobs or inherited-failure waiver. No inherited-failure waiver.
Main integration proof Conflict-free merge of 81ad214; UI types, the live-value regression, production Knip, and fresh independent P0–P2 review pass again. The subsequent conflict-free main merge includes landed #178645. UI types, the live-value regression, production Knip, guard, and independent review pass on ae852ff; integrated guard counts are 88 effects, 46 untrack, 59 listeners, and 49 queries. Original startup evidence remains prior-head evidence; no branch import or styling changes.

Production LOC for the three changed modules: 866 → 870 (+4). The shared primitive's committed ref value replaces an untracked source read; the small growth preserves replacement-node behavior. Test LOC: 20 → 46 (+26), extending the existing selection test with initial value, replacement ref, and diagnostic assertions. No tests deleted. All remaining guard counts hold: flush 6, getOwner 10, runWithOwner 18. CI uses ci:full for Chat and the shared primitive. No local E2E suite or remote lease used. Visual capture is not applicable: rendered structure/styles are unchanged.

Complete per-occurrence audit (source lines at the audited base)
Source at 59797f91cd0 API Decision Category / reason
ui/src/api/gateway-browser-socket.ts:90 addEventListener Convert cleanup Non-DOM WebSocket transport; add one signal aborted on terminal close while preserving close notification.
ui/src/api/gateway-browser-socket.ts:94 addEventListener Convert cleanup Non-DOM WebSocket transport; add one signal aborted on terminal close while preserving close notification.
ui/src/api/gateway-browser-socket.ts:95 addEventListener Convert cleanup Non-DOM WebSocket transport; add one signal aborted on terminal close while preserving close notification.
ui/src/api/gateway-browser-socket.ts:100 addEventListener Convert cleanup Non-DOM WebSocket transport; add one signal aborted on terminal close while preserving close notification.
ui/src/api/gateway.ts:706 addEventListener Keep Ordered events: Gateway subscription returns teardown and preserves event delivery.
ui/src/app/app-host.tsx:699 untrack Keep Initial identity: runtime-keyed shell retains its construction options and observer.
ui/src/app/app-host.tsx:710 untrack Keep Initial identity: runtime-keyed shell retains its construction options and observer.
ui/src/app/control-ui-environment-presentation.runtime.ts:223 querySelector Keep Foreign DOM island: validate parsed SVG, never query Solid-owned markup.
ui/src/app/control-ui-readiness-solid.ts:82 createEffect Keep External DOM synchronization: publish readiness only after the root commit.
ui/src/app/native-bridge.ts:51 addEventListener Keep Platform transport: WebView2 is not EventTarget; paired native listener owns drafts.
ui/src/app/router-outlet-presentation.ts:191 createEffect Keep External transport: bind router navigation and retry lifetimes to current inputs.
ui/src/app/router-outlet.tsx:424 createEffect Keep External DOM synchronization: publish committed outlet receipt to readiness consumers.
ui/src/app/shell-layout-traits-solid.tsx:25 createEffect Keep External DOM synchronization: record shell geometry traits before descendant measurement.
ui/src/components/app-sidebar-rail.tsx:208 untrack Keep Initial snapshot: Serialized pin key owns this row; current label and session facts remain derived.
ui/src/components/app-sidebar-rail.tsx:559 untrack Keep Initial snapshot: Complete serialized entry is the keyed row identity; labels remain live.
ui/src/components/app-sidebar-render.tsx:390 createEffect Keep External DOM: Measures native flag overlap only for new open requests; result is geometry, not copied props.
ui/src/components/app-sidebar-session-list-render.tsx:111 untrack Keep Initial snapshot: Section id is the For key; picks its renderer while section contents remain reactive.
ui/src/components/app-sidebar-session-pr-indicators.ts:132 createEffect Keep External transport: Commits visible-row watch custody to the shared pull-request store.
ui/src/components/app-sidebar.tsx:271 createEffect Keep External DOM/transport: Commits presentation, narration, snapshot capture, and scroll after rendering.
ui/src/components/board/board-mcp-app-content.tsx:36 createEffect Keep External widget: Retains prior iframe until asynchronous teardown acknowledges retirement.
ui/src/components/board/board-mcp-app-lifecycle.ts:51 untrack Keep Initial snapshot: Seeds activity plus visibility coherently; later snapshots come from synchronous lease admission.
ui/src/components/board/board-view.tsx:172 createEffect Keep External DOM: Publishes loading on the native host and reconciles measured initial presentation.
ui/src/components/board/board-widget-cell.solid.tsx:231 createEffect Keep External widget/transport: Retires old frames and requests active lazy widget implementations through their owners.
ui/src/components/board/board-widget-cell.solid.tsx:248 createEffect Keep External widget/transport: Synchronizes iframe/MCP lease lifecycle and reports actual presentation readiness.
ui/src/components/browser/browser-screencast-client.ts:29 addEventListener Keep Paired platform listener: WebSocket message stream is owned by this transport and aborted on close.
ui/src/components/browser/browser-screencast-client.ts:32 addEventListener Keep Paired platform listener: WebSocket close terminates transport custody and aborts its paired listeners.
ui/src/components/browser/browser-screencast-client.ts:35 addEventListener Keep Paired platform listener: WebSocket error terminates transport custody and aborts its paired listeners.
ui/src/components/canvas-widget-view.tsx:579 createEffect Keep External transport: Admits document reads and retires sandbox authority when identity or policy changes.
ui/src/components/canvas-widget-view.tsx:593 createEffect Keep External widget: Synchronizes the sandbox frame and private port with committed document presentation.
ui/src/components/command-palette-view.tsx:305 untrack Keep Initial snapshot: Category plus id owns this row registration and its cleanup; displayed item facts stay live.
ui/src/components/confirm-dialog-view.tsx:10 untrack Keep Initial snapshot: A confirmation must retain the request whose acknowledgement it is collecting.
ui/src/components/desktop/desktop-client.ts:20 querySelector Keep Foreign DOM island: noVNC owns and creates this canvas; callers cannot attach a Solid ref to its creation.
ui/src/components/desktop/desktop-client.ts:84 addEventListener Keep Paired platform listener: Socket close detail is retained for noVNC disconnect and removed during teardown.
ui/src/components/desktop/desktop-pcm-queue.ts:58 addEventListener Keep Paired platform listener: AudioBufferSourceNode ended releases source custody; stop also removes the listener.
ui/src/components/desktop/desktop-session-owner.ts:61 addEventListener Keep Ordered owner event: Gateway session events drive synchronous desktop availability; unsubscribe is returned.
ui/src/components/image-lightbox-content.tsx:447 createEffect Keep External widget: Owns gallery media leases, native video player, and Panzoom across source changes.
ui/src/components/input-dialog-view.tsx:13 untrack Keep Initial snapshot: Prompt default and submission policy belong to the mounted request until settlement.
ui/src/components/link-reader-hovercard-owner.ts:189 querySelectorAll Keep Foreign DOM island: Updates authorized preview badges on links created by the Markdown renderer.
ui/src/components/link-reader-markdown.tsx:234 querySelectorAll Keep Foreign DOM island: Normalizes external links in the sanitizer-created article fragment.
ui/src/components/link-reader-markdown.tsx:245 querySelectorAll Keep Foreign DOM island: Restricts authored article inputs to inert checkboxes in parsed HTML.
ui/src/components/link-reader-markdown.tsx:249 querySelectorAll Keep Foreign DOM island: Replaces authored images through the article image request owner.
ui/src/components/link-reader-panel-owner.ts:263 querySelectorAll Keep Foreign DOM island: Finds authored article fragment ids for navigation after the document commits.
ui/src/components/link-reader-prefetch-owner.ts:194 querySelectorAll Keep Foreign DOM island: Discovers Markdown-created links for bounded viewport-based prefetch.
ui/src/components/lobster-image.ts:62 querySelectorAll Keep Foreign DOM island: Disables animation in canonical SVG artwork before standalone image serialization.
ui/src/components/lobster-image.ts:68 querySelectorAll Keep Foreign DOM island: Pairs source SVG descendants with their clone to bake computed presentation.
ui/src/components/lobster-image.ts:69 querySelectorAll Keep Foreign DOM island: Pairs cloned SVG descendants with source nodes for standalone serialization.
ui/src/components/markdown-blocks-owner.ts:54 querySelectorAll Keep Foreign DOM island: Releases observers on removed Markdown-created code nodes.
ui/src/components/markdown-blocks-owner.ts:124 querySelector Keep Foreign DOM island: Discovers generated Mermaid wrappers before mounting one owned renderer.
ui/src/components/markdown-blocks-owner.ts:124 querySelector Keep Foreign DOM island: Discovers generated Mermaid wrappers before mounting one owned renderer.
ui/src/components/markdown-blocks-owner.ts:144 querySelector Keep Foreign DOM island: Finds the Markdown-created code viewport for resize observation.
ui/src/components/markdown-blocks-owner.ts:145 querySelector Keep Foreign DOM island: Finds Markdown-created code content for resize observation.
ui/src/components/markdown-blocks-owner.ts:151 querySelector Keep Foreign DOM island: Binds an authored code-block expand control to its viewport id.
ui/src/components/markdown-blocks-owner.ts:174 querySelectorAll Keep Foreign DOM island: Collects new Markdown-created enhancement regions after DOM reconciliation.
ui/src/components/markdown-code-blocks.ts:120 querySelectorAll Keep Foreign DOM island: Updates JSON mode controls generated inside the Markdown code-block island.
ui/src/components/markdown-code-blocks.ts:138 querySelector Keep Foreign DOM island: Measures the Markdown-created viewport for horizontal overflow.
ui/src/components/markdown-code-blocks.ts:139 querySelector Keep Foreign DOM island: Measures Markdown-created code content for horizontal overflow.
ui/src/components/markdown-dom-ref.ts:24 createEffect Keep External widget: Sends content/media to the Markdown reconciler; Solid never owns its inner DOM.
ui/src/components/markdown-element-refs-solid.ts:42 createEffect Keep External DOM/transport: Synchronizes bounded Markdown prefetch with session, visibility, and connection.
ui/src/components/markdown-element-refs-solid.ts:66 createEffect Keep External DOM: Synchronizes Markdown-owned enhancements and observers with presentation.
ui/src/components/markdown-mermaid.tsx:103 createEffect Keep External widget: Owns asynchronous Mermaid rendering and object URLs across source/theme replacements.
ui/src/components/markdown-mermaid.tsx:256 querySelectorAll Keep Foreign DOM island: Discovers Markdown-generated Mermaid regions.
ui/src/components/markdown-mermaid.tsx:259 querySelector Keep Foreign DOM island: Avoids mounting a second renderer in an already enhanced Markdown region.
ui/src/components/markdown-mermaid.tsx:262 querySelector Keep Foreign DOM island: Reads source code from the Markdown-created Mermaid wrapper.
ui/src/components/markdown-tables.ts:52 querySelector Keep Foreign DOM island: Measures overflow of a viewport generated by the Markdown table renderer.
ui/src/components/markdown-tables.ts:69 querySelector Keep Foreign DOM island: Finds the generated table viewport before adding enhancements.
ui/src/components/markdown-tables.ts:70 querySelector Keep Foreign DOM island: Finds the generated expand control before adding icon content.
ui/src/components/markdown-tables.ts:71 querySelector Keep Foreign DOM island: Finds the generated copy control before adding icon content.
ui/src/components/markdown-tables.ts:104 querySelectorAll Keep Foreign DOM island: Registers resize observation on generated viewport and table nodes.
ui/src/components/markdown-tables.ts:129 querySelectorAll Keep Foreign DOM island: Finds newly inserted Markdown table regions from mutation records.
ui/src/components/markdown-tables.ts:139 querySelectorAll Keep Foreign DOM island: Releases observers on removed Markdown table descendants.
ui/src/components/markdown-tables.ts:180 querySelectorAll Keep Foreign DOM island: Initializes existing Markdown-generated table regions for this owner.
ui/src/components/markdown-tables.ts:280 querySelector Keep Foreign DOM island: Finds the generated table targeted by a delegated action.
ui/src/components/markdown-tables.ts:297 querySelector Keep Foreign DOM island: Confirms asynchronous copy still targets the same live Markdown table.
ui/src/components/markdown.ts:515 querySelectorAll Keep Foreign DOM island: Sanitizer hook replaces native title hints on parsed Markdown link descendants.
ui/src/components/openclaw-mascot.tsx:97 createEffect Convert inputs; retain effect External canvas animation is valid, but apply discards prepared config and rereads reactive mood/size/tease through draw/playback helpers, producing strict-read diagnostics.
ui/src/components/panel-tab-strip-solid.tsx:192 untrack Keep Initial snapshot: Tab id is the For key and owns ref/label cleanup; mutable tab facts stay reactive.
ui/src/components/promise-modal-host.ts:52 addEventListener Keep Paired platform listener: Caller AbortSignal settles the modal once; cleanup removes the listener.
ui/src/components/select-picker-view.tsx:134 untrack Keep Initial snapshot: Native sheet versus popover adapter is fixed for this mounted overlay lifetime.
ui/src/components/select-picker-view.tsx:376 untrack Keep Initial snapshot: Option value is the For key and owns element registration plus teardown.
ui/src/components/session-background.tsx:221 createEffect Keep External DOM/transport: Owns private image lease retirement, native surface attributes, and fade-layout binding.
ui/src/components/session-menu-settings.ts:52 createEffect Keep External transport: Keeps open menu details synchronized with scoped session selection through the request owner.
ui/src/components/session-owner-filter.ts:107 createEffect Keep External transport: Admits sidebar queries and complete-facet correction through the synchronous filter owner.
ui/src/components/session-progress-card-view.tsx:26 querySelectorAll Keep Foreign DOM island: Registers focusable controls created by the Markdown reconciler.
ui/src/components/session-progress-card.ts:99 querySelector Keep Foreign DOM island: Promotes an authored progress element inside parsed sanitized Markdown HTML.
ui/src/components/session-progress-disclosure-binding.ts:508 createEffect Keep External DOM: Owns details geometry, native gestures, and ordered transcript-scroll subscription.
ui/src/components/settings-sidebar.tsx:314 createEffect Keep External transport: Requests selected-agent identity from the existing identity cache owner.
ui/src/components/sidebar-outbox-item.tsx:29 untrack Keep Initial snapshot: Retained handlers check the mounted outbox request and Gateway authority before navigation.
ui/src/components/skill-file-hovercard.tsx:196 createEffect Keep External widget/transport: Aborts file request and retires the portaled hovercard when its scoped identity changes.
ui/src/components/solid/identity-avatar-image.tsx:64 createEffect Keep External DOM/transport: Retains image resource and applies its decoded URL with source-scoped cancellation.
ui/src/components/solid/mcp-app-panel.tsx:199 createEffect Keep External transport: Launches scoped MCP work; resets are lifecycle retirement, not a derived display copy.
ui/src/components/solid/mcp-app-panel.tsx:256 untrack Keep Initial snapshot: Retiring MCP content retains launch target until unmount acknowledgement.
ui/src/components/solid/mcp-app-panel.tsx:257 untrack Keep Initial snapshot: Retiring MCP content retains launch identity while same-identity data remains live.
ui/src/components/solid/menu-machine.ts:338 createEffect Keep External widget: Synchronizes the Zag state machine direction/highlight with the current catalog.
ui/src/components/solid/menu.tsx:193 untrack Keep Initial snapshot: Overlay id, parent, root, and lazy policy define the mounted native overlay lifetime.
ui/src/components/solid/menu.tsx:443 untrack Keep Initial snapshot: Keyed leaf retains its renderer; its supplied attributes remain live.
ui/src/components/solid/overlay-control.ts:50 createEffect Keep External widget: Synchronizes controlled open request with native overlay veto and accepted-state authority.
ui/src/components/solid/popover.tsx:44 untrack Keep Initial snapshot: Id, lazy policy, and DOM-root placement define this native overlay lifetime.
ui/src/components/solid/tabs.tsx:64 untrack Keep Initial snapshot: Value is the For key and owns native tab registration; label and selected state stay live.
ui/src/components/terminal/terminal-connection.ts:152 addEventListener Keep Ordered owner event: Routes ordered terminal output/exit and replay; owner unsubscribes when idle.
ui/src/components/terminal/terminal-panel-session-boot.ts:100 addEventListener Keep Paired platform listener: Restore AbortSignal removes the paired document input listeners.
ui/src/lib/board/gateway-provider.ts:328 addEventListener Keep Ordered events: teardown-bound Gateway subscription preserves board commands.
ui/src/lib/chat/pasted-text-excerpt.ts:12 querySelectorAll Keep Foreign DOM island: sanitize and extract text from inert clipboard HTML.
ui/src/lib/chat/pasted-text-excerpt.ts:15 querySelectorAll Keep Foreign DOM island: sanitize and extract text from inert clipboard HTML.
ui/src/lib/hover-marquee.ts:161 createEffect Keep External DOM measurement with lazy visibility/attribute policy; current size primitive observes eagerly and does not cover that lifecycle.
ui/src/lib/markdown-dom-reconciler.ts:491 querySelectorAll Keep Foreign DOM island: discover session-title hooks in parsed Markdown.
ui/src/lib/mcp-app-catalog.ts:67 createEffect Keep Transport synchronization: retire scoped discovery and refresh on connection/target changes.
ui/src/lib/reactive/context.ts:25 untrack Keep Initial identity: mounted native host and Solid context keep their construction capability.
ui/src/lib/reactive/context.ts:28 untrack Keep Initial identity: mounted native host and Solid context keep their construction capability.
ui/src/lib/reactive/context.ts:80 createEffect Keep External context transport: publish capability replacements to native subscribers.
ui/src/lib/reactive/document-title.ts:12 createEffect Keep Shared title primitive: write document title and restore on disposal.
ui/src/lib/reactive/domain-keyed.ts:16 untrack Keep Initial scope: seed the progress-card projection before its replacement effect takes over.
ui/src/lib/reactive/domain-keyed.ts:38 createEffect Keep Projection adapter: replace the watched progress-card scope without idle teardown.
ui/src/lib/reactive/gateway-page.ts:12 createEffect Keep Transport adapter: bind and retire synchronous Gateway request scopes.
ui/src/lib/reactive/layout-measurement.ts:38 createEffect Keep Shared measurement primitive: coalesce reactive invalidations into layout reads/writes.
ui/src/lib/reactive/listener.ts:26 addEventListener Keep Shared listener primitive: native subscription paired with returned teardown.
ui/src/lib/reactive/live-value.ts:15 createEffect Keep Shared DOM-value primitive: preserve selection and skip equal value assignments.
ui/src/lib/reactive/native-draft.ts:34 createEffect Keep Shared DOM-draft primitive: reconcile committed source and validity without erasing drafts.
ui/src/lib/reactive/observers.ts:20 createEffect Keep Shared observer primitive: observe mounted targets and disconnect on replacement/disposal.
ui/src/lib/reactive/observers.ts:38 createEffect Keep Shared observer primitive: observe mounted targets and disconnect on replacement/disposal.
ui/src/lib/reactive/overlay-anchor.ts:32 createEffect Keep Shared positioning primitive: bind native overlay anchors using committed geometry.
ui/src/lib/reactive/parked-projection.ts:16 untrack Keep Projection boundary: sample hidden initial content without subscribing its live dependencies.
ui/src/lib/reactive/pending-focus.ts:14 createEffect Keep Shared focus primitive: consume each request after its target is ready.
ui/src/lib/reactive/projection.ts:64 untrack Unresolved category Repeated owner sampling is not an initial-prop snapshot; untrack preserves canonical owner-revision invalidation. Explicit primitive exception requested.
ui/src/lib/reactive/scroll-state.ts:29 createEffect Keep Shared scroll primitive: bind observer lifetime or apply identity-driven scroll commands.
ui/src/lib/reactive/scroll-state.ts:65 createEffect Keep Shared scroll primitive: bind observer lifetime or apply identity-driven scroll commands.
ui/src/lib/reactive/shadow-styles.ts:8 createEffect Keep Shared DOM primitive: bind styles into foreign shadow roots with disposal.
ui/src/lib/reactive/stream-auto-follow.ts:47 createEffect Keep Shared scroll primitive: schedule committed content following with reader-position policy.
ui/src/lib/reactive/timers.ts:5 createEffect Keep Shared timer primitive: retain equal cadence and cancel timers with owner lifetime.
ui/src/lib/reactive/timers.ts:32 createEffect Keep Shared timer primitive: retain equal cadence and cancel timers with owner lifetime.
ui/src/lib/reactive/visible-poll.ts:54 createEffect Keep Shared timer primitive: synchronize polling with visibility and enabled state.
ui/src/main.ts:75 addEventListener Unresolved category Non-DOM ServiceWorkerContainer listener has document lifetime and no paired cleanup; pagehide teardown would break BFCache restoration.
ui/src/main.ts:87 addEventListener Unresolved category Non-DOM ServiceWorkerContainer listener has document lifetime and no paired cleanup; pagehide teardown would break BFCache restoration.
ui/src/pages/activity/activity-page-view.tsx:184 createEffect Convert Timer synchronization has an existing presence-expiry owner; call its sync from the projection receipt subscription.
ui/src/pages/activity/activity-page.ts:12 createEffect Keep External transport sync: route changes retarget Activity request owners.
ui/src/pages/activity/session-activity-media.tsx:344 createEffect Keep External transport sync: retire and admit viewport-gated artifact reads by scope.
ui/src/pages/agents/agents-page.tsx:14 createEffect Keep External transport sync: adopt loader receipts into the agent request owner.
ui/src/pages/apps/apps-page.tsx:45 createEffect Keep Imperative widget sync: load the lazy chat custom element and retire stale import feedback.
ui/src/pages/chat/chat-page-state.ts:695 createEffect Keep External synchronization: cancellable committed-pane follow-up checks live route, presence, and focus authority; snapshot already tracks route/context inputs.
ui/src/pages/chat/chat-pane-runtime-view.tsx:271 createEffect Keep External DOM integration: consumes pending focus/scroll commands after commit; current visibility, pane state, and committed geometry deliberately stay live at effect time.
ui/src/pages/chat/chat-view.tsx:193 untrack Keep Initial snapshot: initialPaneId binds the companion's retained composer state; a different pane mounts a new owner.
ui/src/pages/chat/components/chat-agent-run-frame.tsx:101 createEffect Keep External synchronization: keyed foreign-DOM ranges must move live canvas widgets without disconnecting their imperative resources.
ui/src/pages/chat/components/chat-attachment-admission-ref.ts:8 createEffect Keep External synchronization: binds/retires the current native element with the external attachment-admission observer, including callback replacement.
ui/src/pages/chat/components/chat-attachment-image.ts:116 addEventListener Keep Plain owner platform lifetime: AbortSignal terminates this image worker; finish() removes listener.
ui/src/pages/chat/components/chat-attachment-image.ts:117 addEventListener Keep Plain owner platform lifetime: one-shot Worker message settles image preparation; aborts listeners and terminates worker.
ui/src/pages/chat/components/chat-attachment-image.ts:121 addEventListener Keep Plain owner platform lifetime: one-shot Worker error settles image preparation; aborts listeners and terminates worker.
ui/src/pages/chat/components/chat-attachment-image.ts:129 addEventListener Keep Plain owner platform lifetime: one-shot Worker messageerror settles image preparation; aborts listeners and terminates worker.
ui/src/pages/chat/components/chat-attachment-image.worker.ts:49 addEventListener Keep Plain owner platform lifetime: dedicated worker accepts one message, removes its handler, and is terminated by the job owner.
ui/src/pages/chat/components/chat-attachment-reads.ts:271 addEventListener Keep Plain owner platform lifetime: admitted read AbortSignal ends FileReader/preparation; finish() removes listener.
ui/src/pages/chat/components/chat-attachment-reads.ts:273 addEventListener Keep Plain owner platform lifetime: FileReader error settles the owned read; preparation.abort() removes listener.
ui/src/pages/chat/components/chat-attachment-reads.ts:274 addEventListener Keep Plain owner platform lifetime: FileReader abort settles the owned read; preparation.abort() removes listener.
ui/src/pages/chat/components/chat-attachment-reads.ts:275 addEventListener Keep Plain owner platform lifetime: FileReader load publishes only the current admitted payload; preparation.abort() removes listener.
ui/src/pages/chat/components/chat-attachment-reads.ts:276 addEventListener Keep Plain owner platform lifetime: FileReader progress updates its read receipt/watchdog; preparation.abort() removes listener.
ui/src/pages/chat/components/chat-attachment-video.ts:49 addEventListener Keep Plain owner platform lifetime: AbortSignal terminates this video-encoding job; finish() removes listener.
ui/src/pages/chat/components/chat-attachment-video.ts:50 addEventListener Keep Plain owner platform lifetime: Worker progress/result stream refreshes watchdog or settles this job; finish() aborts listener and terminates worker.
ui/src/pages/chat/components/chat-attachment-video.ts:67 addEventListener Keep Plain owner platform lifetime: Worker error settles this job; finish() aborts listener and terminates worker.
ui/src/pages/chat/components/chat-attachment-video.ts:75 addEventListener Keep Plain owner platform lifetime: Worker messageerror settles this job; finish() aborts listener and terminates worker.
ui/src/pages/chat/components/chat-attachment-video.worker.ts:164 addEventListener Keep Plain owner platform lifetime: dedicated worker accepts one message, removes handler, and is terminated by the job owner.
ui/src/pages/chat/components/chat-comment-controller.ts:246 createEffect Keep External synchronization: retires the imperative annotation editor and binds its admitted AbortSignal lifetime.
ui/src/pages/chat/components/chat-comment-controller.ts:266 createEffect Keep External synchronization: closes an imperative annotation editor when presentation/editability or its attachment disappears.
ui/src/pages/chat/components/chat-composer-plus-menu.tsx:219 createEffect Keep External synchronization: loads the active capability view from a replacement owner after reconnect while the native menu stays open.
ui/src/pages/chat/components/chat-composer-question.tsx:83 createEffect Convert No allowed category for the core work: copies derived request IDs, active request, and disclosure into state.updatePresentation, a Solid store created in chat-composer-state.ts:20.
ui/src/pages/chat/components/chat-composer-regions.tsx:34 untrack Keep Initial snapshot: initialChildren deliberately retains one native input subtree and its focus/undo history.
ui/src/pages/chat/components/chat-composer.tsx:30 untrack Keep Initial snapshot: initialPaneId selects the pane-owned composer state once.
ui/src/pages/chat/components/chat-composer.tsx:62 untrack Keep Initial snapshot: initialDictationOptions seeds a retained transport owner; later props are explicitly admitted by update().
ui/src/pages/chat/components/chat-composer.tsx:124 createEffect Convert mixed effect Transport synchronization is legitimate, but prediction.sync() rereads reactive currentProps in apply; menu calls retire real requests/overlays.
ui/src/pages/chat/components/chat-context-copy.ts:25 querySelector Keep Foreign DOM island: contextual copy resolves the clicked generated markdown code block's copy payload.
ui/src/pages/chat/components/chat-context-copy.ts:34 querySelector Keep Foreign DOM island: contextual copy resolves a clicked generated markdown-table wrapper to its native table.
ui/src/pages/chat/components/chat-detail-panel.tsx:676 createEffect Keep External synchronization: creates/updates CodeMirror only after its sidebar DOM host has committed.
ui/src/pages/chat/components/chat-details.tsx:246 createEffect Keep External synchronization: native popover show/hide, portal custody, pane geometry, and reserved layout space.
ui/src/pages/chat/components/chat-diff-render.solid.tsx:256 untrack Keep Initial snapshot: initialPresentation fixes whether this DiffBlock owns a local presentation or consumes the caller's stable one.
ui/src/pages/chat/components/chat-files-panel.tsx:192 untrack Keep Initial snapshot: initialPreviewId registers/removes the keyed preview page in the imperative host map.
ui/src/pages/chat/components/chat-image-lightbox.ts:25 querySelector Keep Foreign DOM island: finds the image inside the event-targeted generated inline-markdown button.
ui/src/pages/chat/components/chat-message-bubble-view.tsx:104 untrack Keep Initial snapshot: initialMessageKey owns DOM registration for the semantically keyed message.
ui/src/pages/chat/components/chat-message-bubble-view.tsx:106 createEffect Keep External synchronization: informs the shared media-resource owner of pairing-QR expiry and releases that subscription when expiry disappears.
ui/src/pages/chat/components/chat-message-images-solid.tsx:645 untrack Keep Initial snapshot: initialDimensions preserves the mounted preview frame when an upload receipt adds dimensions.
ui/src/pages/chat/components/chat-message-overflow.ts:130 querySelectorAll Keep Foreign DOM island: measures generated markdown native-details fallback summary geometry unavailable to text-node traversal.
ui/src/pages/chat/components/chat-model-picker.tsx:152 createEffect Convert No foreign widget: own Solid-generated rows are filtered/reordered/highlighted by imperative DOM writes through syncChatModelSearch.
ui/src/pages/chat/components/chat-position-rail-view.tsx:196 untrack Keep Initial snapshot: initialMarkerId registers/cleans the marker fixed by the For key.
ui/src/pages/chat/components/chat-pull-request-checks.tsx:39 createEffect Convert inputs; retain effect Native disclosure/overlay synchronization is valid, but compute captures values which sync() discards and rereads props.dismissed/props.presented in apply.
ui/src/pages/chat/components/chat-question-answer-controls.tsx:150 createEffect Convert inputs; retain effect Specialized textarea measurement is valid, but adjustTextareaHeight() calls overflow state's getter installed as () => props.getTranscriptElement?.(), rereading reactive props in apply.
ui/src/pages/chat/components/chat-question-panel.tsx:26 untrack Keep Initial snapshot: initialModel seeds draft initialization and initial autofocus/collapse for the request-keyed component.
ui/src/pages/chat/components/chat-question-panel.tsx:63 createEffect Convert — implemented External focus work already has a shared primitive.
ui/src/pages/chat/components/chat-read-aloud.tsx:55 createEffect Keep External synchronization: stops actual speech on connection/text/authority identity changes and admits a coalesced runtime-config load.
ui/src/pages/chat/components/chat-selection-annotations.tsx:55 untrack Keep Initial snapshot: initialId pairs delete-button registration and cleanup for a semantically keyed attachment.
ui/src/pages/chat/components/chat-session-rail-composer.tsx:106 createEffect Convert — implemented Native input synchronization exactly duplicates a shared primitive.
ui/src/pages/chat/components/chat-sidebar-region.runtime.tsx:366 untrack Keep Initial snapshot: initialPanelId registers/cleans the stable panel container fixed by its For key.
ui/src/pages/chat/components/chat-summary-automations.tsx:248 untrack Keep Initial snapshot: initialJobId pairs the keyed automation link registry with disposal and retry-focus lookup.
ui/src/pages/chat/components/chat-transcript-layout-solid.tsx:76 untrack Keep Initial snapshot: initialKey fixes the virtual row's measurement binding until its keyed owner is disposed.
ui/src/pages/chat/components/file-draft-recovery-dialog-view.tsx:25 untrack Keep Initial snapshot: initialDrafts fixes the opening recovery batch; user discards mutate its local remaining set.
ui/src/pages/chat/components/native-session-menu.runtime.ts:34 addEventListener Keep Plain owner platform lifetime: AbortSignal cancels the pending native-menu readiness wait; finish() removes listener and observer.
ui/src/pages/chat/components/session-diff-panel.tsx:449 untrack Keep Initial snapshot: initialSource is the For key and owns the mutable parsed diff expanded by gap loads.
ui/src/pages/chat/components/session-diff-panel.tsx:468 untrack Keep Initial snapshot: initialPath is immutable for the retained source and pairs presentation-map cleanup.
ui/src/pages/chat/components/widget-card-view.tsx:283 untrack Keep Initial snapshot: initialPromptCapable belongs to the URL/sandbox-keyed iframe identity, not later capability refreshes.
ui/src/pages/chat/composer-dictation-session.ts:106 addEventListener Keep Plain owner ordered event lifetime: Gateway transcription frames belong to the dictation session; stopCapture() unsubscribes.
ui/src/pages/chat/composer-dictation-session.ts:364 addEventListener Keep Plain owner ordered event lifetime: final transcription drain remains subscribed until terminal frame, timeout, or cancellation; finish() unsubscribes.
ui/src/pages/chat/link-favicon-loader.ts:58 querySelectorAll Keep Foreign DOM island: hydrates images emitted by the markdown renderer; Solid owns no image descendants inside that island.
ui/src/pages/chat/route-loader-short-resolve.ts:125 addEventListener Keep Plain owner platform lifetime: route AbortSignal rejects/retires pending short resolution; stop() removes listener.
ui/src/pages/chat/route-loader-short-resolve.ts:126 addEventListener Keep Plain owner platform lifetime: application-lifecycle AbortSignal retires the same resolution; stop() removes listener.
ui/src/pages/chat/session-snapshot-database.ts:44 addEventListener Convert cleanup Non-DOM IDB open request; pair upgrade callback removal with final success/error, preserving blocked then late-success handling.
ui/src/pages/chat/solid-render-lifecycle.ts:124 createEffect Keep External synchronization: commits a generation and runs/cancels imperative DOM/layout tasks when the pane is presented.
ui/src/pages/chat/talk/audio.ts:258 addEventListener Keep Plain owner platform lifetime: Web Audio source ended removes that source; output queue stop() aborts listeners before stopping nodes.
ui/src/pages/chat/talk/camera-owner.ts:57 addEventListener Keep Plain owner platform lifetime: one-shot MediaStreamTrack ended releases camera; release() removes handlers before stopping tracks.
ui/src/pages/chat/talk/gateway-relay.ts:88 addEventListener Keep Plain owner ordered event lifetime: Gateway relay frames belong to one transport; stopLocal() unsubscribes before media release.
ui/src/pages/chat/talk/google-live.ts:153 addEventListener Keep Plain owner platform lifetime: socket open sends setup; releaseResources() aborts all socket listeners and closes the socket.
ui/src/pages/chat/talk/google-live.ts:163 addEventListener Keep Plain owner platform lifetime: socket message enters this transport's ordered parser; same socket-controller cleanup.
ui/src/pages/chat/talk/google-live.ts:170 addEventListener Keep Plain owner platform lifetime: socket close retires the current transport; same socket-controller cleanup.
ui/src/pages/chat/talk/google-live.ts:177 addEventListener Keep Plain owner platform lifetime: socket error retires the current transport; same socket-controller cleanup.
ui/src/pages/chat/talk/input.ts:319 addEventListener Keep Plain owner platform lifetime: MediaStreamTrack ended belongs to one microphone acquisition; stop() aborts listener before releasing tracks.
ui/src/pages/chat/talk/shared.ts:182 addEventListener Keep Plain owner platform lifetime: AbortSignal settles a scoped chat-result wait; settle() removes it.
ui/src/pages/chat/talk/shared.ts:231 addEventListener Keep Plain owner ordered event lifetime: terminal Gateway chat events complete a specific run wait; settle() unsubscribes.
ui/src/pages/chat/talk/shared.ts:384 addEventListener Keep Plain owner platform lifetime: AbortSignal cancels exactly the acknowledged consult; finally removes listener.
ui/src/pages/chat/talk/voice-selection.ts:34 addEventListener Keep Plain owner ordered event lifetime: Gateway voice-change requests preserve request/ack ordering; dispose() unsubscribes and clears the timer.
ui/src/pages/chat/talk/webrtc.ts:108 addEventListener Keep Plain owner platform lifetime: one-shot MediaStreamTrack unmute retries actual playback; transport releaseResources() aborts listener.
ui/src/pages/chat/talk/webrtc.ts:114 addEventListener Keep Plain owner platform lifetime: RTCPeerConnection track binds the remote audio stream; shared transport AbortSignal cleanup.
ui/src/pages/chat/talk/webrtc.ts:134 addEventListener Keep Plain owner platform lifetime: RTCDataChannel open publishes readiness; shared transport AbortSignal cleanup.
ui/src/pages/chat/talk/webrtc.ts:144 addEventListener Keep Plain owner platform lifetime: RTCDataChannel messages enter the transport parser; shared transport AbortSignal cleanup.
ui/src/pages/chat/talk/webrtc.ts:157 addEventListener Keep Plain owner platform lifetime: RTCPeerConnection connectionstatechange retires failed peer; shared transport AbortSignal cleanup.
ui/src/pages/config/config-page-state.ts:952 createEffect Keep External transport sync: route receipts retire config requests and retarget polling.
ui/src/pages/config/curated-settings.tsx:229 untrack Keep Initial prop snapshot: retain the keyed config target for late field handlers.
ui/src/pages/config/view.tsx:451 untrack Keep Initial prop snapshot: stable section factory preserves the mounted editor nodes.
ui/src/pages/cron/cron-page.tsx:77 createEffect Keep External transport sync: route changes retire transcript work and retarget cron queries.
ui/src/pages/custodian/custodian-surface.tsx:246 createEffect Convert mixed effect Use createPendingFocus/createScrollPosition for native focus/reveal; retain external Markdown/alert integration.
ui/src/pages/dashboards/dashboards-page.tsx:19 untrack Keep Initial prop snapshot: loader data seeds the view until session-owner publications arrive.
ui/src/pages/devices/devices-page.tsx:660 createEffect Keep External transport sync: adopt route data through current Gateway request admission.
ui/src/pages/meetings/meetings-page.tsx:491 createEffect Keep External transport sync: retire archive requests on route, connection, or authority changes.
ui/src/pages/model-providers/model-providers-controller.ts:271 createEffect Keep External transport sync: loader receipts drive scoped catalog and provider requests.
ui/src/pages/model-providers/model-providers-controller.ts:276 createEffect Keep External transport sync: dispatch deferred login and credential-refresh requests.
ui/src/pages/model-setup/model-setup-owner.ts:710 createEffect Keep External transport sync: replace selection subscription and retire/resume wizard ownership.
ui/src/pages/new-session/composer-placeholder.ts:28 createEffect Keep External animation: timestamp-driven cancellable RAF loop; current timeout/interval primitives do not cover this timing contract.
ui/src/pages/new-session/composer.tsx:388 createEffect Keep External transport sync: retire stale command reads and update imperative menu owners.
ui/src/pages/plugin/plugin-page-lifecycle.ts:299 addEventListener Keep Paired platform listener: AbortSignal cancels the hidden authentication-probe iframe.
ui/src/pages/plugin/plugin-page.tsx:34 createEffect Keep Imperative widget sync: replace bundled views and frame grants when the tab changes.
ui/src/pages/plugins/credential-editor.tsx:73 createEffect Keep External transport sync: reinspect credentials and retire stale edits on scope changes.
ui/src/pages/plugins/plugins-consent.ts:334 addEventListener Keep Transport event listener: retain ordered install-progress receipts until RPC settlement.
ui/src/pages/plugins/plugins-page.ts:225 createEffect Keep External transport sync: route changes refresh Gateway binding and retire page requests.
ui/src/pages/plugins/plugins-page.ts:245 createEffect Keep External transport sync: visible icon identities drive fetch/cache owners.
ui/src/pages/plugins/svg-icon-rasterizer.ts:144 querySelector Keep Foreign DOM island: detect parser errors in detached untrusted SVG before rasterization.
ui/src/pages/plugins/svg-icon-rasterizer.ts:151 querySelectorAll Keep Foreign DOM island: validate every detached SVG descendant before canvas rendering.
ui/src/pages/sessions/sessions-page.tsx:62 untrack Keep Initial prop snapshot: seed the synchronous sessions owner before later route receipts.
ui/src/pages/sessions/sessions-page.tsx:64 createEffect Keep External transport sync: later route receipts retarget the sessions request owner.
ui/src/pages/skills/skills-page.tsx:204 createEffect Keep External transport sync: admit loader, selection, and search work into current request scope.
ui/src/pages/systems/systems-page.tsx:161 createEffect Keep External transport sync: start or park the systems owner with page visibility.
ui/src/pages/usage/usage-page.tsx:14 createEffect Keep External transport sync: route receipts retarget the usage query owner.
ui/src/plugins/control-ui-components.ts:189 querySelector Keep Foreign DOM island: plugin-supplied dialog content owns autofocus markup.
ui/src/plugins/control-ui-view.solid.tsx:286 querySelector Keep Foreign DOM island: fallback focus searches plugin-owned editable content.
Remaining conversion boundaries
  • Composer question state and menu reset policy must retain the pane-owned state shared by main/companion renderers and historical-request reopening.
  • Model picker search must derive its own Solid rows instead of imperatively filtering/reordering them.
  • Pull-request checks and free-text sizing must carry prepared inputs into effect application. Pane commit is retained after tracing its consumers: it drains pending commands against committed DOM/current pane state. The page-level follow-up is also retained: its cancellable microtask deliberately revalidates live route, presence, and focus authority after the committed frame.

Audit the wave-zero survivors and remove duplicated Chat effects. Keep native edits and question focus policy while tracking liveValue reads only in its effect. Preserve replacement-ref initialization and shrink the effect guard from 91 to 89.
@steipete steipete added the ci:full Keep ordinary native-locale CI selection on the next PR run. label Oct 20, 2026
@clawsweeper

clawsweeper Bot commented Oct 20, 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 20, 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-20T18:58:09.850072Z ae852ff 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.

@steipete
steipete enabled auto-merge (squash) October 20, 2026 17:30
@clawsweeper clawsweeper Bot added P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. labels Oct 20, 2026
@clawsweeper

clawsweeper Bot commented Oct 20, 2026

Copy link
Copy Markdown
Contributor

Codex review: needs changes before merge.

What this changes

This PR reuses shared native-input and focus primitives and removes reactive source reads from input ref callbacks.

Example: A textarea containing "replaced" is replaced by a new textarea node.

  • Before: The ref callback reads the reactive source outside tracking and can emit STRICT_READ_UNTRACKED.
  • After: The replacement receives the last committed value without reading the reactive source in its ref callback.

Review scores

Measure Result What it means
Overall readiness 🦐 gold shrimp (3/6) The focused implementation and regression coverage are sound on inspection, with confidence limited by unit-level behavioral evidence and an unclassified CI failure.
Proof confidence 🦐 gold shrimp (3/6) This maintainer-authored PR is outside the ordinary contributor proof gate; supplied unit results support the changed primitives, while the inspected model-search screenshots do not establish the changed input or focus behavior.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Product

Kind: Refactor · Worth it: Yes · Fix scope: Complete
User problem: Native input refs can emit strict-read diagnostics, while Side chat value synchronization and question focus duplicate shared primitives.
Reason: The maintainer-authored direction matches repository ownership guidance and preserves existing UI behavior with a narrow shared-primitive correction.

Merge readiness

⛔ Needs changes before merge - 1 item remains

Keep open: this maintainer-authored PR makes a focused, useful refactor with no definite introduced defect; the failed mobile-scroll check still needs attribution before landing.

Priority: P3
Reviewed head: a120f86699e97af71b0db8a2326b44aa2b7240a7

Before merge

Findings

None.

Tests

  • Missing end-to-end proof: The supplied evidence does not exercise Side chat editing and question autofocus/navigation through the shipped browser UI.
Agent review details

How this fits together

Control UI components consume reactive draft and question-navigation state; shared primitives apply committed values and focus requests to native DOM elements.

flowchart LR
  A[Draft owner] --> B[Reactive draft projection]
  B --> C[Shared liveValue primitive]
  C --> D[Native textarea]
  E[Question navigation] --> F[Shared pending focus primitive]
  F --> G[Question panel]
Loading

Technical review

Best possible solution:

Keep native-value synchronization and question focus with the existing shared primitives while preserving draft, selection, and autofocus contracts.

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

The base ref callback directly invokes the reactive accessor outside tracking, and the PR reports that the extended regression fails there with STRICT_READ_UNTRACKED; no target code was executed during this review.

Is this the best way to solve the issue?

The diff is a small complete repair using existing owners, retaining equal-value suppression and replacement-ref initialization without adding a competing synchronization path.

AGENTS.md: found and applied where relevant.

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

Provenance checked

  • Native input value binding keeps the original intent (refactor(ui): move meetings, memory import, profile, and debug to Solid #168805: Preserve native selection and undo behavior; later shared-binding and composer refactors retained this contract.)
  • Side chat composer synchronization keeps the original intent (29947bb: Bring main-composer controls and dictation behavior to Side chat while retaining its separate question model.)
  • Question panel focus keeps the original intent (4fddb19: Migrate chat leaves to Solid while preserving questions, keyboard behavior, focus, and native host contracts.)
  • Effect baseline keeps the original intent (317cd3a: Enforce shrink-only per-file allowances and prune removed effects.)

Testing

Proof path: unit tests only.

Security

None.

Evidence

What I checked:

  • Pinned introduction: The introduced diff replaces two feature effects with existing shared primitives, preserves equal-value write suppression, and removes exactly their baseline allowances. (ui/src/lib/reactive/live-value.ts:17, a120f86699e9)
  • Current-main behavior: Fetched main retains the original ref-time source read and both feature effects; its production versions of the three changed modules match the introduction base. (ui/src/lib/reactive/live-value.ts:18, 4587f83864cb)
  • Preserved focus contract: The existing pending-focus primitive supplies the previous computed value, preserving the initial autofocus opt-out and subsequent expansion/navigation focus; the existing question suite covers opt-out followed by expansion. (ui/src/pages/chat/components/chat-question-panel.tsx:63, a120f86699e9)
  • Focused regression coverage: The extended test checks initial population, equal-value selection preservation, changed values, replacement-node initialization, and absence of strict-read diagnostics; the PR reports failure on the base. (ui/src/lib/reactive/live-value.test.tsx:6, a120f86699e9)
  • Unclassified CI failure: The failed check reports zero drag movement in the mobile widget-scroll scenario at ui/src/e2e/chat-widget-scroll.e2e.test.ts:125. No base-equivalent failure was established. Full logs redirected to a blocked Azure host, while GitHub annotations remained readable. (ui/src/e2e/chat-widget-scroll.e2e.test.ts:125, a120f86699e9)
  • Proof and inspection limits: The complete PR body and comments were read. All four prepared images were inspected and show model-search UI rather than the changed input/focus paths. Maintainer notes and the installed Solid cheatsheet are absent; historical content search encountered the documented partial-clone limit. (a120f86699e9)

Likely related people:

  • RoboClaw: Raw commit 29947bb adds ui/src/pages/chat/components/chat-session-rail-composer.tsx:105 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: medium; commits: 29947bbaaad6; files: ui/src/pages/chat/components/chat-session-rail-composer.tsx)

PR surface

Source +4, Tests +26, Other -2. Total +28 across 5 files. Added test files: 0.

View PR surface stats
Area Files Added Removed Net
Source 3 27 23 +4
Tests 1 39 13 +26
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 1 0 2 -2
Total 5 66 38 +28

Review metrics

Metric Value Why it matters
Production versus test growth Production +4 lines; tests +26 lines The small production increase retains committed values for replacement refs; the test extends existing coverage with initialization, replacement, and diagnostic assertions.

Labels

Label changes:

  • add P3: This is a focused ownership cleanup and development-diagnostic repair with no established urgent user-facing failure.
  • add rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; proof is 🦐 gold shrimp and patch quality is 🐚 platinum hermit.
  • add status: ⏳ waiting on author: ClawSweeper has contributor-facing work open and is waiting for author action.

Label justifications:

  • P3: This is a focused ownership cleanup and development-diagnostic repair with no established urgent user-facing failure.
  • rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; proof is 🦐 gold shrimp and patch quality is 🐚 platinum hermit.
  • status: ⏳ waiting on author: ClawSweeper has contributor-facing work open and is waiting for author action.

Rank-up moves

Optional improvements that raise the rating; they are not merge blockers.

  • Provide browser evidence of native draft selection and initial autofocus opt-out followed by question navigation.

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 20, 2026, 1:53 PM ET / 17:53 UTC.

@steipete
steipete disabled auto-merge October 20, 2026 17:59
@steipete
steipete merged commit 193d1f9 into main Oct 20, 2026
115 of 117 checks passed
@steipete
steipete deleted the solid2/w-zero-audit branch October 20, 2026 19:50
@steipete

Copy link
Copy Markdown
Contributor Author

Merged via squash.

github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Oct 21, 2026
Audit the wave-zero survivors and remove duplicated Chat effects. Keep native edits and question focus policy while tracking liveValue reads only in its effect. Preserve replacement-ref initialization and shrink the effect guard from 91 to 89.
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. P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. size: S 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