The best way to control Claude Code, Codex and more from any computer or phone
fix(server): a Claude tool call interrupted by a new message shows as stopped, not failed (#34183)
Dara Adedeji committed
Nov 11, 2026 at 18:19 UTC
b43a1b4b93b023586e4519c5f67e16b8b141f845
2 files changed
+7
-4
apps/server/src/orchestration-v2/Adapters/ClaudeAdapterV2.test.ts
+5
-2
@@ -6667,7 +6667,7 @@ describe("ClaudeAdapterV2 background wake turns", () => {
6667
);
6668
6669
// regression: #15892 non-execution metadata is carried through, not guessed from result text
6670
- it.effect.each(["cancelled", "denied", "permission_denied", undefined])(
6670
+ it.effect.each(["cancelled", "interrupted", "denied", "permission_denied", undefined])(
6671
"preserves native tool non-execution metadata %s without inferring a denial from text",
6672
(kind) =>
6673
Effect.scoped(
@@ -6722,7 +6722,10 @@ describe("ClaudeAdapterV2 background wake turns", () => {
6722
: [],
6723
);
6724
const failed = items.findLast((item) => item.nativeItemRef?.nativeId === "tool-error")!;
6725
- assert.equal(failed.status, kind === "cancelled" ? "cancelled" : "failed");
6725
+ assert.equal(
6726
+ failed.status,
6727
+ kind === "cancelled" || kind === "interrupted" ? kind : "failed",
6728
+ );
6729
assert.equal(failed.toolNonExecutionKind, kind);
6730
const ok = items.findLast((item) => item.nativeItemRef?.nativeId === "tool-ok")!;
6731
assert.equal(ok.status, "completed");
apps/server/src/orchestration-v2/Adapters/ClaudeAdapterV2.ts
+2
-2
@@ -7739,8 +7739,8 @@ export const makeClaudeAdapterV2 = Effect.fn("makeClaudeAdapterV2")(function* (
7739
ordinal: toolCall.ordinal,
7740
output: input.output,
7741
status:
7742
- toolNonExecutionKind === "cancelled"
7743
- ? "cancelled"
7742
+ toolNonExecutionKind === "cancelled" || toolNonExecutionKind === "interrupted"
7743
+ ? toolNonExecutionKind
7744
: isClaudeToolResultError(input.toolResult)
7745
? "failed"
7746
: "completed",