mirror of
https://github.com/aaif-goose/goose.git
synced 2026-07-03 14:10:03 +02:00
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:
@@ -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")
|
||||
|
||||
Reference in New Issue
Block a user