Skip to content
Source
Sign inSign up
pingdotgg/t3code

fix(server): environment-hosted browser tabs behave like a normal browser #16963

Mergedjuliusmarmingemerged 23 commits intomain fromrefs/pull/16963/headmerged by juliusmarminge View on GitHub

Showing 29 changed files with 31 additions and 1 deletion (loading 26).

x
0 of 29 viewed, 29 left
5 additions and 0 deletionsapps/server/src/orchestration-v2/EffectOutbox.tsModified
View file
@@ -95,6 +95,10 @@
Schema.Struct({
type: Schema.Literal("terminal.cleanup"),
}),
+ /** Closes a deleted thread's preview sessions, ending their server browser tabs. */
+ Schema.Struct({
+ type: Schema.Literal("preview.cleanup"),
+ }),
Schema.Struct({
type: Schema.Literal("attachment.cleanup"),
attachmentIds: Schema.Array(Schema.String),
@@ -120,6 +124,7 @@
"provider-thread.rollback",
"checkpoint.capture",
"terminal.cleanup",
+ "preview.cleanup",
"attachment.cleanup",
"thread-title.generate",
"delegated-tasks.stop",
11 additions and 0 deletionsapps/server/src/orchestration-v2/EffectWorker.tsModified
View file
@@ -439,6 +439,17 @@
}),
+ case "preview.cleanup":
+ return resourceCleanup.cleanupPreviews(effect.threadId).pipe(