After handleSubmitResponse posted an answer, the stream connection was never re-established, so the next question from the server was never received. The modal would stay on the loading spinner until the user closed and reopened it (which triggered the resume-session reconnect). Fix: call connectToMissionInterviewStream(sessionId) before the API call, matching the pattern used by handleRetryFromError. Also close the stream on API error to match the error-recovery path, and add connectToMissionInterviewStream to the useCallback dependency array. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
53 KiB
53 KiB