Skip to content
Source
Sign inSign up
pingdotgg/t3code

fix(server): stop threads without resolving a run #22052

MergedYash-Singh1(GitHub profile, opens in a new tab)merged 1 commit intomain fromrefs/pull/22052/headmerged by Yash-Singh1(GitHub profile, opens in a new tab) View on GitHub

Showing 9 changed files with 4 additions and 3 deletions (loading 6).

x
0 of 9 viewed, 9 left
1 addition and 0 deletionsapps/server/src/environment/ServerEnvironment.tsModified
View file
@@ -255,6 +255,7 @@
pullRequestStackActions: true,
threadPullRequestLinking: true,
serverResolvedCommandContext: true,
+ threadStop: true,
environmentIcon: true,
projectCloneTracking: true,
...(serverSelfUpdate === null ? {} : { serverSelfUpdate }),
2 additions and 3 deletionsapps/server/src/orchestration-v2/Adapters/CodexAdapterV2.test.tsModified
View file
@@ -4993,7 +4993,7 @@
- it.effect("interrupts a completed run's background command through orchestration", () => {
+ it.effect("stops a completed run's background command without a client-supplied run", () => {
const transcript = makeBackgroundStopTranscript(true);
return Effect.scoped(
Effect.gen(function* () {
@@ -5091,10 +5091,9 @@
Effect.forkChild({ startImmediately: true }),
yield* orchestrator.dispatch({
- type: "run.interrupt",
+ type: "thread.stop",
commandId: CommandId.make("stop-background-command"),
threadId,