Skip to content
Source
Sign inSign up
pingdotgg/t3code

fix: keep older pending questions answerable #26435

Mergedshivamhwp(GitHub profile, opens in a new tab)merged 6 commits intomain fromrefs/pull/26435/headmerged by shivamhwp(GitHub profile, opens in a new tab) View on GitHub

Showing 8 changed files with 220 additions and 0 deletions (loading 7).

x
0 of 8 viewed, 8 left
220 additions and 0 deletionsapps/server/src/orchestration-v2/ProjectionStore.test.tsModified
View file
@@ -1555,6 +1555,226 @@
}).pipe(Effect.provide(layerTest)),
+// regression: #25806 pending request cards outlive the history window that drops their turn
+it.effect("SQL snapshot windows keep cards for requests still pending", () =>
+ Effect.gen(function* () {
+ const store = yield* ProjectionStore.ProjectionStoreV2;
+ const now = yield* DateTime.now;
+ const threadId = ThreadId.make("thread:pending-request-window");
+ yield* store.apply({
+ id: EventId.make("event:pending-request-window:thread"),
+ type: "thread.created",
+ threadId,
+ occurredAt: now,
+ payload: {
+ createdBy: "user",
+ creationSource: "web",
+ id: threadId,
+ projectId: ProjectId.make("project:pending-request-window"),
+ title: "Pending request window",
+ providerInstanceId,
+ modelSelection,
+ runtimeMode: "full-access",
+ interactionMode: "default",
+ branch: null,
+ worktreePath: null,
+ activeProviderThreadId: null,
+ lineage: { parentThreadId: null, relationshipToParent: null, rootThreadId: threadId },
+ forkedFrom: null,