Repository navigation
fix(ui): bound realtime Talk conversation text - #117581
Conversation
* origin/main: refactor(policy): centralize doctor health-check descriptors (#117578) perf(gateway): mark recovery before model preparation (#117544) fix(openai): keep embedding identity stable across upgrades (#117557) fix(googlechat): drop invalid thread resource names before send (#108324) fix(skills): preserve profile in ClawHub command hints (#117555) fix(cli): explain filtered plugin policy without unsafe recovery (#117556) fix(irc): strip markdown from outbound text (#112961)
|
@clawsweeper review |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
|
Codex review: needs maintainer review before merge. Reviewed August 1, 2026, 3:35 PM ET / 19:35 UTC. ClawSweeper reviewWhat this changesThis PR caps each browser Realtime Talk conversation entry at 8,000 UTF-16 code units while preserving an initial transcript prefix, the newest tail, final-transcript merge behavior, and valid Unicode surrogate boundaries. Merge readinessKeep this PR open for ordinary owner review. The current Control UI state owner is source-reproducible as retaining unbounded text within one streamed row, and this branch applies a focused bound at that owner without changing transport, provider, configuration, or SDK contracts; the prior marker-boundary finding is covered by the refreshed implementation and regressions. Because the author is a repository member and the PR carries the protected Priority: P2 Review scores
Verification
How this fits togetherRealtime Talk sends incremental user and assistant transcripts into Control UI conversation state, which is then rendered as Talk bubbles. The changed state owner merges provider-specific transcript updates and now limits the retained text for each individual bubble before the UI renders it. flowchart LR
A[Realtime Talk transcript events] --> B[Conversation state owner]
B --> C[Provider-specific transcript merge]
C --> D[Safe per-entry text bound]
D --> E[Rendered Talk conversation bubbles]
E --> F[Bounded browser session memory]
Before merge
Agent review detailsSecurityNone. PR surfaceSource +32, Tests +131. Total +163 across 2 files. View PR surface stats
Review metricsNone. Merge-risk optionsMaintainer options:
Technical reviewBest possible solution: Retain the bound in the Control UI conversation-state owner, keep the focused merge and Unicode regressions, and land it once the responsible owner accepts the exact head and its normal hosted checks finish. Do we have a high-confidence way to reproduce the issue? Yes, by source: current main concatenates streamed assistant transcript updates into a retained entry while only limiting entry count, not entry text length. The PR body also records focused pre-fix failures, but this read-only review did not execute them locally. Is this the best way to solve the issue? Yes. Bounding text after the existing provider-specific merge at the conversation-state owner constrains the retained object that feeds rendering; a renderer-only truncation would leave the memory-retention defect intact, while transport limits would not cover all merged transcript shapes. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against 7c9794b5c65c. LabelsLabel changes:
Label justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
History |
|
@clawsweeper re-review Addressed the P2 on |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
|
Maintainer landing record for the requested no-squash merge:
The repo-native prepare and merge verification passed. GitHub rejected the native merge only because merge commits are disabled, so this preserves the reviewed signed history without squashing. Merged-tree proof:
|
* commit '9c1371650528331a39a57634b7c136be1b49f5f6': fix(ui): preserve Talk transcript surrogate bounds fix(ui): harden Talk transcript marker bounds test(ui): cover bounded realtime Talk entries fix(ui): bound realtime Talk conversation text
Related: #116201
What Problem This Solves
Fixes an issue where a long browser Realtime Talk turn could retain an indefinitely growing conversation bubble even though the conversation already limits itself to 60 entries.
Why This Change Was Made
The Control UI conversation-state owner now caps each merged user or assistant entry at 8,000 UTF-16 code units. It keeps a small leading context for late authoritative-final replacement detection, retains the newest useful transcript tail, marks the omitted middle, and uses the shared surrogate-safe slicing primitive.
The bound is applied after existing provider-specific merge behavior, so OpenAI-style full finals still replace streamed drafts and Google-style tail finals still append. No transport, provider, config, environment-variable, protocol, or SDK surface changes.
User Impact
Long-running Talk sessions can no longer retain unbounded text in a single rendered conversation row. Recent speech remains visible, final transcripts still settle correctly, and Unicode text is not split into invalid surrogate halves.
Evidence
oxfmt,oxlint, andgit diff --check: passed.No screenshot is included because this is a stress-path memory bound rather than a visual layout change.
AI-assisted implementation; maintainer-reviewed.