mirror of
https://github.com/openclaw/openclaw.git
synced 2026-07-16 19:51:38 +00:00
* feat(webui): reintroduce opt-in AI purpose titles for tool calls Restores the chat.toolTitles path removed in #103821, gated behind the new gateway.controlUi.toolTitles opt-in (default false) so tool rendering stays fully deterministic with no background model calls unless an operator enables it. Disabled gateways answer { titles: {}, disabled: true } without loading the completion runtime, and clients stop asking for the session. When enabled, titles use canonical utility-model routing: an explicit utilityModel (operator-chosen provider, like every utility task), else the session provider's declared small-model default, honoring per-session model overrides and auth profiles; utilityModel "" disables titles and malformed refs fail closed — never the primary model. Tool inputs are redacted with the tools-mode redactor before cache keys or prompts, caller ids are bounded and never reach the model, and results cache in the per-agent SQLite cache_entries so repeat views never re-bill. Also completes two crestodian model-input mock factories that leaked into sibling tests under shared-registry CI shards. Fixes #103987 * fix(webui): redact tool-title inputs before truncation