Skip to content

feat(tui): add minimal and hidden tool call modes - #48300

Closed
lukaivanovic wants to merge 2 commits into
anomalyco:devfrom
lukaivanovic:hide-tool-calls
Closed

lukaivanovic wants to merge 2 commits into
anomalyco:devfrom
lukaivanovic:hide-tool-calls

Conversation

@lukaivanovic

@lukaivanovic lukaivanovic commented Sep 10, 2026 •

Copy link
Copy Markdown

Issue for this PR

No linked issue.

Type of change

  • Bug fix
  • New feature
  • Refactor / code improvement
  • Documentation

What does this PR do?

Verbose tool output can make assistant responses harder to scan. Adds Settings → Session → Tool calls with three modes:

  • show: current behavior and the default.
  • minimal: one collapsed line per tool, with truncated summaries. Click to expand or collapse details.
  • hide: removes tool rows and output from the transcript.

Minimal mode shows grouped reads and searches individually. Hidden mode filters rows before rendering to avoid empty rows. Mode changes preserve the reading position. Permission prompts and questions remain usable. This changes full-screen TUI presentation only.

How did you verify your code works?

  • Full TUI suite on Bun 1.4.2: 1,365 passed, 4 skipped, 0 failed. Includes regressions for status feedback, one-click details, stored shell output, and history anchors.
  • TUI typecheck and all 35 pre-push typecheck tasks passed.
  • Documentation typecheck, generated check, build, and link validation passed.
  • Isolated OpenCode Drive checks passed for expansion, running and failed tools, 40/70/112-column layouts, restart persistence, mode switching, permissions, and questions.

To verify, open a session with tool calls and switch modes under Settings → Session → Tool calls. In minimal mode, click a summary to expand and collapse its details. Switch modes while scrolled into history to check the reading position.

Screenshots / recordings

Default

Tool calls shown with the default presentation

Minimal

Tool calls shown as collapsed one-line summaries

Hide

Tool calls hidden while assistant text remains visible

Checklist

  • I have tested my changes locally
  • I have not included unrelated changes in this PR

@lukaivanovic
lukaivanovic marked this pull request as draft September 10, 2026 08:43
@lukaivanovic
lukaivanovic marked this pull request as ready for review September 10, 2026 11:27
@jlongster

Copy link
Copy Markdown
Contributor

Hi! We are actually already working on this 😄 This is a good reference point though, and will check out what you did. since already have an implementation we probably won't merge this but thanks for the ideas!

@thdxr
thdxr changed the base branch from v2 to dev October 10, 2026 19:06
@github-actions

Copy link
Copy Markdown
Contributor

Automated PR Cleanup

Thank you for contributing to opencode.

Due to the high volume of PRs from users and AI agents, we periodically close older PRs using automated criteria so maintainers can focus review time on the most active and community-supported contributions.

This PR was closed because it matched the following cleanup criteria:

  • The PR was created more than 1 month ago
  • The PR had fewer than 2 positive reactions
  • Positive reactions are counted as thumbs-up, heart, celebration, or rocket reactions on the PR

PRs created within the last month are not affected by this cleanup.

If you believe this PR was closed incorrectly, or if you are still actively working on it, please leave a comment explaining why it should be reopened. A maintainer can review and reopen it if appropriate.

Thanks again for taking the time to contribute.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants