From 9ff0825b1db6fbe8745138dbbcdfea61e8e28e89 Mon Sep 17 00:00:00 2001 From: Ondrej Cervinka Date: Tue, 12 May 2026 21:32:31 +0100 Subject: [PATCH] feat(acp): add GOOSE_DISABLE_TOOL_CALL_SUMMARY to opt out of per-tool-call summaries (#8947) Signed-off-by: ocervinka Signed-off-by: Douwe Osinga Co-authored-by: Douwe Osinga --- crates/goose/src/acp/server.rs | 7 +++++++ crates/goose/src/config/base.rs | 1 + documentation/docs/guides/environment-variables.md | 1 + 3 files changed, 9 insertions(+) diff --git a/crates/goose/src/acp/server.rs b/crates/goose/src/acp/server.rs index c3b89f8f8d..6cda8fedf9 100644 --- a/crates/goose/src/acp/server.rs +++ b/crates/goose/src/acp/server.rs @@ -1674,6 +1674,13 @@ impl GooseAcpAgent { SessionUpdate::ToolCall(initial_tool_call), ))?; + if Config::global() + .get_goose_disable_tool_call_summary() + .unwrap_or(false) + { + return Ok(()); + } + if let Ok(tool_call) = &tool_request.tool_call { let agent = match &session.agent { AgentHandle::Ready(a) => a.clone(), diff --git a/crates/goose/src/config/base.rs b/crates/goose/src/config/base.rs index 1c55fa2f58..cf239c1f71 100644 --- a/crates/goose/src/config/base.rs +++ b/crates/goose/src/config/base.rs @@ -1027,6 +1027,7 @@ config_value!(GOOSE_PROMPT_EDITOR, Option); config_value!(GOOSE_PROMPT_EDITOR_ALWAYS, Option); config_value!(GOOSE_MAX_ACTIVE_AGENTS, usize); config_value!(GOOSE_DISABLE_SESSION_NAMING, bool); +config_value!(GOOSE_DISABLE_TOOL_CALL_SUMMARY, bool); config_value!(GEMINI3_THINKING_LEVEL, String); config_value!(CLAUDE_THINKING_TYPE, String); config_value!(CLAUDE_THINKING_EFFORT, String); diff --git a/documentation/docs/guides/environment-variables.md b/documentation/docs/guides/environment-variables.md index 7eeaf99ee4..085ca622b8 100644 --- a/documentation/docs/guides/environment-variables.md +++ b/documentation/docs/guides/environment-variables.md @@ -232,6 +232,7 @@ These variables control how goose manages conversation sessions and context. | `GOOSE_MAX_BACKGROUND_TASKS` | Sets the maximum number of concurrent background [subagent](/docs/guides/subagents) tasks goose can run at once | Integer (e.g., 1, 5, 10) | 5 | | `CONTEXT_FILE_NAMES` | Specifies custom filenames for [hint/context files](/docs/guides/context-engineering/using-goosehints#custom-context-files) | JSON array of strings (e.g., `["CLAUDE.md", ".goosehints"]`) | `[".goosehints"]` | | `GOOSE_DISABLE_SESSION_NAMING` | Disables automatic AI-generated session naming; avoids the background model call and keeps the default "CLI Session" (goose CLI) or "New Chat" (goose Desktop) | "1", "true" (case-insensitive) to enable | false | +| `GOOSE_DISABLE_TOOL_CALL_SUMMARY` | Disables the per-tool-call AI-generated summary title, keeping the fallback title instead. Saves one provider call per tool invocation. | "1", "true" (case-insensitive) to enable | false | | `GOOSE_PROMPT_EDITOR` | [External editor](/docs/guides/goose-cli-commands#external-editor-mode) to use for composing prompts instead of CLI input | Editor command (e.g., "vim", "code --wait") | Unset (uses CLI input) | | `GOOSE_CLI_THEME` | [Theme](/docs/guides/goose-cli-commands#themes) for CLI response markdown | "light", "dark", "ansi" | "dark" | | `GOOSE_CLI_LIGHT_THEME` | Custom [bat theme](https://github.com/sharkdp/bat#adding-new-themes) for syntax highlighting when using light mode | bat theme name (e.g., "Solarized (light)", "OneHalfLight") | "GitHub" |