Skip to content
Source
Sign inSign up
pingdotgg/t3code

fix(claude): fork history in the provider environment #15598

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

Showing 2 changed files with 117 additions and 1 deletion (loading 1).

x
0 of 2 viewed, 2 left
117 additions and 1 deletionapps/server/src/orchestration-v2/Adapters/ClaudeAdapterV2.test.tsModified
View file
@@ -1,4 +1,5 @@
import * as NodeOS from "node:os";
+import * as NodeCrypto from "node:crypto";
​
import type {
Query as ClaudeQuery,
@@ -29,6 +30,7 @@
ThreadId,
} from "@t3tools/contracts";
import { assert, describe, it } from "@effect/vitest";
+import * as Clock from "effect/Clock";
import * as Context from "effect/Context";
import * as DateTime from "effect/DateTime";
import * as Deferred from "effect/Deferred";
@@ -44,6 +46,8 @@
import * as Scope from "effect/Scope";
import * as Stream from "effect/Stream";
import { Tool } from "effect/unstable/ai";
+import { TestClock } from "effect/testing";
+import { ChildProcess, ChildProcessSpawner } from "effect/unstable/process";
import { formatClaudeResumeCompactionQuestion } from "@t3tools/shared/claudeCompaction";
import { HostProcessPlatform } from "@t3tools/shared/hostProcess";
import { SpawnExecutableResolution } from "@t3tools/shared/shell";
@@ -58,6 +62,7 @@
import { ThreadToolkit } from "../../mcp/toolkits/thread/tools.ts";
import { OrchestratorToolkit } from "../../mcp/toolkits/orchestrator/tools.ts";
import { ClaudeExecutableFileCheck } from "../../provider/Drivers/ClaudeExecutable.ts";
+import * as ProviderEventLoggers from "../../provider/Layers/ProviderEventLoggers.ts";