diff --git a/packages/ui/desktop/src/app.ts b/packages/ui/desktop/src/app.ts index 33dacb2926..fc855d951f 100644 --- a/packages/ui/desktop/src/app.ts +++ b/packages/ui/desktop/src/app.ts @@ -69,6 +69,8 @@ interface SessionUpdatePayload { /** One in-flight turn rendered incrementally while ACP updates stream in. */ interface LiveTurn { + /** Distinguishes turns so a new prompt never reuses the previous turn's DOM skeleton. */ + key: number userText?: string thinking: string answer: string @@ -154,6 +156,9 @@ const state = { graph: buildTraceGraph('', []), expandedActivityIds: new Set(), traceLoadRevision: 0, + liveTurnCounter: 0, + traceCatchupTimer: undefined as number | undefined, + traceCatchupAttempts: 0, } function t(key: I18nKey): string { @@ -212,8 +217,8 @@ function buildShell(): void {