Skip to content
Source
Sign inSign up
pingdotgg/t3code

fix(v2): compact full sessions before provider handoffs #15213

ClosedBil0000(GitHub profile, opens in a new tab)wants to merge 11 commits intomain fromrefs/pull/15213/headopened View on GitHub

Showing 18 changed files with 20 additions and 4 deletions (loading 16).

x
0 of 18 viewed, 18 left
4 additions and 0 deletionsapps/mobile/src/state/use-thread-composer-state.tsModified
View file
@@ -5,6 +5,7 @@
deriveProviderSubagentStatus,
deriveRunlessWorkStartedAt,
deriveThreadActivityRun,
+ deriveThreadIsCompacting,
deriveThreadRuntime,
threadRuntimeHasInterruptibleRun,
} from "@t3tools/client-runtime/state/thread-execution";
@@ -365,6 +366,8 @@
​
const isCompacting = useMemo(() => {
+ if (selectedThreadProjection && deriveThreadIsCompacting(selectedThreadProjection.projection))
+ return true;
const queuedCompact = selectedThreadQueuedMessages.some(
(message) =>
message.messageId === dispatchingQueuedMessageId &&
@@ -392,6 +395,7 @@
dispatchingQueuedMessageId,
selectedThreadQueuedMessages,
selectedThreadRuntime,
+ selectedThreadProjection,
selectedThreadVisibleTurnItems,
]);
​
16 additions and 4 deletionsapps/server/src/orchestration-v2/testkit/ProviderReplayHarness.tsModified
View file