Skip to content

fix(meeting-bot): bound retained node audio lifecycle - #117733

Merged
vincentkoc merged 16 commits into
mainfrom
fix/meeting-node-host-audio-retention-20260801
Aug 2, 2026
Merged

vincentkoc merged 16 commits into
mainfrom
fix/meeting-node-host-audio-retention-20260801

Conversation

@vincentkoc

Copy link
Copy Markdown
Member

Related: #116201

What Problem This Solves

Fixes an issue where Meeting Host capture audio and terminal child-process state could remain retained without a hard byte limit, accept new output work during teardown, or lose final capture audio while stopping.

Why This Change Was Made

The shared meeting node host now owns one bounded terminal lifecycle:

  • retain at most 200 capture chunks and 1 MiB, keeping the newest bytes;
  • fence push, clear, list, and status admission immediately when teardown starts;
  • allow a bounded graceful capture tail before terminal close;
  • terminate input, output, and retired output children with forced fallback;
  • make stop idempotent;
  • evict terminal sessions after a bounded idle window that refreshes as audio is drained.

The configured provider wrapper is extracted only to keep the shared host focused and preserve the already-landed Teams/Zoom prerequisite deadline and deduplicated command-probe behavior.

User Impact

Google Meet, Microsoft Teams, and Zoom meeting talkback no longer retain unbounded capture audio or admit replacement playback after terminal failure. Final audio can still drain, explicit stop remains repeatable, and abandoned terminal sessions release their memory and process ownership.

Evidence

  • 44/44 focused tests passed across:
    • shared Meeting Host audio lifecycle;
    • realtime node audio transport;
    • Google Meet;
    • Microsoft Teams;
    • Zoom.
  • Real OS-process smoke passed on exact head 48941b48f00f736f70c40ebf10ce78772386565d:
    • retained bytes bounded at 1,048,576;
    • graceful terminal tail delivered;
    • forced termination completed;
    • terminal output admission rejected;
    • terminal eviction remained bounded and activity-aware.
  • tsgo:core and tsgo:core:test passed.
  • Targeted oxfmt and oxlint passed.
  • Eight repository guards passed; import cycles remained zero and native state schema remained v6.
  • P1 autoreview and TruffleHog completed with no actionable findings.
  • The final branch contains the landed fix(teams-meetings): stalled setup probes stay within deadline #111455 deadline/probe semantics unchanged.

No changelog entry: this is an internal lifecycle/resource correction with no new operator surface.

AI-assisted: yes. The implementation and proof were reviewed by a maintainer.

@vincentkoc vincentkoc self-assigned this Aug 2, 2026
@openclaw-barnacle openclaw-barnacle Bot added size: XL maintainer Maintainer-authored PR labels Aug 2, 2026
@vincentkoc
vincentkoc marked this pull request as ready for review August 2, 2026 01:37
@clawsweeper

clawsweeper Bot commented Aug 2, 2026

Copy link
Copy Markdown
Contributor

ClawSweeper status: review started.

I am starting a fresh review of this pull request: fix(meeting-bot): bound retained node audio lifecycle This is item 1/1 in the current shard. Shard 0/1.

This placeholder means the worker is alive and reading the current context. I will edit this same comment with the actual review when the claws are done clicking.

Crustacean status: shell secured, claws on keyboard, evidence pebbles being sorted.

@vincentkoc

Copy link
Copy Markdown
Member Author

ClawSweeper exact-head disposition:

  • Workflow openclaw/clawsweeper#30727694255 completed successfully for 9931d8b9aaaea02b6083dbfce73689f4e5497b10.
  • The durable review artifact rates the PR B / 4-of-6 overall and patch quality, with no correctness findings and security cleared.
  • The GitHub review comment remained in placeholder form because publication did not update that comment, so I inspected the durable review-shard-0 artifact directly.
  • Its only rank-up move was to rerun the real OS-process lifecycle smoke on the exact merge head.

Rank-up move applied on the exact PR head:

{"commitSha":"9931d8b9aaaea02b6083dbfce73689f4e5497b10","boundedBytes":1048576,"forcedTermination":true,"gracefulTail":true,"terminalAdmission":true,"terminalEviction":true}

Hosted CI, including openclaw/ci-gate, is green. Repo-native prepare and merge verification both pass. No code change is required from the ClawSweeper review.

@vincentkoc
vincentkoc merged commit b034527 into main Aug 2, 2026
117 checks passed
@vincentkoc
vincentkoc deleted the fix/meeting-node-host-audio-retention-20260801 branch August 2, 2026 02:06
@vincentkoc

Copy link
Copy Markdown
Member Author

Landed on main without squash as signed two-parent merge b0345272ce1a79b71a7a8415b320ecef21d5e4f9.

Parents:

  • live main: 12a8d808738544b08290b56ba11315fcd7ae31eb
  • reviewed PR head: 9931d8b9aaaea02b6083dbfce73689f4e5497b10

Merged-tree verification:

  • expected git merge-tree result matched tree 72552c2dc6bb177509ad721428d72322b8987043;
  • 118 focused shared meeting/Google Meet/Teams/Zoom tests passed;
  • exact merged-head OS-process smoke passed the 1 MiB bound, forced termination, graceful tail, terminal admission fence, and terminal eviction;
  • GitHub reports the merge signature as verified and valid.

github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Aug 2, 2026
* commit '27b4b7bf6fe5184686fa38a3b679920e5d15f618':
  fix(meeting-bot): keep configured host options internal
  docs(changelog): note meeting audio bounds
  fix(meeting-bot): preserve node host SDK surface
  fix(meeting-bot): break node host import cycle
  refactor(meeting-bot): split configured host wrapper
  fix(meeting-bot): fence terminal audio teardown
  fix(meeting-bot): preserve graceful capture flush
  fix(meeting-bot): type optional input drain stream
  fix(meeting-bot): bound terminal audio drain
  refactor(meeting-bot): simplify terminal audio cleanup
  fix(meeting-bot): drain capture stdout before close
  fix(meeting-bot): drain terminal node audio
  fix(meeting-bot): harden node audio teardown
  fix(meeting-bot): bound node host audio retention
  test(meeting-bot): cover node audio retention limits
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

maintainer Maintainer-authored PR size: XL

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant