Skip to content
Source
Sign inSign up
pingdotgg/t3code

fix(server): delegated tasks finish even when the child leaves a watcher running #27468

MergedByntham(GitHub profile, opens in a new tab)merged 2 commits intomain fromrefs/pull/27468/headmerged by maria-rcks View on GitHub

Showing 4 changed files with 28 additions and 14 deletions (loading 1).

x
0 of 4 viewed, 4 left
6 additions and 3 deletionsapps/server/src/orchestration-v2/DelegatedCompletionDelivery.test.tsModified
View file
@@ -3193,9 +3193,12 @@
occurredAt: now,
payload: {
...providerThread,
- pendingBackgroundTasks: open
- ? [{ taskId: "sleep-900", kind: "command" as const }]
- : [],
+ pendingBackgroundTasks: [
+ ...(open
+ ? [{ taskId: "sleep-900", kind: "command" as const, awaited: true as const }]
+ : []),
+ { taskId: "log-watcher", kind: "monitor" as const },
+ ],
3 additions and 2 deletionsapps/server/src/orchestration-v2/Orchestrator.tsModified
View file
@@ -75,6 +75,7 @@
import { modelSelectionsEqual } from "@t3tools/shared/model";
import { recordThreadOpen } from "@t3tools/shared/paletteSearch";
import {
+ backgroundWorkHoldsCompletion,
derivePendingBackgroundWork,
pendingBackgroundTurnItems,
} from "@t3tools/shared/orchestrationV2PendingBackgroundWork";
@@ -13604,14 +13605,14 @@