feat(coding-agent): expose session metadata to bash tools (#6967)

This commit is contained in:
Armin Ronacher
2026-07-22 20:15:02 +02:00
committed by GitHub
parent c55ae2faa5
commit bb3d7d399c
16 changed files with 278 additions and 27 deletions
@@ -142,7 +142,7 @@ describe("ToolExecutionComponent parity", () => {
return { exitCode: 0 };
},
};
const tool = createBashToolDefinition(process.cwd(), { operations });
const tool = createBashToolDefinition(process.cwd(), { operations, exposeSessionEnvironment: false });
const promise = tool.execute(
"tool-bash-1",
{ command: "sleep 10" },
@@ -163,7 +163,7 @@ describe("ToolExecutionComponent parity", () => {
return { exitCode: 0 };
},
};
const tool = createBashToolDefinition(process.cwd(), { operations });
const tool = createBashToolDefinition(process.cwd(), { operations, exposeSessionEnvironment: false });
const result = await tool.execute(
"tool-bash-1b",
{ command: "generate output" },