mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-06 17:51:37 +00:00
agents: reduce prompt token bloat from exec and context (#16539)
Merged via /review-pr -> /prepare-pr -> /merge-pr.
Prepared head SHA: 8e1635fa3f
Co-authored-by: CharlieGreenman <8540141+CharlieGreenman@users.noreply.github.com>
Co-authored-by: gumadeiras <5599352+gumadeiras@users.noreply.github.com>
Reviewed-by: @gumadeiras
This commit is contained in:
@@ -183,6 +183,11 @@ export type ExecToolConfig = {
|
||||
cleanupMs?: number;
|
||||
/** Emit a system event and heartbeat when a backgrounded exec exits. */
|
||||
notifyOnExit?: boolean;
|
||||
/**
|
||||
* Also emit success exit notifications when a backgrounded exec has no output.
|
||||
* Default false to reduce context noise.
|
||||
*/
|
||||
notifyOnExitEmptySuccess?: boolean;
|
||||
/** apply_patch subtool configuration (experimental). */
|
||||
applyPatch?: {
|
||||
/** Enable apply_patch for OpenAI models (default: false). */
|
||||
|
||||
Reference in New Issue
Block a user