Skip to content
Source
Sign inSign up
pingdotgg/t3code

fix(server): forking a Claude thread works on instances with their own home #18662

Mergedsingul-oss(GitHub profile, opens in a new tab)merged 6 commits intomain fromrefs/pull/18662/headmerged by juliusmarminge View on GitHub

Showing 3 changed files with 80 additions and 12 deletions (loading 1).

x
0 of 3 viewed, 3 left
3 additions and 7 deletionsapps/server/src/orchestration-v2/Adapters/ClaudeAdapterV2.test.tsModified
View file
@@ -1850,16 +1850,11 @@
prefix: "t3-claude-v2-fork-attachments-",
const openedQueries: Array<ClaudeAdapterV2.ClaudeAgentSdkQueryOpenInput> = [];
- const forkCalls: Array<{
- readonly sessionId: string;
- readonly options: unknown;
- readonly threadId: ThreadId;
- readonly providerSessionId: ProviderSessionId;
- }> = [];
+ const forkCalls: Array<ClaudeAdapterV2.ClaudeAgentSdkSessionForkInput> = [];
const adapter = yield* ClaudeAdapterV2.makeClaudeAdapterV2({
instanceId: ClaudeAdapterV2.CLAUDE_DEFAULT_INSTANCE_ID,
settings: DEFAULT_CLAUDE_SETTINGS,
- environment: {},
+ environment: { CLAUDE_CONFIG_DIR: "/custom/claude-home" },
attachmentsDir,
fileSystem,
path: yield* Path.Path,
@@ -1951,6 +1946,7 @@
dir: "/workspace",
upToMessageId: "assistant-message-cursor",
+ environment: { CLAUDE_CONFIG_DIR: "/custom/claude-home" },
threadId: targetThreadId,
providerSessionId,