From 3fefb647e1b3c4732bb8e17ecc9db2068e4e6e3c Mon Sep 17 00:00:00 2001 From: Fabrice Aneche Date: Sun, 13 Sep 2026 20:59:42 -0400 Subject: [PATCH] test(agents): isolate Crush hook test from XDG_CONFIG_HOME --- crates/tty7-core/src/core/agent_hooks.rs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/crates/tty7-core/src/core/agent_hooks.rs b/crates/tty7-core/src/core/agent_hooks.rs index e2a05d1c..b47d346e 100644 --- a/crates/tty7-core/src/core/agent_hooks.rs +++ b/crates/tty7-core/src/core/agent_hooks.rs @@ -2554,7 +2554,11 @@ mod tests { "--nocapture", ]) .env(CASE_ENV, case) - .env(ROOT_ENV, sandbox.path()); + .env(ROOT_ENV, sandbox.path()) + // `crush_settings_path` falls back to `$XDG_CONFIG_HOME` + // before the sandbox home, and CI exports it. Neutralise it + // so the default lands under the home this test owns. + .env_remove("XDG_CONFIG_HOME"); match case { "override" => { child.env("CRUSH_GLOBAL_CONFIG", sandbox.path().join("custom config"))