feat(rpc): add excludeFromContext flag to bash command (closes #5039)
This commit is contained in:
@@ -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)).
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user