Skip to content

perf(ui): use native Base64 conversion for Talk audio - #184879

Merged
steipete merged 5 commits into
mainfrom
solid2/w-perf-talk-base64
Oct 26, 2026
Merged

steipete merged 5 commits into
mainfrom
solid2/w-perf-talk-base64

Conversation

@steipete

@steipete steipete commented Oct 26, 2026 •

Copy link
Copy Markdown
Contributor

Problem and change

Talk repeatedly encodes microphone PCM chunks and decodes playback chunks through the shared Base64 helper. Use the native typed-array APIs when available, preserving the original encoder and decoder as the exact fallback for older browsers admitted by the current capability gate. In particular, that gate admits Chromium 135–139, while the native APIs arrived in Chromium 140. This PR does not change browser admission or add a dependency. Standard padded output, typed-array view boundaries, accepted decode inputs, and malformed-input rejection are preserved; exception class/message is not a public contract.

Extend the existing Talk benchmark with native gateway-relay PCM observations, truthful matching/stale/idle cancellation, silent-input setup before playback, and retained failure diagnostics. This fixes the synthetic cancellation contract without changing production Talk transport behavior. Every observed cancellation, delivery, actual visibility, traffic, and Stop gate remains enforced.

Result and proof

Main-thread script CPU improves in all four measured cells (paired medians −24% to −39%), with lower script p95s. Task CPU improves most during playback; speaking task CPU changes are small. The initial desktop playback task-p95 outlier remains in the data; ten additional AB and AA pairs bring this cell to n=20, where both task and script medians/p95s improve. The result is a focused reduction in script work; it does not establish a 40% total active-task CPU reduction or a battery-duration improvement.

Check Result
Base64 unit tests, pinned default Bun 44 passed; native and API-absent branches, zero skips
Actual helper in Chromium 156.0.8078.4 and WebKit 27.2 108/108 checks: 27 encoding/decoding cases per engine in native and API-absent modes
Talk fixture tests 2 passed; real installed init script with stubbed audio edges proves matching/stale cancellation and cleanup
UI, scripts, tooling test typechecks Passed
Narrow UI/scripts lint, changed-file format, git diff check Passed
Final production Knip Passed once, no findings
Production UI build and strict byte comparison Passed; no warnings/violations
Independent review Prior full harness review clean; final compatible delta scoped-clean, no actionable P0–P2 findings
First native-PCM cohort Strict v5 PASS: 160 observations / 80 precache+Stop identities / 0 incomplete process sets
Desktop playback extension Strict v5 PASS: 40 observations / 40 precache+Stop identities / 0 incomplete process sets

Both cohorts use source-identical commit 7571279012140fe19355783957109da21e7ae801, the same frozen bundles and validator, headless desktop/mobile at 4× CPU, five-second observations, and interleaved independent A/A controls. Desktop playback combines twenty pairs per comparison; other cells retain ten. Pair identity is (cohort, original pair). All 200 observations and 120 browser identities are retained; no row or outlier is filtered. At n=10 nearest-rank p95 is the maximum; at n=20 it is the second-largest.

Main-thread CPU

CPU uses CDP Performance.enable with timeDomain: "threadTicks": TaskDuration and ScriptDuration measure main-thread CPU, normalized by the elapsed probe interval. Values are ms per second. Each side shows median / p95 [min–max]; paired change is the median of individual pair percentages.

