Skip to content

refactor(ui): use optimistic actions for chat read aloud - #179854

Closed
steipete wants to merge 4 commits into
mainfrom
solid2/w-s2-read-aloud-actions
Closed

steipete wants to merge 4 commits into
mainfrom
solid2/w-s2-read-aloud-actions

Conversation

@steipete

@steipete steipete commented Oct 21, 2026 •

Copy link
Copy Markdown
Contributor

What Problem This Solves

The read-aloud button manually synchronized playback progress on start, stop, completion, and failure. Use an optimistic Solid action value for that presentation while the existing playback owner retains audio start/cancellation, current-client checks, and stale synthesis disposal.

Reading, stopping, retrying after synthesis failure, reconnecting, and replacing the message preserve their behavior. Audio preparation still starts inside the native click before any await, preserving Safari user activation. A synchronous admission flag preserves immediate start/stop clicks while presentation settles; operation errors remain visible.

The latest main integration resolves the browser retry-test conflict by retaining main's improved live-locator assertion exactly. The real PR diff contains only the read-aloud component and its two direct tests. All three files and the speech-playback owner are byte-identical to the previously tested a5e3 head.

Evidence

Proof Result
Frozen install and UI types PASS on integration with main f3f7a8a; default tsrs
Direct read-aloud and reconnect tests 15 + 1 PASS, pinned Bun; unchanged source reused
Isolated P0–P2 review PASS on complete three-file integration diff; no actionable findings
Production Knip PASS on exact replacement head 3be8804; canonical command, 18m37s, no ignores
Paired production build / strict performance PASS on 42f/a425 pair below; retained historical proof, not current-main metrics
Synthetic screenshots Ready and pending, 1440×960; all four inspected and uploaded, unchanged component
Broad UI, chat performance/retention and E2E Exact-head ci:full completed; all jobs pass/skip except the matching-main header assertion and aggregate gate

Production LOC: 125 → 143 (+18). Direct test LOC: 350 → 378 (+28). Growth preserves synchronous audio admission while an explicit action presents progress. No new owner, dependency, tag, or import boundary.

In the touched production file, I4 (manual process state) is 1 → 0; I1–I3 and I5–I10 are 0 → 0. Generation and admission fields retain cancellation identity and immediate click admission.

Retained paired build

Main 42f326e4aa48a78c450a4284ad5c37a18d16250b and production head a425d2b127e6a2942970cfee0b0da995d50e3600 were built on the same machine with fixed metadata, cache disabled, and matching UI-only plugin inputs.

Gzip metric Before After
Startup JavaScript 325,002 B / 9 requests 325,000 B / 9 requests
Startup CSS 40,780 B / 1 request 40,780 B / 1 request
Chat boot JavaScript 1,441,061 B / 27 requests 1,441,078 B / 27 requests
New-session boot JavaScript 1,019,219 B / 22 requests 1,019,212 B / 22 requests

Every lazy boundary is retained. Startup gzip changes by −2 B, within the 64 B build-variance allowance.

Before / after

State Before After
Ready Ready before Ready after
Pending synthesis Pending synthesis before Pending synthesis after

Historical CI and integration

Prior full run 39678389675 on a5e3 passed all jobs except Chat boot render storm > prewarms session actions after a busy cold load without building unrelated menus or losing the draft, which waited for the old Message permissions heading. The exact tested main parent 975047836d1b7652193ad3f64592ec4048186a96 reproduced that same assertion. Main now includes the heading repair. That prior failure evidence is historical and is not an inherited waiver for the replacement head.

A targeted browser-test lint attempt on the earlier head stopped before lint because plugin SDK declaration preparation timed out after 300 seconds; no file diagnostic was emitted. The earlier full CI lint job passed. Both the repaired browser test and its old local proof are outside the final three-file PR diff.

Current scope census

