fix(voice): correct input accounting and session termination

Separate detected speech limits from continuous microphone silence while preserving transport bounds and absolute commit fencing.

Handle verified OpenAI cancellation races and terminal items, preserve causal close outcomes, and share bounded cleanup ownership with safe diagnostics.

Add regression coverage and align the API contract and frontend handoff. Validation: 61 focused unit tests passed; staged diff whitespace checks passed. Live browser acceptance remains outstanding.
This commit is contained in:
amirhosein mazaheri
2026-10-10 17:41:11 +03:30
parent b06eaf59f4
commit a769196bfa
23 changed files with 1809 additions and 92 deletions
+2 -1
View File
@@ -87,7 +87,8 @@ def test_native_tool_correlation_canonical_result_and_once_only_continuation(set
asyncio.run(scenario())
@pytest.mark.parametrize('message', [ConnectionError('remote-private-detail'), 'x'*262145,
{'serverContent':{'interrupted':True}}, {'goAway':{'timeLeft':'1s'}}])
{'serverContent':{'interrupted':True}}, {'goAway':{'timeLeft':'1s'}}],
ids=['provider_loss', 'oversized_frame', 'unexpected_interruption', 'goaway'])
def test_provider_loss_and_limits_wake_runtime_and_close_once(runner,persisted,message):
async def scenario():
runtime,adapter,wire,out,receive=await make(SimpleNamespace(engine=None),runner,persisted)