Comparison View/state (pairs) Metric Base Candidate Paired median
AB desktop/responding (20) task 24.354 / 28.139 [18.738–28.709] 20.122 / 24.272 [17.176–31.341] -15.07%
AB desktop/responding (20) script 18.531 / 20.730 [15.206–23.531] 14.487 / 17.738 [12.695–20.732] -24.38%
AB desktop/speaking (10) task 119.899 / 151.580 [97.678–151.580] 115.825 / 144.584 [93.832–144.584] -4.92%
AB desktop/speaking (10) script 10.832 / 14.042 [9.844–14.042] 7.055 / 8.279 [5.228–8.279] -37.01%
AB mobile/responding (10) task 26.607 / 29.830 [23.179–29.830] 18.621 / 25.850 [16.595–25.850] -27.04%
AB mobile/responding (10) script 18.928 / 20.404 [17.280–20.404] 14.074 / 15.626 [12.823–15.626] -24.66%
AB mobile/speaking (10) task 114.827 / 130.595 [103.162–130.595] 113.135 / 122.744 [100.372–122.744] -0.29%
AB mobile/speaking (10) script 10.727 / 12.523 [9.372–12.523] 6.783 / 8.413 [5.516–8.413] -38.67%
AA desktop/responding (20) task 23.734 / 30.539 [19.902–31.322] 22.299 / 30.599 [19.511–30.753] -2.98%
AA desktop/responding (20) script 18.330 / 21.243 [17.366–21.811] 18.452 / 20.819 [15.440–21.404] -2.41%
AA desktop/speaking (10) task 120.026 / 133.038 [108.121–133.038] 117.597 / 138.003 [104.864–138.003] -2.84%
AA desktop/speaking (10) script 10.752 / 11.887 [9.330–11.887] 10.313 / 12.320 [9.411–12.320] -1.00%
AA mobile/responding (10) task 27.206 / 30.525 [23.068–30.525] 24.250 / 30.929 [20.697–30.929] -1.33%
AA mobile/responding (10) script 19.069 / 21.328 [18.851–21.328] 19.546 / 20.856 [16.966–20.856] -0.52%
AA mobile/speaking (10) task 116.598 / 124.070 [108.766–124.070] 117.659 / 124.874 [106.634–124.874] +0.48%
AA mobile/speaking (10) script 10.397 / 12.385 [9.407–12.385] 11.228 / 13.910 [9.235–13.910] +5.81%

Desktop playback’s original candidate maximum 31.3414 ms/s is retained in the n=20 range. Task p95 now improves 28.1387→24.2722 ms/s; A/A task p95 moves 30.5387→30.5994 ms/s (+0.20%). The mobile-speaking script A/A paired median is +5.81%, showing shared-host noise; no clean wall-time result is claimed.

The unchanged style owner has a small absolute desktop-playback style-p95 movement: 0.4022→0.4316 ms/s; A/A moves 0.4806→0.5329 ms/s. This is not a claim that every CPU subphase improves.

Local latency probes

Each row summarizes per-observation latency medians or p95s, rather than pooling native frames. Values are milliseconds, shown as median / p95 across observations. Scheduled lead is compared absolutely; percentages against near-zero baselines are omitted.

Comparison View/state (pairs) Probe/statistic Base Candidate
AB desktop/responding (20) callbackToAppendMs.median 1.4000 / 1.6000 0.8000 / 0.9000
AB desktop/responding (20) callbackToAppendMs.p95 2.1000 / 3.4000 1.3000 / 1.5000
AB desktop/responding (20) eventToScheduleCallMs.median 0.8500 / 0.9000 0.8000 / 0.9000
AB desktop/responding (20) eventToScheduleCallMs.p95 1.5000 / 2.0000 1.3500 / 1.6000
AB desktop/responding (20) scheduledLeadMs.median 0.0000 / 0.0000 0.0000 / 0.0000
AB desktop/responding (20) scheduledLeadMs.p95 0.0000 / 2.6667 0.0000 / 2.6667
AB desktop/speaking (10) callbackToAppendMs.median 1.2500 / 1.4000 0.5250 / 0.8000
AB desktop/speaking (10) callbackToAppendMs.p95 2.4500 / 4.9000 1.5500 / 3.3000
AB mobile/responding (10) callbackToAppendMs.median 1.5000 / 1.8000 0.8000 / 0.9000
AB mobile/responding (10) callbackToAppendMs.p95 2.2000 / 3.5000 1.4500 / 2.0000
AB mobile/responding (10) eventToScheduleCallMs.median 0.8500 / 1.0000 0.8500 / 0.9000
AB mobile/responding (10) eventToScheduleCallMs.p95 1.5500 / 2.2000 1.4500 / 2.0000
AB mobile/responding (10) scheduledLeadMs.median 0.0000 / 0.0000 0.0000 / 0.0000
AB mobile/responding (10) scheduledLeadMs.p95 0.0000 / 1.3333 1.3333 / 2.6667
AB mobile/speaking (10) callbackToAppendMs.median 1.2000 / 1.3000 0.4500 / 0.7000
AB mobile/speaking (10) callbackToAppendMs.p95 2.7000 / 4.1000 1.4500 / 2.4000
AA desktop/responding (20) callbackToAppendMs.median 1.4000 / 1.7000 1.4000 / 1.6000
AA desktop/responding (20) callbackToAppendMs.p95 2.2000 / 2.5000 2.0500 / 2.4000
AA desktop/responding (20) eventToScheduleCallMs.median 0.9000 / 1.0000 0.8000 / 0.9000
AA desktop/responding (20) eventToScheduleCallMs.p95 1.5000 / 1.7000 1.5000 / 1.9000
AA desktop/responding (20) scheduledLeadMs.median 0.0000 / 0.0000 0.0000 / 0.0000
AA desktop/responding (20) scheduledLeadMs.p95 0.0000 / 2.6667 0.0000 / 2.6667
AA desktop/speaking (10) callbackToAppendMs.median 1.2000 / 1.4000 1.2000 / 1.4000
AA desktop/speaking (10) callbackToAppendMs.p95 2.6000 / 4.8000 2.9500 / 3.7000
AA mobile/responding (10) callbackToAppendMs.median 1.5000 / 1.6000 1.5250 / 1.7000
AA mobile/responding (10) callbackToAppendMs.p95 2.2000 / 2.8000 2.2000 / 3.1000
AA mobile/responding (10) eventToScheduleCallMs.median 0.9000 / 1.0000 0.8000 / 0.9000
AA mobile/responding (10) eventToScheduleCallMs.p95 1.6000 / 1.9000 1.6000 / 2.4000
AA mobile/responding (10) scheduledLeadMs.median 0.0000 / 0.0000 0.0000 / 0.0000
AA mobile/responding (10) scheduledLeadMs.p95 0.0000 / 0.0000 0.0000 / 2.6667
AA mobile/speaking (10) callbackToAppendMs.median 1.2000 / 1.3000 1.2000 / 1.3500
AA mobile/speaking (10) callbackToAppendMs.p95 2.7500 / 3.0000 2.7000 / 5.4000

