[Bug] Compact tool activity summary has no row cap and can overflow the footer on small terminals
Description
The compact tool-activity summary (LiveCompactCounts) renders one row per distinct tool used in a turn, with no upper limit. It's rendered inside the app's footer, which is set to not shrink. A setup that calls many distinct tools in one turn (common with several MCP servers enabled) produces that many footer rows, which on a small or short terminal can exceed the visible viewport and push the input box out of view.
Parent: #907
Steps to Reproduce
- Enable several MCP servers, or otherwise trigger a turn that uses 8-10+ distinct tools.
- Use a short terminal (roughly 24 rows).
- Observe the compact tool-activity summary in the footer during/after that turn.
Expected Behavior
The summary should cap at a reasonable number of rows (e.g. ~5) with a "+N more" line, so it can never crowd out the input box.
Actual Behavior
One row per distinct tool, unbounded, inside a footer box that cannot shrink to compensate.
Recording
Root Cause
source/utils/tool-result-display.tsx LiveCompactCounts maps Object.entries(counts) directly with no slice or limit. It's rendered in source/app/components/chat-input.tsx, inside source/app/sections/interactive-app.tsx's flexShrink={0} footer.
Suggested Fix
Cap the summary at ~5 rows with a "+N more" line once more distinct tools than that have been used.
Additional Context
- [x] I have searched existing issues to ensure this is not a duplicate
- [x] I can reproduce this issue consistently (confirmed via code trace and a real recording with 6 distinct tools; a starker overflow needs a shorter terminal or more MCP tools than shown here)
- [x] This issue occurs on the latest
main
Hey @akramcodez, I can take this up could you assign it to me?