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

@@ -2,6 +2,10 @@
## [Unreleased]
### Added
- Added `excludeFromContext` flag to the `bash` RPC command for parity with the internal `executeBash` API ([#5039](https://github.com/earendil-works/pi/issues/5039)).
### Fixed
- Fixed user message transcript rendering to preserve user-authored ordered-list markers ([#5013](https://github.com/earendil-works/pi/issues/5013)).

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