Production computes startAt=max(context.currentTime,playhead) before decoding; the observer reads currentTime after native start(). Recorded lead values have approximately 1.333 ms steps. In mobile playback, every per-observation median remains 0; the distribution of per-observation p95 moves from median 0 / maximum 1.333 ms to median 1.333 / maximum 2.667 ms. Across 490 starts per side, maximum lead remains 4 ms, with requested-start spacing 100–106.667 ms on both sides. Same-source A/A shows comparable step movement. Desktop playback at n=20 has median 0 and p95≈2.667 ms on both sides. These are clock/phase-sensitive local scheduling observations, not proof of identical acoustic latency.

Delivery, cleanup, and boundary

Every native input callback reached its FIFO-matched asynchronous mock talk.session.appendAudio handler after production PCM conversion, Base64 encoding, and GatewayClient serialization through the mock WebSocket. Observations retain 29–30 input frames, byte length/session identity, timestamp order, and sustained cadence. Playback retains native scheduling, buffer shape, cadence, and natural-completion checks. Helper tests establish Base64 byte correctness; this benchmark does not compare decoded server waveform samples or prove real-server/provider acknowledgement.

Late mock receipts counts receipts after the observation’s end, not total appends. There are two across all 200 observations: initial cohort AB-mobile-4x-0-1-responding, frame 154, arrived 3.5 ms after the boundary (4.9 ms callback-to-receipt); extension cohort AA-desktop-4x-4-1-responding, frame 118, also arrived 3.5 ms after the boundary (5.6 ms callback-to-receipt). Both receipts are paired deliveries, not lost frames. All other observation gates and both strict validator reports remain complete. Post-Stop receipts require ended tracks, closed native contexts, and no new owned callbacks/appends/starts across two input-block periods. All 120 observed browser roots exited.

Each run used its own caffeinate -d assertion and removed only that owned process. Actual visibility was never faked. Initial run: 17:23:58.369521–17:59:07.164179Z; assertion removed 17:59:07.164135Z. Extension: 18:03:00.894195–18:14:57.057844Z; assertion removed 18:14:57.057784Z. Both final aggregate display assertions were 0.

Host load and coverage

No coordinated task-owned browser/build workload overlapped the measurements; other shared-host activity cannot be excluded. Host load distributions are recorded below as min / median / p95 / max.

Cohort Load average Distribution
initial 1min 23.282 / 37.652 / 53.788 / 56.984
initial 5min 30.933 / 37.501 / 46.523 / 48.788
initial 15min 31.020 / 35.114 / 41.177 / 42.159
extension 1min 28.411 / 34.883 / 40.769 / 47.199
extension 5min 34.003 / 36.456 / 40.555 / 41.053
extension 15min 36.871 / 38.246 / 40.404 / 40.583

