Skip to content

feat: add toggleable tool source diagnostics#1825

Draft
DuyPrX wants to merge 2 commits into
decolua:masterfrom
DuyPrX:codex/tool-source-log-toggle
Draft

feat: add toggleable tool source diagnostics#1825
DuyPrX wants to merge 2 commits into
decolua:masterfrom
DuyPrX:codex/tool-source-log-toggle

Conversation

@DuyPrX

@DuyPrX DuyPrX commented Jun 15, 2026

Copy link
Copy Markdown

Summary

  • Add diagnostic tool-source summarization for incoming chat requests.
  • Add a profile/settings toggle so the [TOOLS] diagnostic line can be enabled only when needed.
  • Summaries include tool source counts, MCP server names where available, and a bounded list of tool names.

Why

Tool-heavy agent clients can send many built-in, hosted, and MCP tools. A compact source summary is useful when diagnosing routing/model behavior, but always-on tool logs make normal request logs harder to read. This keeps the diagnostic available while leaving it off by default.

Testing

  • node --check src/sse/handlers/chat.js
  • node --check src/lib/db/repos/settingsRepo.js
  • pnpm exec next build --webpack

Opened as draft so maintainers can decide whether this belongs in profile settings or another diagnostics area.

bloodf pushed a commit to bloodf/9router that referenced this pull request Jun 19, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant