fix(claude-code): allow goose to run inside a Claude Code session (#7232)

Signed-off-by: Adrian Cole <adrian@tetrate.io>
This commit is contained in:
Adrian Cole
2026-02-17 09:12:16 -05:00
committed by GitHub
parent 8792de8108
commit c7478c43b1
@@ -269,6 +269,8 @@ impl ClaudeCodeProvider {
fn build_stream_json_command(&self) -> Command {
let mut cmd = Command::new(&self.command);
configure_subprocess(&mut cmd);
// Allow goose to run inside a Claude Code session.
cmd.env_remove("CLAUDECODE");
cmd.arg("--input-format")
.arg("stream-json")
.arg("--output-format")