Skip to content
Source
Sign inSign up
pingdotgg/t3code

fix(server): a usage-limit auto-resume survives a server restart #31292

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

Showing 4 changed files with 154 additions and 1 deletion (loading 1).

x
0 of 4 viewed, 4 left
9 additions and 0 deletionsapps/server/src/orchestration-v2/Orchestrator.tsModified
View file
@@ -6279,6 +6279,9 @@
...(command.restartContinuationOfRunId === undefined
: { restartContinuationOfRunId: command.restartContinuationOfRunId }),
+ ...(command.usageLimitContinuationOfRunId === undefined
+ ? {}
+ : { usageLimitContinuationOfRunId: command.usageLimitContinuationOfRunId }),
...(continuedTaskId === undefined ? {} : { delegatedTaskId: continuedTaskId }),
...(freshContext ? { freshContext: true } : {}),
@@ -6659,6 +6662,9 @@
...(command.restartContinuationOfRunId === undefined
: { restartContinuationOfRunId: command.restartContinuationOfRunId }),
+ ...(command.usageLimitContinuationOfRunId === undefined
+ ? {}
+ : { usageLimitContinuationOfRunId: command.usageLimitContinuationOfRunId }),
...(dispatchMode.type === "defer_start" && dispatchMode.workspaceStrategy !== undefined
? { workspacePreparation: dispatchMode.workspaceStrategy }
: {}),
@@ -7445,6 +7451,9 @@
...(command.restartContinuationOfRunId === undefined
: { restartContinuationOfRunId: command.restartContinuationOfRunId }),
+ ...(command.usageLimitContinuationOfRunId === undefined
+ ? {}
+ : { usageLimitContinuationOfRunId: command.usageLimitContinuationOfRunId }),
...(continuedTaskId === undefined ? {} : { delegatedTaskId: continuedTaskId }),