Separate 1/5/15-minute endpoint readings:

  • initial: start [42.26318359375, 36.76416015625, 32.349609375]; end [40.34130859375, 42.1279296875, 40.53369140625].
  • extension: start [37.03564453125, 40.93212890625, 40.53271484375]; end [35.7939453125, 35.13232421875, 37.08935546875].

Both runs began after coordinated task-owned builds and source verification finished. Earlier interrupted attempts remain preserved and excluded. The extension launcher’s descriptive grid.browsers=20 arithmetic error is retained with a correction: its actual command and strict validator require 40 browsers. No measurement gate changed.

This proof covers 4× CPU speaking and native playback on desktop/mobile. FPS, GC-event, wakeup and compositor probes were disabled for this CPU comparison. It makes no direct idle/hidden, quiet-transcript, visible-caption, battery-duration, hardware microphone, acoustic, real-provider, or 100 ms RTT claim. The fixture unit proof is timer/cancellation proof, not native audio proof. The synthetic append/schedule probes are not end-to-end audio latency.

Build size and scope

The base is 36c5aa11d1006576765d506c0438c97c124516bb. Its existing frozen output was reused after all 5,933 emitted-file hashes matched. Node 26.12.1, dependencies, build configuration and deliberately fixed build metadata match the candidate. Only the Base64 helper changes among production build inputs; source/diff hashes stayed fixed through build, and the emitted source map matches helper SHA-256 57e067427c3aff8c84f010ad3807ca78f2caa45469f7e96d30a61546392a6e92. Commit/source/validator hashes matched again at both run completions; the working tree is clean. Fixed embedded build metadata is not a source-commit attestation.

Surface Base Candidate Change
Startup JS gzip 271,007 B 271,016 B +9 B
Startup JS raw 839,873 B 840,002 B +129 B
Startup JS requests 5 5 0
Startup CSS gzip / requests 31,981 B / 1 31,981 B / 1 0
Chat boot JS gzip 1,237,208 B 1,237,227 B +19 B
New Session boot JS gzip 750,680 B 750,603 B −77 B

No startup budget is raised, lazy boundary changed, or dependency added. No UI markup/CSS changes. The old test shim is removed, leaving no net dom.setup.ts change against the baseline.

File Base LOC Candidate LOC
Base64 helper 17 25
Base64 tests 12 73
Talk runner 1,735 2,014
Talk fixture 737 1,031
Fixture tests 18 134
Scripts README 454 496
Lint-suppression inventory 372 372
Total 3,345 4,145

The production helper adds 8 lines; most of the net 800-line growth is native PCM observation, cancellation and cleanup proof in the existing benchmark. No new production owner is introduced. Release-note context: reduce repeated Talk PCM Base64 conversion work through available native APIs while preserving older admitted browsers through the original fallbacks.

CI repair and baseline attribution

Initial CI run 40376449648 passed both real-Gateway shards and the Control UI performance check. It found two PR-owned harness issues: the native-method suppression inventory needed to include the three new wrappers, and the fixture test's partial Playwright Page cast did not satisfy the installed API. The repair gives the installer its actual two-method contract, supplies the disposable handles required by both stub methods, and updates the explicit inventory. Production audio and the injected browser fixture behavior are unchanged.

That run also failed check-test-types-core-2 with TS2345 at src/auto-reply/reply/reply-agent-turn-preparation.test.ts:646:9: the providedReplyOperation test double lacks required ReplyOperation properties. This exact diagnostic reproduces as the sole error on the run's clean main parent 584e043803862a1df0b7765d76f495058f10329d, after a frozen install, with OPENCLAW_LOCAL_CHECK=0 NODE_DISABLE_COMPILE_CACHE=1 node scripts/run-tsgo.mjs -p test/tsconfig/tsconfig.core.test.messaging.json --incremental (exit 2). It is separate from the two repaired PR-owned failures; no unrelated source fix is included.