Family Files Production LOC I1 I2 raw I3 I4 I5 I6 I7 raw I8 I9 I10 raw
attachments 34 4218 0 4 2 1 0 0 0 0 0 0
automations 7 1514 0 0 2 1 0 0 0 0 0 0
cards 10 2148 0 0 0 2 0 1 0 0 0 0
context 2 542 0 1 0 0 0 0 0 0 0 0
details 18 4828 0 0 0 0 0 1 0 0 0 0
header-navigation 12 4139 0 0 0 0 0 1 0 0 0 0
indicators-other 65 7831 0 1 1 0 0 0 0 0 0 3
media_previews 23 3659 → 3677 0 5 2 1 → 0 0 1 0 0 0 0
panels_files_sidebar 23 6045 0 2 1 4 0 1 0 0 0 0
publication 3 843 0 0 0 0 0 0 0 0 0 0
pull_request_ci 9 2256 0 0 1 2 0 0 0 0 0 0
questions 13 2529 0 0 0 0 0 0 0 0 0 0
review_diff 17 3957 0 0 2 0 0 1 0 0 0 0
sharing 6 1955 0 0 0 0 0 0 0 0 0 0
sidebar 10 3374 0 0 0 1 0 0 0 0 0 0
source_previews 1 144 0 1 0 0 0 0 0 0 0 0
tools 7 1552 0 0 0 0 0 0 0 0 0 0
workspace 15 4740 0 0 4 0 0 1 0 0 0 0

Whole CHAT-D scope: f3f7a8aea267 → 3be8804a19ca; 275 → 275 production files, 56,274 → 56,292 LOC. I1–I10 follow wave-ten. Raw API sites include documented computation cleanup and foreign-DOM exceptions; unlanded work remains counted.

Totals I1–I10: 0, 14, 15, 12 → 11, 0, 7, 0, 0, 0, 3.

Current reviewed head: 3be8804a19ca2be9667cb3ddd29f9fdb7aa46621. The fresh canonical production Knip run passed on this head.

Current CI attribution

Exact-head run 39694769696 fails only Chat header and delegated work > keeps new batches collapsed until Subagents is opened manually without duplicate wait status, at line 122 waiting for the hidden Details section. A normal-config replay on its actual tested main parent a1d64e5 independently fails the identical name and hidden-section assertion after a successful production build. The local timeout is 10 seconds versus CI 30 seconds; Vitest reports 62.48 seconds and exit 1. All other selected PR jobs passed or skipped. Latest scheduled main 39707038848 now passes the header case, so qualification uses the exact-parent replay rather than older scheduled evidence.

See PR run and latest scheduled main run. The native inherited-failure route retains this failed result; it does not claim a green CI run. The replay uses the normal Playwright configuration and Node runtime, one worker, a clean checkout, and disabled compiler/filesystem caches. No private failure media is published.

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

clawsweeper Bot commented Oct 21, 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 21, 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-21T23:51:29.000203Z 3be8804 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.

@clawsweeper clawsweeper Bot added P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. proof: 📸 screenshot Contributor real behavior proof includes screenshot evidence. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. labels Oct 21, 2026
@clawsweeper

clawsweeper Bot commented Oct 21, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: stale review; fresh review needed.

Summary
The latest durable ClawSweeper review was for head 290ee7097ad55656d698dddac5ba034b9cfa8e6f, but the PR head is now a5e3d39ccf630c760c447db312d9da69fb165207. Its old verdict and PR readiness labels are no longer current.

Next step
Run or wait for a fresh ClawSweeper review on the current PR head.

Review history (1 earlier review cycle)
  • reviewed 2026-10-21T20:31:15.304Z sha 290ee70 :: needs maintainer review before merge. :: none

@clawsweeper clawsweeper Bot removed rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. proof: 📸 screenshot Contributor real behavior proof includes screenshot evidence. labels Oct 21, 2026
@steipete

Copy link
Copy Markdown
Contributor Author

Superseded by #180433, merged as feb2fc1 and verified on main.

The replacement preserves this PR's focused three-file read-aloud change, integrates current main, and passes exact-head full CI run 39745296256. Its PR contains the fresh paired build measurements, inspected synthetic before/after screenshots, and local proof. Closing this superseded PR; the ambiguous old managed-checkout metadata remains untouched.

@steipete steipete closed this Oct 22, 2026
@RomneyDa
RomneyDa deleted the solid2/w-s2-read-aloud-actions branch November 30, 2026 20:45
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. size: S

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant