fix(tui): restore classic CLI voice push-to-talk parity

This commit is contained in:
Montbra 2026-04-26 16:05:59 -03:00
parent 0e2a53eab2
commit 93b9ae301b
3 changed files with 82 additions and 33 deletions

View file

@ -155,7 +155,7 @@ export function useInputHandlers(ctx: InputHandlerContext): InputHandlerResult {
voice.setProcessing(false)
}
gateway.rpc<VoiceRecordResponse>('voice.record', { action }).catch((e: Error) => {
gateway.rpc<VoiceRecordResponse>('voice.record', { action, session_id: getUiState().sid }).catch((e: Error) => {
// Revert optimistic UI on failure.
if (starting) {
voice.setRecording(false)