Replacement run 40383910396, on corrected head 2be939dee8bc23490d7ee1bb69ce01ebc404be14, passes the repaired checks, all UI unit shards, performance and both real-Gateway shards. Its sole failing test is ui/src/e2e/chat-session-file-pdf.e2e.test.ts > Session file PDFs > previews linked PDFs above and below the inline cap and downloads fresh bytes: download.path() reports “Path is not available when connecting remotely. Use saveAs() to save a local copy.” The same sole test and error fail in the latest completed scheduled main run 40380874869, job 121776723303. There are no PR-only failing names. Both the PDF test and its E2E support file have identical Git blobs between the tested main parent cfb41dddac89dcf40325273b98ffb1c7a9d209a2 and tested merge dc00b70a693f7e3b27fd68205e371acacacca5d4. Current CI remains failed; landing uses the native inherited-failure recovery after confirmed cancellation of the earlier auto request. All logs, exact-name comparison, checkout and source-object evidence are retained locally with the native evidence record.

Use Uint8Array.toBase64 within the supported Control UI browser and WebView floor. Preserve standard padded output and subarray view boundaries, with a JSDOM-only shim for the Node 24 dual-runtime test lane.
Use the native typed-array encoder and decoder when available, preserving the original fallback behavior for admitted older browsers. Repair the PCM benchmark cancellation contract and retain strict delivery, visibility, and Stop proof.
@steipete steipete added the ci:full Keep ordinary native-locale CI selection on the next PR run. label Oct 26, 2026
@clawsweeper

clawsweeper Bot commented Oct 26, 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 26, 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-26T19:09:28.692906Z 2be939d New commits
ℹ️ About Codex in GitHub

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

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

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

@openclaw-barnacle openclaw-barnacle Bot added app: web-ui App: web-ui scripts Repository scripts size: L labels Oct 26, 2026
@steipete
steipete enabled auto-merge (squash) October 26, 2026 18:33
@clawsweeper clawsweeper Bot added P2 Normal backlog priority with limited blast radius. proof: sufficient ClawSweeper judged the real behavior proof convincing. 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 26, 2026
@clawsweeper

clawsweeper Bot commented Oct 26, 2026

Copy link
Copy Markdown
Contributor

Codex review: needs changes before merge.

What this changes

This PR uses native Base64 conversion when available and extends the Talk benchmark to observe native PCM capture, playback, cancellation, and cleanup.

Example: Talk encodes a 4,096-sample PCM16 microphone frame containing 8,192 bytes.

  • Before: The shared helper constructs an intermediate binary string before Base64 encoding.
  • After: Browsers with the native API encode the bytes directly; older admitted browsers retain the original conversion.

Review scores

Measure Result What it means
Overall readiness 🦐 gold shrimp (3/6) Useful, measured production optimization with preserved fallbacks; a confirmed suppression-inventory failure needs repair, while two other CI failures remain unattributed.
Proof confidence 🐚 platinum hermit (4/6) Sufficient (live_output): The supplied browser output covers the actual shared helper in Chromium and WebKit with native APIs present and absent, and production UI bundles exercising native PCM capture and playback with cancellation and Stop cleanup; transport responses are synthetic and no provider or acoustic claim is made.
Patch quality 🦐 gold shrimp (3/6) 1 actionable review finding remain.

Product

Kind: Performance · Worth it: Yes · Fix scope: Complete
User problem: Talk spends avoidable browser script CPU converting microphone and playback audio.
Reason: The maintainer-authored direction preserves the shared owner and browser admission while reporting measurable script CPU reductions.

Merge readiness

⛔ Needs changes before merge - 1 item remains

Keep this PR open: it provides a useful, narrowly scoped performance improvement, but its new lint suppressions cause a confirmed CI failure.

Priority: P2
Reviewed head: 7571279012140fe19355783957109da21e7ae801

Before merge

  • Account for the three added native-method suppressions (P2) - The PCM observers add three typescript/unbound-method suppressions, increasing this file's total from two to five. The explicit inventory in test/scripts/lint-suppressions.test.ts still expects two, so checks-node-compact-small-1 fails on this exact head with that mismatch. Update the narrowly justified inventory entry and its receiver-forwarding explanation, or remove the need for the new suppressions, then rerun the inventory test.

Findings

  • [P2] Account for the three added native-method suppressions — scripts/lib/control-ui-talk-fixture.ts:755-756
Agent review details

How this fits together

The shared browser helper converts byte arrays and Base64 strings for Talk audio and other Control UI consumers; the benchmark exercises production UI bundles with native audio and synthetic Gateway responses.

flowchart LR
  A[Microphone PCM] --> B[Shared Base64 helper]
  B --> C[Gateway client]
  C --> D[Relay audio events]
  D --> B
  B --> E[Native audio playback]
  F[Talk benchmark] --> A
  F --> D
