Skip to content

Extend bash RPC command to accept excludeFromContext flag #5039

@paralaxsd

Description

@paralaxsd

What do you want to change?

Add excludeFromContext?: boolean to the bash RPC command, mirroring the flag that executeBash already accepts internally.

Why?

RPC clients can't implement a "run without adding to context" bash mode because the flag isn't exposed at the protocol level. The internal API already supports it but the RPC surface doesn't pass it through.

Feature parity between RPC and the internal session API seems desirable (to me).

How? (optional)

Two small changes:

excludeFromContext?: boolean on the bash command type in rpc-types.ts, and passing it to executeBash in rpc-mode.ts.

Happy to submit a PR if this looks reasonable.

Metadata

Metadata

Assignees

Labels

inprogressIssue is being worked on

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions