Skip to content
Source
Sign inSign up
pingdotgg/t3code

fix(server): Stop ends a Claude turn even when the CLI rejects the interrupt #16439

Closedyaacovcorcos(GitHub profile, opens in a new tab)wants to merge 2 commits intomain fromrefs/pull/16439/headopened View on GitHub

Showing 2 changed files with 190 additions and 2 deletions.

x
0 of 2 viewed, 2 left
177 additions and 1 deletionapps/server/src/orchestration-v2/Adapters/ClaudeAdapterV2.test.tsModified
View file
@@ -43,6 +43,7 @@
import * as Schema from "effect/Schema";
import * as Scope from "effect/Scope";
import * as Stream from "effect/Stream";
+import * as TestClock from "effect/testing/TestClock";
import { Tool } from "effect/ai";
import { formatClaudeResumeCompactionQuestion } from "@t3tools/shared/claudeCompaction";
import { HostProcessPlatform } from "@t3tools/shared/hostProcess";
@@ -1990,6 +1991,7 @@
readonly subtype?: string;
readonly isError?: boolean;
readonly errors?: ReadonlyArray<string>;
+ readonly userMessageUuid?: string;
readonly apiErrorStatus?: number;
// null omits the field, as the CLI does on a zero-turn result.
readonly terminalReason?: SDKResultMessage["terminal_reason"] | null;
@@ -2016,6 +2018,7 @@
session_id: WAKE_NATIVE_SESSION,
...(input.origin === undefined ? {} : { origin: input.origin }),
...(input.errors === undefined ? {} : { errors: input.errors }),
+ ...(input.userMessageUuid === undefined ? {} : { user_message_uuid: input.userMessageUuid }),
...(input.apiErrorStatus === undefined ? {} : { api_error_status: input.apiErrorStatus }),
...(input.terminalReason === null
@@ -2076,7 +2079,7 @@
const makeWakeHarnessWithOptions = (options?: {