8 months ago
75d6fc0Previously, dismissing the ask dialog (via Escape, clicking outside, or Cancel button) only cleared the UI state without sending an ask_response to the server. This left the server-side deferred promise unresolved, causing the agent's askUser() call to hang forever. Changes: - PromptModal: prevent click-outside from closing ask modals; Escape and Skip button now send "[skipped]" response so the agent unblocks - App.tsx: Escape key handler sends a response for ask modals instead of bare dismissal - store.actions: answerAsk checks sendThread return value and keeps the modal open if the WebSocket send fails Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Parente0dccd4