mirror of
https://github.com/chriswritescode-dev/opencode-manager.git
synced 2026-12-05 12:24:30 +01:00
Pause cleanly at the transcription failure limit, forget resent text once delivered, and keep the composer opaque while a form is open
This commit is contained in:
1 parent
1ae24ace07
commit
efcb9dee28
2 files changed
+3
-2
No files matched your search
@@ -410,6 +410,7 @@ export function useVoiceConversation(
|
||||
const current = sttRef.current
|
||||
if (current && (current.isRecording || current.isProcessing)) current.abortRecording()
|
||||
if (transcriptionFailureCountRef.current >= TRANSCRIPTION_FAILURE_LIMIT) {
|
||||
phaseRef.current = 'paused'
|
||||
dispatch({ type: 'error', message, source: 'transcription' })
|
||||
return
|
||||
}
|
||||
@@ -878,8 +879,8 @@ export function useVoiceConversation(
|
||||
endTurnInFlightRef.current = false
|
||||
}
|
||||
}
|
||||
if (turnGenerationRef.current !== generation) return
|
||||
failedTurnTextRef.current = null
|
||||
if (turnGenerationRef.current !== generation) return
|
||||
dispatch({ type: 'turn-sent', baselineId })
|
||||
}, [])
|
||||
|
||||
|
||||
@@ -969,7 +969,7 @@ export function SessionDetail() {
|
||||
onAskSideQuestion={() => handleAskSideQuestion('')}
|
||||
/>
|
||||
)}
|
||||
<div className={cn(isFormSheetOpen && "shrink-0 bg-background px-[3%]")}>
|
||||
<div className={cn(isFormOpen && "bg-background", isFormSheetOpen && "shrink-0 px-[3%]")}>
|
||||
<div className={cn(!isFormSheetOpen && "px-[3%] md:px-0")}>
|
||||
<SessionSendErrorBanner sessionId={sessionId} isConnected={streamConnected} isReconnecting={streamReconnecting} />
|
||||
<SessionGoalBar sessionID={sessionId} directory={resolvedDirectory} />
|
||||
|
||||
Reference in new issue
Block a user