Loading

Technical review

Best possible solution:

Retain the shared helper fast paths and original fallbacks, and account for the three justified native-method forwarding suppressions in the existing inventory.

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

Current main visibly performs the repeated conversion loops, and the supplied browser measurements exercise that path; this review ran no target code.

Is this the best way to solve the issue?

The native branches are the smallest production change within the existing owner, preserve older-browser behavior, and match the documented native API defaults (encoder, decoder).

Full review comments:

  • [P2] Account for the three added native-method suppressions — scripts/lib/control-ui-talk-fixture.ts:755-756
    The PCM observers add three typescript/unbound-method suppressions, increasing this file's total from two to five. The explicit inventory in test/scripts/lint-suppressions.test.ts still expects two, so checks-node-compact-small-1 fails on this exact head with that mismatch. Update the narrowly justified inventory entry and its receiver-forwarding explanation, or remove the need for the new suppressions, then rerun the inventory test.
    Confidence: 1

Overall correctness: patch is incorrect
Overall confidence: 0.96

AGENTS.md: found and applied where relevant.

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

Provenance checked

  • Shared Base64 conversion keeps the original intent (56b3d23: Consolidate duplicate UI byte encoding; decoder consolidation followed in 8bb7fb2.)
  • Talk benchmark and fixture keeps the original intent (b1cb2a0: Measure production-renderer Talk CPU with native synthetic audio; subsequent changes added precache, traffic, visibility, and cleanup boundaries.)

Testing

Proof path: shipped entry point.

Security

None.

Evidence

Acceptance criteria:

  • pnpm test test/scripts/lint-suppressions.test.ts test/scripts/control-ui-talk-fixture.test.ts --maxWorkers=1
  • git diff --check

What I checked:

PR surface

Source +8, Tests +172, Docs +42, Other +573. Total +795 across 6 files. Added test files: 0.

View PR surface stats
Area Files Added Removed Net
Source 1 8 0 +8
Tests 2 179 7 +172
Docs 1 42 0 +42
Config 0 0 0 0
Generated 0 0 0 0
Other 2 618 45 +573
Total 6 847 52 +795

Review metrics

Metric Value Why it matters
Benchmark option One new --transport flag Selects webrtc or gateway-relay for measurement; the existing webrtc default remains.

Labels

Label changes:

  • add P2: A useful Talk CPU improvement has one focused, confirmed CI repair before merge.
  • add proof: sufficient: Contributor real behavior proof is sufficient.
  • add rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; proof is 🐚 platinum hermit and patch quality is 🦐 gold shrimp.
  • add status: ⏳ waiting on author: ClawSweeper has contributor-facing work open and is waiting for author action.

Label justifications:

  • P2: A useful Talk CPU improvement has one focused, confirmed CI repair before merge.
  • rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; proof is 🐚 platinum hermit and patch quality is 🦐 gold shrimp.
  • status: ⏳ waiting on author: ClawSweeper has contributor-facing work open and is waiting for author action.
  • proof: sufficient: Contributor real behavior proof is sufficient.

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 26, 2026, 2:32 PM ET / 18:32 UTC.

@steipete
steipete disabled auto-merge October 26, 2026 18:43
@steipete
steipete merged commit e7e2592 into main Oct 26, 2026
119 of 126 checks passed
@steipete
steipete deleted the solid2/w-perf-talk-base64 branch October 26, 2026 19:52
@steipete

Copy link
Copy Markdown
Contributor Author

Merged via explicitly authorized admin squash with attributed pre-existing CI failures.

github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Oct 27, 2026
* perf(ui): use native base64 encoding

Use Uint8Array.toBase64 within the supported Control UI browser and WebView floor. Preserve standard padded output and subarray view boundaries, with a JSDOM-only shim for the Node 24 dual-runtime test lane.

* test(ui): measure native PCM Talk capture and playback

* perf(ui): use compatible native base64 conversions for Talk

Use the native typed-array encoder and decoder when available, preserving the original fallback behavior for admitted older browsers. Repair the PCM benchmark cancellation contract and retain strict delivery, visibility, and Stop proof.

* test(ui): satisfy Talk fixture toolchain contracts
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

app: web-ui App: web-ui ci:full Keep ordinary native-locale CI selection on the next PR run. P2 Normal backlog priority with limited blast radius. proof: sufficient ClawSweeper judged the real behavior proof convincing. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. scripts Repository scripts size: L 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