Skip to content
Source
Sign inSign up
pingdotgg/t3code

fix(server): steers on Claude threads no longer cancel running tool calls #35088

Closedjuliusmarmingewants to merge 3 commits intomain fromrefs/pull/35088/headopened View on GitHub

Showing 4 changed files with 115 additions and 8 deletions (loading 1).

x
0 of 4 viewed, 4 left
96 additions and 5 deletionsapps/server/src/orchestration-v2/Adapters/ClaudeAdapterV2.test.tsModified
View file
@@ -2477,7 +2477,7 @@
- assert.equal(offeredMessages[1]?.priority, "now");
+ assert.equal(offeredMessages[1]?.priority, "next");
assert.deepEqual(offeredMessages[1]?.message.content, expectedContent);
const documentPath = path.join(attachmentsDir, attachmentRelativePath(document)!);
for (const scenario of [
@@ -5093,7 +5093,7 @@
const attachmentNote = `\n\n[Attached file "requirements.pdf" is saved at: ${path.join(harness.attachmentsDir, attachmentRelativePath(attachment)!)}]`;
- assert.equal(harness.offeredMessages[1]?.priority, "now");
+ assert.equal(harness.offeredMessages[1]?.priority, "next");
assert.deepEqual(harness.offeredMessages[1]?.message.content, [
{ type: "text", text: `${leadingText}${attachmentNote}` },
{ type: "text", text: `/implement the fixes${attachmentNote}` },
@@ -5110,6 +5110,57 @@
+ it.effect("steering does not hand Claude an input that cancels the running tool calls", () =>
+ Effect.gen(function* () {
+ const harness = yield* makeWakeHarness;
+ const input = makeClaudeTestTurnInput({
+ threadId: harness.threadId,
+ providerThread: harness.providerThread,