diff options
Diffstat (limited to 'src/features')
| -rw-r--r-- | src/features/chat/store.svelte.ts | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/features/chat/store.svelte.ts b/src/features/chat/store.svelte.ts index 9beabfc..f6c23fc 100644 --- a/src/features/chat/store.svelte.ts +++ b/src/features/chat/store.svelte.ts @@ -284,6 +284,11 @@ export function createChatStore(deps: ChatStoreDependencies): ChatStore { if (transcript.sealedTurnId !== null) { void syncTail(); void syncMetrics(); + } else if (msg.event.type === "step-complete") { + // CR-6: backend persists chunks at step boundaries. Fetch them + // as committed so trimTranscript can unload oldest chunks + // uniformly — no unbounded provisional growth during long turns. + void syncTail(); } }, |
