Skip to content

fix(web): make microphone lifecycle deterministic - #20

Merged
rogerchappel merged 4 commits into
mainfrom
agent/oss-82be01a83e5d-deterministic-microphone-lifecycle
Aug 13, 2026
Merged

fix(web): make microphone lifecycle deterministic#20
rogerchappel merged 4 commits into
mainfrom
agent/oss-82be01a83e5d-deterministic-microphone-lifecycle

Conversation

@rogerchappel

Copy link
Copy Markdown
Owner

Summary

  • share one startup promise across overlapping start() calls and reuse the active session result
  • serialize stop() against startup so all acquired tracks, nodes, timers, and contexts are released
  • cover sequential starts, overlapping starts/stops, and restart-after-stop; document the lifecycle contract

Commits

  • test(web): cover repeated and overlapping starts
  • fix(web): serialize microphone lifecycle transitions
  • test(web): verify restart after complete teardown
  • docs(web): define idempotent lifecycle contract

Verification

  • npm run check
  • npm test (39 tests)
  • npm run typecheck
  • npm run build
  • npm run package:smoke
  • git diff --check origin/main..HEAD

All proposed commits were audited as authored and committed by Roger Chappel miscanalysis@gmail.com.

@rogerchappel
rogerchappel merged commit 8b3f33d into main Aug 13, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant