chat: carry claude's own session uuid on the result event
The sidecar knew which transcript file a turn had landed in and kept it to itself — setClaudeSession fed --resume and nothing else. A session officer started was therefore unaddressable from the platform side. Put it on the result event so it crosses the wire. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
This commit is contained in:
@@ -67,7 +67,13 @@ export function createTurnStream(sessionId: string): TurnStream {
|
||||
];
|
||||
|
||||
case 'result':
|
||||
return [...flush(), { msg: { type: 'result', sessionId, cost: event.cost }, durable: true }];
|
||||
return [
|
||||
...flush(),
|
||||
{
|
||||
msg: { type: 'result', sessionId, cost: event.cost, claudeSessionId: event.claudeSessionId },
|
||||
durable: true,
|
||||
},
|
||||
];
|
||||
|
||||
case 'error':
|
||||
return [{ msg: { type: 'error', message: event.message }, durable: true }];
|
||||
|
||||
Reference in New Issue
Block a user