From 79251d7af8b22a3a7fdb11ac6a357dd245df4590 Mon Sep 17 00:00:00 2001 From: Sergey Galuza Date: Sat, 11 Apr 2026 17:29:15 +0200 Subject: [PATCH] test(ci): add env isolation comment to persist-command-handler MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Align with claudecode-env-stripping.test.ts style — explain why CLAUDE_CONFIG_DIR is cleared in beforeEach for consistency across test files. Built [OnSteroids](https://onsteroids.ai) --- tests/unit/commands/persist-command-handler.test.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/unit/commands/persist-command-handler.test.ts b/tests/unit/commands/persist-command-handler.test.ts index 8f235714..80a6dcd6 100644 --- a/tests/unit/commands/persist-command-handler.test.ts +++ b/tests/unit/commands/persist-command-handler.test.ts @@ -73,6 +73,7 @@ function stubProcessExit(): void { beforeEach(async () => { tempRoot = await fs.promises.mkdtemp(path.join(os.tmpdir(), 'ccs-persist-handler-test-')); originalClaudeConfigDir = process.env.CLAUDE_CONFIG_DIR; + // Clear CLAUDE_CONFIG_DIR so scoped CCS_HOME takes effect (leaks from host CCS session) delete process.env.CLAUDE_CONFIG_DIR; originalProcessExit = process.exit; originalFsOpen = fs.promises.open;