diff options
| author | anj-s <[email protected]> | 2025-07-15 10:22:31 -0700 |
|---|---|---|
| committer | GitHub <[email protected]> | 2025-07-15 17:22:31 +0000 |
| commit | d3ee9de3c3b976ad45fe1a13eb49271d17a32e37 (patch) | |
| tree | 10c9a2dbe37eb0602a716d92aea2290b61d9310b /packages/core/src/tools/shell.ts | |
| parent | 7effdad3e27d4e6198249d3dba1bc52e89b76462 (diff) | |
Enable tool summarization only when explicitly set in settings.json (#4140)
Co-authored-by: matt korwel <[email protected]>
Diffstat (limited to 'packages/core/src/tools/shell.ts')
| -rw-r--r-- | packages/core/src/tools/shell.ts | 20 |
1 files changed, 14 insertions, 6 deletions
diff --git a/packages/core/src/tools/shell.ts b/packages/core/src/tools/shell.ts index 7e79c717..3dc3d0a6 100644 --- a/packages/core/src/tools/shell.ts +++ b/packages/core/src/tools/shell.ts @@ -489,14 +489,22 @@ Process Group PGID: Process group started or \`(none)\``, } } - const summary = await summarizeToolOutput( - llmContent, - this.config.getGeminiClient(), - abortSignal, - ); + const summarizeConfig = this.config.getSummarizeToolOutputConfig(); + if (summarizeConfig && summarizeConfig[this.name]) { + const summary = await summarizeToolOutput( + llmContent, + this.config.getGeminiClient(), + abortSignal, + summarizeConfig[this.name].tokenBudget, + ); + return { + llmContent: summary, + returnDisplay: returnDisplayMessage, + }; + } return { - llmContent: summary, + llmContent, returnDisplay: returnDisplayMessage, }; } |
