Skip to content

refactor(ui): project realtime call and camera state - #175476

Merged
steipete merged 1 commit into
mainfrom
solid2/w-idiom6-realtime
Oct 17, 2026
Merged

steipete merged 1 commit into
mainfrom
solid2/w-idiom6-realtime

Conversation

@steipete

@steipete steipete commented Oct 17, 2026 •

Copy link
Copy Markdown
Contributor

What Problem This Solves

Realtime voice and camera updates still depended on the retired Lit redraw callback instead of publishing their owning state to Solid.

User Impact

No intended visual or interaction change. Voice handoffs, microphone recovery, camera controls, transcript reconciliation, and route cleanup keep their synchronous ownership checks.

Why This Change Was Made

Move the existing call/device fields into one plain TypeScript realtime owner. Actions publish state patches; the retained pane reads that owner through projectOwner, including when its page-state owner changes. The independent microphone-level source still avoids pane redraws. Realtime call and device transitions no longer use requestUpdate. The existing disconnected-start error callback remains until shared page errors are projected; the page host also retains its other migration callbacks.

This preserves media-stream, session, and conversation-entry identities. Render preparation now captures transcript changes from owner projections before committing scroll work. There are no new effects, writable signal copies, dependencies, startup imports, or lazy-boundary changes. The additional production lines make the synchronous snapshot and explicit mutation boundary visible.

Evidence

Check Result
UI typecheck pnpm tsgo:ui passed
Realtime actions 38 tests passed, including owner-projection publication and independent level updates
Voice handoff 9 tests passed
Split speech integration 18 tests passed, including rejected-admission error publication
Targeted lint and formatting Passed; controller guard also passed
Independent review P0–P2 review completed; fixture observation and indexed scroll-capture findings resolved
Production Knip Only the existing unused root dependency @modelcontextprotocol/client; no new unused files or dependencies
Full UI, E2E, perf and retention coverage Exact-head CI 39029125481 succeeded: all nine UI E2E shards, three UI unit shards, both real-Gateway shards, and control-ui-performance

This is a state-publication refactor with unchanged markup and styles, so no visual screenshots or local E2E runs were added. Local UI builds were omitted under the migration's lighter-proof policy because boot/startup code is unchanged.

Touched production: 2,727 → 2,811 LOC (+84); tests: 7,966 → 8,063 LOC (+97). Production requestUpdate references: 36 → 13; .subscribe(: 2 → 2; createEffect(: 2 → 2; untrack(: 1 → 1; createSignal(: 2 → 2. The remaining redraw references in these shared files belong to other migration slices.

Publish realtime voice and camera state through its synchronous owner and Solid projection. Preserve disconnected-start error publication and capture projected transcript changes during render preparation. Keep microphone level updates independent of pane rendering.
@steipete steipete added the ci:full Keep ordinary native-locale CI selection on the next PR run. label Oct 17, 2026
@clawsweeper

clawsweeper Bot commented Oct 17, 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 17, 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-17T11:36:06.505872Z 9c0363a PR opened
ℹ️ 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.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 9c0363abb6

ℹ️ 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".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

> {
return {
/** Synchronous call/device authority; projections observe complete state transitions. */
class ChatRealtimeOwner {

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Badge Reduce the refactor's production footprint

This commit adds 262 and removes 178 lines across the touched production files, for a net increase of 84 lines, even though the Solid refactor checklist mandated by ui/AGENTS.md requires refactors to reduce net production LOC. Consolidate the repeated snapshot plumbing or split/rework the owner cutover so the refactor meets the repository's maintainability gate.

AGENTS.md reference: ui/AGENTS.md:L7-L7

Useful? React with 👍 / 👎.

@steipete
steipete enabled auto-merge (squash) October 17, 2026 11:45
@steipete
steipete merged commit c7640b5 into main Oct 17, 2026
93 of 94 checks passed
@steipete
steipete deleted the solid2/w-idiom6-realtime branch October 17, 2026 11:46
@steipete

Copy link
Copy Markdown
Contributor Author

Merged via squash auto-merge.

github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Oct 18, 2026
Publish realtime voice and camera state through its synchronous owner and Solid projection. Preserve disconnected-start error publication and capture projected transcript changes during render preparation. Keep microphone level updates independent of pane rendering.
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. size: L

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant