Skip to content

Commit 568af5d

Browse files
giodl73-repoCopilot
andcommitted
test: seed claude transcript under runtime home
Keep the proof harness transcript in the same HOME that the runtime uses when deciding whether a saved Claude CLI session can be reused. Co-authored-by: Copilot <[email protected]>
1 parent 967c0a8 commit 568af5d

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/gateway/gateway-cli-backend.live.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -198,8 +198,8 @@ async function seedClaudeCliReusedSessionProof(params: {
198198
2,
199199
)}\n`,
200200
);
201-
202-
const claudeProjectDir = path.join(os.homedir(), ".claude", "projects", "openclaw-live-proof");
201+
const homeDir = process.env.HOME?.trim() || os.homedir();
202+
const claudeProjectDir = path.join(homeDir, ".claude", "projects", "openclaw-live-proof");
203203
await fs.mkdir(claudeProjectDir, { recursive: true });
204204
await fs.writeFile(
205205
path.join(claudeProjectDir, `${cliSessionId}.jsonl`),

0 commit comments

Comments
 (0)