Skip to content
Source
Sign inSign up
pingdotgg/t3code

fix(server): Claude background-task wakes start when the queue is held #17885

Mergedfireboltdude1357(GitHub profile, opens in a new tab)merged 11 commits intomain fromrefs/pull/17885/headmerged by juliusmarminge View on GitHub

Showing 7 changed files with 64 additions and 8 deletions (loading 4).

x
0 of 7 viewed, 7 left
2 additions and 0 deletionsapps/server/src/orchestration-v2/Adapters/CodexAdapterV2.tsModified
View file
@@ -4824,6 +4824,8 @@
threadId: context.projectionThreadId,
providerThreadId: context.providerThread.id,
driver: CODEX_PROVIDER,
+ // Codex starts a new turn from this text, so nothing is buffered.
+ delivery: "message_text",
detail: codexBackgroundCommandDetail(payload.item),
notification: {
...backgroundWorkNotification([
46 additions and 0 deletionsapps/server/src/orchestration-v2/BackgroundWorkStop.integration.test.tsModified
View file
@@ -35,6 +35,7 @@
const modelSelection = { instanceId, model: "test-model" };
​
const stopEarlierBackgroundWork = ({
+ wakeAfterStop = false,
failedStart = false,
stopWithQueue,
olderStart = false,
@@ -42,6 +43,7 @@
stalledRun,
workflowMember = false,
}: {
+ readonly wakeAfterStop?: boolean;
readonly failedStart?: boolean;
readonly backgroundWorkAfterStop?: "running" | "unknown";
readonly stopWithQueue?: "thread.stop" | "run.interrupt";