Skip to content
Source
Sign inSign up
pingdotgg/t3code

fix(server): propagate parent lifecycle to subagent descendants #20072

ClosedQuicksaver(GitHub profile, opens in a new tab)wants to merge 8 commits intomain fromrefs/pull/20072/headopened View on GitHub

Showing 12 changed files with 149 additions and 1 deletion (loading 9).

x
0 of 12 viewed, 12 left
83 additions and 1 deletionapps/server/src/orchestration-v2/CommandReceiptStore.tsModified
View file
@@ -1,4 +1,10 @@
-import { CommandId, NonNegativeInt, ProjectId, ThreadId } from "@t3tools/contracts";
+import {
+ type OrchestrationV2AppThread,
+ CommandId,
+ NonNegativeInt,
+ ProjectId,
+ ThreadId,
+} from "@t3tools/contracts";
import * as Context from "effect/Context";
import * as DateTime from "effect/DateTime";
import * as Effect from "effect/Effect";
@@ -31,9 +37,19 @@
​
+class CommandReceiptStoreLifecycleReadError extends Schema.TaggedError<CommandReceiptStoreLifecycleReadError>()(
+ "CommandReceiptStoreLifecycleReadError",
+ { threadId: ThreadId, cause: Schema.Defect() },
+) {
+ override get message(): string {
+ return `Failed to read orchestration V2 lifecycle receipt for thread ${this.threadId}.`;
+ }
+}
+​
export const CommandReceiptStoreV2Error = Schema.Union([
CommandReceiptStoreWriteError,
CommandReceiptStoreReadError,
+ CommandReceiptStoreLifecycleReadError,
]);