Skip to content
Source
Sign inSign up
pingdotgg/t3code

fix(threads): snoozed threads no longer wake early after background updates #16517

MergedRakshithBhat03(GitHub profile, opens in a new tab)merged 7 commits intomain fromrefs/pull/16517/headmerged by juliusmarminge View on GitHub

Showing 4 changed files with 155 additions and 8 deletions (loading 1).

x
0 of 4 viewed, 4 left
118 additions and 0 deletionsapps/server/src/orchestration-v2/ProjectionStore.test.tsModified
View file
@@ -658,6 +658,124 @@
restartCancelledWorkSurvivesStaleRunUpdate.pipe(Effect.provide(ProjectionStore.layerMemory)),
​
+const backgroundThreadUpdatesKeepTimestamp = Effect.gen(function* () {
+ const store = yield* ProjectionStore.ProjectionStoreV2;
+ const createdAt = DateTime.makeUnsafe("2026-10-06T14:00:00.000Z");
+ const threadId = ThreadId.make("thread:background-updates");
+ const thread = {
+ createdBy: "user" as const,
+ creationSource: "web" as const,
+ id: threadId,
+ projectId: ProjectId.make("project:background-updates"),
+ title: "Background updates",
+ providerInstanceId,
+ modelSelection,
+ runtimeMode: "full-access" as const,
+ interactionMode: "default" as const,
+ branch: null,
+ worktreePath: null,
+ activeProviderThreadId: null,
+ lineage: { parentThreadId: null, relationshipToParent: null, rootThreadId: threadId },
+ forkedFrom: null,
+ createdAt,
+ updatedAt: createdAt,
+ archivedAt: null,
+ settledOverride: null,
+ settledAt: null,
+ lastVisitedAt: null,
+ deletedAt: null,