feat(rpc): add excludeFromContext flag to bash command (closes #5039)

This commit is contained in:
Armin Ronacher
2026-05-27 18:34:42 +02:00
parent 4bbe2959bd
commit 61babc24cf
3 changed files with 8 additions and 2 deletions

View File

@@ -547,7 +547,9 @@ export async function runRpcMode(runtimeHost: AgentSessionRuntime): Promise<neve
// =================================================================
case "bash": {
const result = await session.executeBash(command.command);
const result = await session.executeBash(command.command, undefined, {
excludeFromContext: command.excludeFromContext,
});
return success(id, "bash", result);
}

View File

@@ -49,7 +49,7 @@ export type RpcCommand =
| { id?: string; type: "abort_retry" }
// Bash
| { id?: string; type: "bash"; command: string }
| { id?: string; type: "bash"; command: string; excludeFromContext?: boolean }
| { id?: string; type: "abort_bash" }
// Session