Skip to content
Source
Sign inSign up
pingdotgg/t3code

fix(server): deleting a thread closes its preview sessions #14985

ClosedMnigos(GitHub profile, opens in a new tab)wants to merge 6 commits intomain fromrefs/pull/14985/headopened View on GitHub

Showing 14 changed files with 111 additions and 0 deletions (loading 11).

x
0 of 14 viewed, 14 left
4 additions and 0 deletionsapps/server/src/orchestration-v2/EffectOutbox.tsModified
View file
@@ -95,6 +95,9 @@
Schema.Struct({
type: Schema.Literal("terminal.cleanup"),
}),
+ Schema.Struct({
+ type: Schema.Literal("preview.cleanup"),
+ }),
Schema.Struct({
type: Schema.Literal("attachment.cleanup"),
attachmentIds: Schema.Array(Schema.String),
@@ -120,6 +123,7 @@
"provider-thread.rollback",
"checkpoint.capture",
"terminal.cleanup",
+ "preview.cleanup",
"attachment.cleanup",
"thread-title.generate",
"delegated-tasks.stop",
105 additions and 0 deletionsapps/server/src/orchestration-v2/EffectWorker.test.tsModified
View file
@@ -1,6 +1,9 @@
+import * as NodeCrypto from "@effect/platform-node/NodeCrypto";
+import * as NodeServices from "@effect/platform-node/NodeServices";
import { assert, it } from "@effect/vitest";
import {
CommandId,
+ PreviewSessionLookupError,
ProviderSessionId,