agentgui 1.0.948 → 1.0.950

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -268,7 +268,11 @@ export async function* streamChat(base, { model, messages, signal, agentId, resu
268
268
  const finish = () => { done = true; if (resolveWait) { resolveWait(); resolveWait = null; } };
269
269
 
270
270
  const unsub = addSessionListener(sessionId, (ev) => {
271
- if (ev.type === 'streaming_progress') {
271
+ if (ev.type === 'streaming_session') {
272
+ // claude's real session id - surface it so the host can --resume this
273
+ // conversation on the next turn (multi-turn continuity).
274
+ if (ev.claudeSessionId) push({ type: 'session', sessionId: ev.claudeSessionId });
275
+ } else if (ev.type === 'streaming_progress') {
272
276
  const block = ev.block;
273
277
  if (block?.type === 'text' && block.text) push({ type: 'text', text: block.text });
274
278
  else if (block?.type === 'tool_use') push({ type: 'tool', block });