diff --git a/AGENTS.md b/AGENTS.md index 21f84189..12a8c34b 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -49,7 +49,6 @@ When closing issues via commit: ## Tools - GitHub CLI for issues/PRs - Add package labels to issues/PRs: pkg:agent, pkg:ai, pkg:coding-agent, pkg:mom, pkg:pods, pkg:tui, pkg:web-ui -- See pi-tmux-test skill if you need to test pi interactive mode ## Style - Keep answers short and concise diff --git a/packages/coding-agent/src/modes/interactive/components/tool-execution.ts b/packages/coding-agent/src/modes/interactive/components/tool-execution.ts index 52bda96d..35bad0e6 100644 --- a/packages/coding-agent/src/modes/interactive/components/tool-execution.ts +++ b/packages/coding-agent/src/modes/interactive/components/tool-execution.ts @@ -9,6 +9,7 @@ import { Spacer, Text, type TUI, + truncateToWidth, } from "@mariozechner/pi-tui"; import stripAnsi from "strip-ansi"; import type { ToolDefinition } from "../../../core/extensions/types.js"; @@ -384,7 +385,7 @@ export class ToolExecutionComponent extends Container { const hint = theme.fg("muted", `... (${cachedSkipped} earlier lines,`) + ` ${keyHint("expandTools", "to expand")})`; - return ["", hint, ...cachedLines]; + return ["", truncateToWidth(hint, width, "..."), ...cachedLines]; } // Add blank line for spacing (matches expanded case) return ["", ...cachedLines];