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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user