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 {
|
fn build_stream_json_command(&self) -> Command {
|
||||||
let mut cmd = Command::new(&self.command);
|
let mut cmd = Command::new(&self.command);
|
||||||
configure_subprocess(&mut cmd);
|
configure_subprocess(&mut cmd);
|
||||||
|
// Allow goose to run inside a Claude Code session.
|
||||||
|
cmd.env_remove("CLAUDECODE");
|
||||||
cmd.arg("--input-format")
|
cmd.arg("--input-format")
|
||||||
.arg("stream-json")
|
.arg("stream-json")
|
||||||
.arg("--output-format")
|
.arg("--output-format")
|
||||||
|
|||||||
Reference in New Issue
Block a user