| 6801 | } client_detect_env_t; |
| 6802 | |
| 6803 | static client_detect_env_t client_detect_env_isolate(const char *path_dir) { |
| 6804 | client_detect_env_t saved = { |
| 6805 | save_test_env("PATH"), save_test_env("CLAUDE_CONFIG_DIR"), save_test_env("OPENCODE_CONFIG"), |
| 6806 | save_test_env("OPENCODE_CONFIG_DIR"), save_test_env("HERMES_HOME")}; |
| 6807 | cbm_setenv("PATH", path_dir, 1); |
| 6808 | cbm_unsetenv("CLAUDE_CONFIG_DIR"); |
| 6809 | cbm_unsetenv("OPENCODE_CONFIG"); |
| 6810 | cbm_unsetenv("OPENCODE_CONFIG_DIR"); |
| 6811 | cbm_unsetenv("HERMES_HOME"); |
| 6812 | return saved; |
| 6813 | } |
| 6814 | |
| 6815 | static void client_detect_env_restore(client_detect_env_t *saved) { |
| 6816 | restore_test_env("PATH", saved->path); |
no test coverage detected