Skip to content
Source
Sign inSign up
pingdotgg/t3code

fix(settlement): agent/CLI sends reopen settled threads #33995

Mergedjohnatfreecoffee(GitHub profile, opens in a new tab)merged 3 commits intomain fromrefs/pull/33995/headmerged by juliusmarminge View on GitHub

Showing 5 changed files with 27 additions and 20 deletions (loading 2).

x
0 of 5 viewed, 5 left
6 additions and 7 deletionsapps/server/src/orchestration-v2/ProjectionSettlement.test.tsModified
View file
@@ -349,7 +349,7 @@
...settings,
thread: {
...expected,
- latestUserAuthoredMessageAt: candidate.latestUserAuthoredMessageAt,
+ latestResumingMessageAt: candidate.latestResumingMessageAt,
}),
@@ -365,7 +365,7 @@
}).pipe(Effect.provide(layerSql)),
​
-it.effect("sql: the user-authored message time ignores agent notifications", () =>
+it.effect("sql: the resuming message time counts MCP sends and ignores agent notifications", () =>
Effect.gen(function* () {
const store = yield* ProjectionStore.ProjectionStoreV2;
const threadId = yield* createThread("agent-woken");
@@ -373,7 +373,7 @@
const message = (
id: string,
createdBy: "user" | "agent",
- creationSource: "web" | "provider",
+ creationSource: "web" | "mcp" | "provider",
at: DateTime.Utc,
) =>
store.apply({