Repository navigation
Conversation
|
Codex review: needs maintainer review before merge. Reviewed August 23, 2026, 4:25 PM ET / 20:25 UTC. ClawSweeper reviewWhat this changesThe PR replaces per-chunk local meeting-audio stderr logging with streaming UTF-8 decoding, bounded diagnostics, and final-stream flushing for playback, capture, and barge-in processes. Merge readinessKeep open: current main still logs each stderr chunk with direct string conversion, while this PR centralizes streaming decoding across all local-audio process paths. The exact-head real subprocess evidence now addresses the prior proof gap; no blocking functional finding was identified. Priority: P2 Review scores
Verification
Live VerificationCommand: Result: PASS (completed) Assertions:
How this fits togetherThe meeting bot starts local child processes to capture, play, and monitor audio for realtime calls. Their stderr output is routed into operator diagnostics while the audio streams continue into the meeting runtime. flowchart LR
A[Local audio commands] --> B[Child process streams]
B --> C[Meeting audio transport]
C --> D[UTF-8 diagnostic decoder]
D --> E[Bounded debug records]
C --> F[Realtime meeting engine]
Before merge
Agent review detailsSecurityNone. PR surfaceSource +43, Tests +47. Total +90 across 2 files. View PR surface stats
Review metrics
Merge-risk optionsMaintainer options:
Technical reviewBest possible solution: Land the shared transport-boundary helper after ordinary exact-head merge gates; keep decoding and finalization in the existing process decoder rather than duplicating lifecycle logic. Do we have a high-confidence way to reproduce the issue? Yes, source-reproducible: current main independently stringifies each stderr chunk, and split UTF-8 bytes therefore reach separate conversions. This read-only review did not execute the repro, but the PR supplies exact-head real subprocess output for the same lifecycle ordering. Is this the best way to solve the issue? Yes. Reusing the existing streaming decoder at the shared meeting-audio transport boundary fixes all three stderr consumers without changing commands, delivery, configuration, or process policy. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against eb0118b417c4. LabelsLabel changes:
Label justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
HistoryReview history (13 earlier review cycles; latest 8 shown)
|
Real subprocess behavior proofThe same deliberately split stderr input was exercised through the production local meeting-audio boundary:
This is a rendered comparison of the captured production-boundary logs. A live Meet/Teams UI call is not involved in this stderr decoding/framing seam. |
45a585b to
eca28c1
Compare
|
@clawsweeper re-review |
|
🦞🧹 I asked ClawSweeper to review this item again. |
9bfb6d3 to
f406aa2
Compare
|
@clawsweeper re-review |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
f406aa2 to
ea105f2
Compare
|
Merged via squash.
|
…openclaw#110703) * fix(meeting-bot): preserve split UTF-8 diagnostics * fix(meeting-bot): stream decoded stderr diagnostics * test(meeting-bot): type diagnostics monitor callback
Additional instructions
MUST: Keep Allow edits from maintainers enabled for this PR so maintainers
can help update the branch when needed.
What Problem This Solves
Fixes an issue where local meeting-audio diagnostics could be corrupted or
truncated when UTF-8 characters, line endings, or final stderr bytes are split
across process-stream chunks. In particular, stderr can still deliver its last
bytes after the child emits
exitand before the stream closes.Why This Change Was Made
Real Node stderr streams in the meeting-audio transport now reuse the existing
onDecodedOutputstreaming decoder. The transport emits UTF-8-completefragments as they arrive, flushes the final stream tail on
end/close, andkeeps diagnostic records bounded to 8 KiB with UTF-8-safe truncation. Injected
adapters that do not promise stream completion retain their prior per-chunk
behavior, so diagnostics delivered after child
exitremain visible withoutguessing an end-of-stream boundary.
User Impact
Meeting operators receive complete, readable bounded local-audio error lines,
including multibyte text, late stderr bytes, and final partial lines emitted as
the child exits.
Evidence
32662687100completed for exact head
3a00d8cdf108b6e3aa20587840f502c1c9d8c49dwith nofailed or pending checks.
src/meeting-bot/realtime-local-audio-transport.test.tscovers the twoexisting backpressure/replacement regressions plus split UTF-8 diagnostics
through playback, capture, and barge-in receivers (3 tests on the current
head). The focused file passed in hosted CI.
git diff --checkpassedbefore the submitted commit.
Exact-head real-behavior proof
The following proof was run against the production boundary
child_process.spawn → createLocalMeetingRealtimeAudioTransport → logger.debugat exact head
3a00d8cdf108b6e3aa20587840f502c1c9d8c49d. The harness used realchild processes and only wrapped
spawnto record timestamps. Each child wrotethe first byte of a multibyte UTF-8 character, spawned a helper inheriting the
same stderr descriptor to write the remaining bytes later, then exited. This
therefore exercises child
exitbefore the late stderr bytes and streamcompletion; no production handler was bypassed.
Redacted output (timestamps are milliseconds from harness start):
endclose6c6174652de5(late-+ first byte of尾)b0bee8a18c0a(尾行\nremainder)6c6174652de5(late-+ first byte of尾)b0bee8a18c0a(尾行\nremainder)Observed production logger records, in order for both receivers:
Assertions from the run were all true:
childExitBeforeLateStderr=true,endAfterLateStderr=true,closeAfterOrWithEnd=true, andreplacementCharacters=0. The same decoder path therefore preserves thesplit UTF-8 tail after
exitand retains it through streamend/close.Production delta rationale
The net +43 production lines are one bounded stderr helper plus two constants,
replacing three duplicate per-chunk handlers. The helper is the owner boundary
for the existing streaming decoder and UTF-8-safe diagnostic bound; it adds no
new public API, process command, retry, delivery, or fallback policy. The
exact-head proof above confirms the lifecycle behavior that motivated the
helper.
Root Cause and Risk
The root cause is lifecycle ordering: a child can emit
exitbefore stderr hasdelivered and closed its final bytes, while converting each chunk with
String(chunk)can split a UTF-8 sequence. The canonical fix is streamingdecoding at the meeting-audio transport boundary, with bounded UTF-8-safe
diagnostics and stream-owned finalization. This change does not modify process
commands, delivery, automation, session state, or retry behavior; it only makes
existing stderr diagnostics complete and readable. The two-file scope follows
the shared owner plus its focused regression coverage.
Current head validation
3a00d8cdf108b6e3aa20587840f502c1c9d8c49d.origin/main:df7e6f1c44da23513fe41cf693f0a12da5be2405; the current head isbased directly on that merge base, with no touched-path conflict.