-
Notifications
You must be signed in to change notification settings - Fork 844
Open
Description
claude-sdk.js 576
for await (const message of queryInstance) {
...
ws.send({
type: 'claude-response',
data: transformedMessage,
sessionId: capturedSessionId || sessionId || null
});
....
}
If an exception occurs inside the for await (const message of queryInstance) loop—for example, when the WebSocket disconnects (user closes the page right after starting the conversation)—ws.send throws an error and breaks the JSONL write. You're left with only the partial entry {"type":"queue-operation","operation":"dequeue",...}. When the session restarts, the Claude Code SDK generates a new sessionId, so the old and new IDs don't match anymore.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels