feat(FN-3843): add chat stream reattach support

Adds the changeset for FN-3843, completing the chat stream reattach feature for the `@runfusion/fusion` CLI package.

Fusion-Task-Id: FN-3843
This commit is contained in:
Fusion
2026-05-09 10:40:55 -07:00
committed by gsxdsm
parent a04fefd234
commit 80f65de994
11 changed files with 684 additions and 88 deletions

View File

@@ -1225,6 +1225,13 @@ export class ChatManager {
return this.activeGenerations.has(sessionId);
}
/**
* Return the active generation ID for a session, if any.
*/
getActiveGenerationId(sessionId: string): number | undefined {
return this.activeGenerations.get(sessionId)?.generationId;
}
/**
* Return all session IDs that currently have an active generation.
* Useful for batch-enriching session lists without N+1 lookups.