fix(config,webui): make show_tool_calls one cross-channel setting
show_tool_calls gated Telegram's tool-activity narration only; the web dashboard's SSE chat stream narrated every completed tool call unconditionally with no way to turn it off, leaking tool names and parameter shapes to anyone with dashboard access even when an operator had already opted out for Telegram. Moved ShowToolCalls from TelegramConfig to ChatConfig so it is one setting for every channel, and wired the webui stream to it: chatStreamSink now carries a showToolCalls flag (snapshotted once per turn, mirroring how Telegram's liveReply snapshots it) and ToolCall no-ops when it's off. BREAKING: an existing [chat.telegram] show_tool_calls = true in config.toml now parses as an unrecognized key under [chat.telegram] and is silently ignored (TOML decoding is non-strict) rather than erroring -- move it to the top-level [chat] table.
This commit is contained in:
1 parent
15556a8a1c
commit
a60dea926f
5 files changed
+120
-28
No files matched your search
+7
-6
@@ -88,6 +88,13 @@ class = "ollama"
|
||||
# cross-filesystem (disk ops, system edits, etc.). Grant deliberately.
|
||||
# unrestricted_filesystem = true
|
||||
|
||||
# Render each completed tool call inline in the reply, naming the tool and one
|
||||
# line of its result, before the answer built from them. Off by default: it is
|
||||
# there to make a wrong tool choice visible from the chat, at the cost of
|
||||
# narrating every internal step. Applies to every chat channel -- Telegram
|
||||
# and the web dashboard both read this one setting.
|
||||
# show_tool_calls = true
|
||||
|
||||
# Optional interactive-chat catalog. /provider groups these references by
|
||||
# their first path segment, and /model shows only the selected provider's
|
||||
# entries. When omitted, Archie uses the distinct refs in [models].
|
||||
@@ -102,12 +109,6 @@ class = "ollama"
|
||||
# [chat.telegram]
|
||||
# update_check_command = ["/usr/local/bin/archie-update-check"]
|
||||
# update_install_command = ["/usr/local/bin/archie-update-install"]
|
||||
#
|
||||
# Render each completed tool call inline in the reply, naming the tool and one
|
||||
# line of its result, before the answer built from them. Off by default: it is
|
||||
# there to make a wrong tool choice visible from the chat, at the cost of
|
||||
# narrating every internal step.
|
||||
# show_tool_calls = true
|
||||
|
||||
# External MCP tools are launched and managed by Archie's MCP client.
|
||||
# [[tools.mcp_servers]]
|
||||
|
||||
Reference in new issue
Block a user