Skip to content
Source
Sign inSign up
pingdotgg/t3code

perf(server): window large thread snapshots #21475

Closedjuliusmarmingewants to merge 9 commits intomain fromtakeover/terminal-preview-24/viewport-serveropened View on GitHub

Showing 12 changed files with 197 additions and 3 deletions (loading 10).

x
0 of 12 viewed, 12 left
3 additions and 2 deletionsapps/server/src/orchestration-v2/Orchestrator.tsModified
View file
@@ -323,6 +323,7 @@
cursor: string,
throughEntryId?: string,
conversationOnly?: boolean,
+ includeSupport?: boolean,
) => Effect.Effect<OrchestrationV2ThreadHistoryPage, OrchestratorV2Error>;
readonly getTimelinePage: (
threadId: ThreadId,
@@ -11595,9 +11596,9 @@
(cause) => new OrchestratorProjectionError({ threadId: input.threadId, cause }),
- getThreadHistoryPage: (threadId, cursor, throughEntryId, conversationOnly) =>
+ getThreadHistoryPage: (threadId, cursor, throughEntryId, conversationOnly, includeSupport) =>
projectionStore
- .getThreadHistoryPage(threadId, cursor, throughEntryId, conversationOnly)
+ .getThreadHistoryPage(threadId, cursor, throughEntryId, conversationOnly, includeSupport)
.pipe(Effect.mapError((cause) => new OrchestratorProjectionError({ threadId, cause }))),
getTimelinePage: (threadId, options) =>
projectionStore
194 additions and 1 deletionapps/server/src/orchestration-v2/ProjectionStore.test.tsModified
View file
@@ -41,6 +41,7 @@
decodeThreadHistoryCursor,
selectHistoryPageFromCursor,
THREAD_HISTORY_PAGE_POLICY,
+ THREAD_HISTORY_MAX_RAW_TURNS,