Skip to content
Source
Sign inSign up
pingdotgg/t3code

fix(server): Claude threads no longer get stuck after background commands #15770

Mergedeimexdev(GitHub profile, opens in a new tab)merged 1 commit intomain fromrefs/pull/15770/headmerged by maria-rcks View on GitHub

Showing 9 changed files with 82 additions and 6 deletions (loading 7).

x
0 of 9 viewed, 9 left
76 additions and 1 deletionapps/server/src/orchestration-v2/Adapters/ClaudeAdapterV2.test.tsModified
View file
@@ -126,6 +126,7 @@
readonly text: string;
readonly attachments: ProviderAdapterV2TurnInput["message"]["attachments"];
readonly providerTurnOrdinal?: number;
+ readonly nativeThreadHasTurns?: boolean;
readonly messageCreatedBy?: ProviderAdapterV2TurnInput["message"]["createdBy"];
readonly messageCreationSource?: ProviderAdapterV2TurnInput["message"]["creationSource"];
readonly modelSelection?: ModelSelection;
@@ -137,6 +138,9 @@
runId: RunId.make(`run-${input.attemptId}`),
runOrdinal: 1,
providerTurnOrdinal: input.providerTurnOrdinal ?? 1,
+ ...(input.nativeThreadHasTurns === undefined
+ ? {}
+ : { nativeThreadHasTurns: input.nativeThreadHasTurns }),
attemptId: input.attemptId,
rootNodeId: NodeId.make(`node-${input.attemptId}`),
providerThread: input.providerThread,
@@ -1783,7 +1787,7 @@
describe("ClaudeAdapterV2 native session identity", () => {
- const openTurnWithOrdinal = (providerTurnOrdinal: number) =>
+ const openTurnWithOrdinal = (providerTurnOrdinal: number, nativeThreadHasTurns?: boolean) =>
Effect.scoped(
Effect.gen(function* () {
const fileSystem = yield* FileSystem.FileSystem;