Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -259,10 +259,10 @@ export function getOpenCodePluginContent(notifyPath: string): string {
export function createClaudeWrapper(): void {
const script = buildWrapperScript(
"claude",
buildDefaultAccountResolver(
`${buildDefaultAccountResolver(
"CLAUDE_CONFIG_DIR",
"default-claude-config-dir",
) + `exec "$REAL_BIN" "$@"`,
)}exec "$REAL_BIN" "$@"`,
{ agentId: "claude" },
);
createWrapper("claude", script);
Expand Down
4 changes: 2 additions & 2 deletions packages/host-service/src/trpc/router/agents/agents.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -321,7 +321,7 @@ describe("buildTerminalAgentLaunch default account env", () => {
prompt: "hi",
});
expect(launch.fullCommand).toBe(
`CLAUDE_CONFIG_DIR='${existingDir}' 'claude' 'hi'`,
`CLAUDE_CONFIG_DIR='${existingDir}' SUPERSET_DEFAULT_CLAUDE_CONFIG_DIR='${existingDir}' 'claude' 'hi'`,
);
});

Expand All @@ -335,7 +335,7 @@ describe("buildTerminalAgentLaunch default account env", () => {
prompt: "hi",
});
expect(launch.fullCommand).toBe(
"CLAUDE_CONFIG_DIR='/pinned/profile' 'claude' 'hi'",
`CLAUDE_CONFIG_DIR='/pinned/profile' SUPERSET_DEFAULT_CLAUDE_CONFIG_DIR='${existingDir}' 'claude' 'hi'`,
);
});

Expand Down
Loading