Skip to content
Source
Sign inSign up
pingdotgg/t3code

perf(client): load older thread history on demand #21476

Closedjuliusmarmingewants to merge 6 commits intotakeover/terminal-preview-24/viewport-server fromtakeover/terminal-preview-24/viewport-clientopened View on GitHub

Showing 18 changed files with 119 additions and 25 deletions (loading 16).

x
0 of 18 viewed, 18 left
1 addition and 1 deletionapps/mobile/src/features/review/reviewModel.tsModified
View file
@@ -99,7 +99,7 @@
​
function checkpointSubtitle(checkpoint: ThreadCheckpointSummary): string {
- const fileCount = checkpoint.files.length;
+ const fileCount = checkpoint.deferredFileCount ?? checkpoint.files.length;
if (checkpoint.status !== "ready") {
return `Diff ${checkpoint.status}`;
118 additions and 24 deletionsapps/web/src/components/chat/ChatComposer.tsxModified
View file
@@ -1078,7 +1078,10 @@
} from "../../types";
import {
buildComposerPromptHistoryEntries,
+ loadEarlierComposerPromptHistory,
stepComposerPromptHistory,
+ type ComposerPromptHistoryMessage,
+ type ComposerPromptHistoryStep,
type ComposerPromptHistoryPosition,
} from "./composerPromptHistory";
import type { PendingUserInputDraftAnswer } from "../../pendingUserInput";
@@ -1508,6 +1511,13 @@
activeThread: Thread | undefined;
activeThreadShell: ThreadShell | null;
promptHistoryMessages: ReadonlyArray<ChatMessage>;
+ getPromptHistory?: