Repository navigation
feat(tui): show tool subcommand line under tool calls - #257
Merged
Merged
Conversation
… panel Render the actual invocation (git status --short, $ cargo test, path, query) on an always-visible connector line under each tool call, instead of burying it behind the Ctrl+O expanded output. Tools emit their own invocation formatter (forge-tools::tool_invocation); render-only tools (apply_patch, write_stdin, update_plan) and MCP calls keep the old single-line form. Long invocations wrap with the tree connector carried down. Validation commands keep their Tests passed/failed phrase, and sensitive invocations are redacted.
mohitranka
added a commit
that referenced
this pull request
Aug 21, 2026
… panel (#257) Render the actual invocation (git status --short, $ cargo test, path, query) on an always-visible connector line under each tool call, instead of burying it behind the Ctrl+O expanded output. Tools emit their own invocation formatter (forge-tools::tool_invocation); render-only tools (apply_patch, write_stdin, update_plan) and MCP calls keep the old single-line form. Long invocations wrap with the tree connector carried down. Validation commands keep their Tests passed/failed phrase, and sensitive invocations are redacted.
mohitranka
added a commit
that referenced
this pull request
Sep 11, 2026
… panel (#257) Render the actual invocation (git status --short, $ cargo test, path, query) on an always-visible connector line under each tool call, instead of burying it behind the Ctrl+O expanded output. Tools emit their own invocation formatter (forge-tools::tool_invocation); render-only tools (apply_patch, write_stdin, update_plan) and MCP calls keep the old single-line form. Long invocations wrap with the tree connector carried down. Validation commands keep their Tests passed/failed phrase, and sensitive invocations are redacted.
mohitranka
added a commit
that referenced
this pull request
Sep 11, 2026
… panel (#257) Render the actual invocation (git status --short, $ cargo test, path, query) on an always-visible connector line under each tool call, instead of burying it behind the Ctrl+O expanded output. Tools emit their own invocation formatter (forge-tools::tool_invocation); render-only tools (apply_patch, write_stdin, update_plan) and MCP calls keep the old single-line form. Long invocations wrap with the tree connector carried down. Validation commands keep their Tests passed/failed phrase, and sensitive invocations are redacted.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
Always-visible subcommand line under each tool call in the conversation panel, so the operator sees what was actually invoked without expanding via Ctrl+O.
How
forge_tools::tool_invocation(name, args)formatter (crates/forge-tools/src/invocation.rs) — each built-in tool's invocation string (git →git status --short, bash/exec →$ cmd, read/write → path, fffind/ffgrep/web_search → query/pattern, load_skill → name).ChatItem::ToolCardcarries the invocation;ActivityGroupPresentation.subcommands: Vec<String>feeds the renderer (0-1 per call today; the├─/└─/│glyph set already supports multiple children).[Ctrl + o]hint replaces· Ctrl+O details(no Shift needed).Tests passed/failedphrase on the subcommand line (derived from the real outcome, never rendered text).Out of scope
apply_patch,write_stdin,update_plan) and MCP/remote tools keep the old single-line form.Validation
cargo fmt --all -- --checkcleancargo clippy --workspace --all-targets --locked -- -D warningscleancargo test --package forge-tools: 158 passedcargo test --package forge-tui --lib: 740 passedNote: 3
forge-configpermissions tests fail on this machine (merged.allownot empty) because they read the developer's real user-level~/Library/Application Support/forge/permissions.toml. Confirmed viagit stashthat they fail on cleanmaintoo — pre-existing environmental, unrelated to this change.