Skip to content
Source
Sign inSign up
pingdotgg/t3code

fix: isolate assistant projection identities per thread #882

Closedbinbandit(GitHub profile, opens in a new tab)wants to merge 3 commits intomain fromrefs/pull/882/headopened View on GitHub

Showing 12 changed files with 11 additions and 13 deletions (loading 11).

x
0 of 12 viewed, 12 left
11 additions and 13 deletionsapps/server/src/orchestration/Layers/CheckpointReactor.tsModified
View file
@@ -2,6 +2,7 @@
CommandId,
EventId,
MessageId,
+ type OrchestrationThread,
type ProjectId,
ThreadId,
TurnId,
@@ -19,6 +20,7 @@
import { clearWorkspaceIndexCache } from "../../workspaceEntries.ts";
import { CheckpointStore } from "../../checkpointing/Services/CheckpointStore.ts";
import { ProviderService } from "../../provider/Services/ProviderService.ts";
+import { resolveCheckpointAssistantMessageId } from "../assistantMessageIdentity.ts";
import { CheckpointReactor, type CheckpointReactorShape } from "../Services/CheckpointReactor.ts";
import { OrchestrationEngineService } from "../Services/OrchestrationEngine.ts";
import { RuntimeReceiptBus } from "../Services/RuntimeReceiptBus.ts";
@@ -190,13 +192,7 @@
const captureAndDispatchCheckpoint = Effect.fnUntraced(function* (input: {
readonly threadId: ThreadId;
readonly turnId: TurnId;
- readonly thread: {
- readonly messages: ReadonlyArray<{
- readonly id: MessageId;
- readonly role: string;
- readonly turnId: TurnId | null;
- }>;
- };
+ readonly thread: Pick<OrchestrationThread, "messages" | "latestTurn" | "checkpoints">;