feat: play sound for pending tool requests

Reuse the existing notification tone when a chat run pauses for actionable
tool approval.

Track pending permission state inside the realtime handler so the sound plays
when approval first becomes pending, including subscribe recovery, without
replaying for inline plan prompts or duplicate websocket events.
This commit is contained in:
Haileyesus
2026-06-23 14:06:55 +03:00
parent f6326c8082
commit 63a4869325
4 changed files with 58 additions and 10 deletions

View File

@@ -239,6 +239,7 @@ function ChatInterface({
selectedSession,
currentSessionId,
setTokenBudget,
pendingPermissionRequests,
setPendingPermissionRequests,
streamTimerRef,
accumulatedStreamRef,