feat(tui): show tool and MCP schema costs - #5653
Conversation
Add bounded per-tool catalog estimates and per-server MCP announcement totals to the context inspector without changing prompt assembly or cache behavior. Cover ordering, truncation, and empty-server cases for #5553.
Separate the contributed tool/MCP schema-cost report from Recent Tools and add complete locale coverage, so the context inspector does not render two adjacent sections under the same heading. Signed-off-by: CodeWhale Bot <bot@codewhale.net>
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
|
Claude finished @Hmbown's task in 4m 30s —— View job Review of PR #5653 — feat(tui): show tool and MCP schema costs
SummaryDisplay-only diagnostic addition to the context inspector — no prompt assembly, tool catalog construction, or MCP discovery/cache paths are touched, which matches the stated scope. The core logic in Note (not a blocker): I was not able to execute Findings
Both are low severity and don't block merging; the feature is additive, bounded, and localization-complete. Nice touch bounding both the row count ( |
Summary
Rescue of @wuisabel-gif's #5603 onto current
main. Authorship of the feature commit is preserved (Isabel Wu <231155141+wuisabel-gif@users.noreply.github.com>). The original PR and the later grok rebase (#5611) were closed as already integrated on a 0.9.12 integration branch, but the work never reachedorigin/main.The context inspector now shows bounded schema-cost estimates from the last model tool catalog:
Follow-up maintainer layout fix keeps this report in its own localized section (
CtxInspToolSchemaCosts) so it does not share the "Recent Tools" heading.No prompt assembly, tool catalog construction, MCP discovery, or cache behavior changes.
Original: #5603
Earlier rebase (also closed without landing): #5611
Testing
python3 scripts/check-coauthor-trailers.py --range origin/main..HEAD(passed for 2 commits)cargo test -p codewhale-tui --lib 'tui::context_inspector' --locked(14 passed)python3 scripts/check-tui-locale-parity.py(PASS, 1684 keys)git diff --checkNo-Issue: Re-lands the already-reviewed #5603 / #5553 display-only slice; does not close the broader #5553 issue.