Skip to content

feat: add 'showFullOutput' command and related functionality#14895

Closed
B143KC47 wants to merge 5 commits intogoogle-gemini:mainfrom
B143KC47:Feat-ShowFullOutput
Closed

feat: add 'showFullOutput' command and related functionality#14895
B143KC47 wants to merge 5 commits intogoogle-gemini:mainfrom
B143KC47:Feat-ShowFullOutput

Conversation

@B143KC47
Copy link

@B143KC47 B143KC47 commented Dec 10, 2025

Summary

  • Add showFullOutput command (Ctrl+O) to reveal full tool outputs that were previously truncated/saved to disk.
  • Rendering tweaks show all lines when enabled and add UI hints where output was hidden.
  • Tool messages load and display saved output files inline when full output is requested.

Details

  • New UI state flag, key binding, description, category, and key matcher for showFullOutput; default toggle added to
    AppContainer with refresh to force re-render.
  • AnsiOutput/ToolResultDisplay respect the toggle by removing height limits; MaxSizedBox hints updated with Ctrl+O
    guidance.
  • ToolGroupMessage reads outputFile contents and shows them in a bordered block when full output is on; otherwise
    shows the path with a prompt to toggle.
  • Test utilities and key matcher tests updated for the new command.

Related Issues

How to Validate

  • Run the CLI and trigger a command that produces truncated output saved to a file (e.g., a long shell or tool
    response).
  • While viewing the tool message, press Ctrl+O to toggle full output on: saved file contents should render inline with
    “Full Output” header; hidden-line hints should disappear.
  • Toggle Ctrl+O off: view returns to truncated mode with hidden-line hints and file path notice.
  • Confirm Markdown toggle still works independently and other key bindings remain unchanged.

Pre-Merge Checklist

  • [✓ ] Updated relevant documentation and README (if needed)
  • [ ✓] Added/updated tests (if needed)
  • [ ✓] Noted breaking changes (if any)
  • [ ✓] Validated on required platforms/methods:
    • MacOS
      • npm run
      • npx
      • Docker
      • Podman
      • Seatbelt
    • Windows
      • npm run
      • npx
      • Docker
    • [ ✓] Linux
      • [ ✓] npm run
      • npx
      • Docker

@B143KC47 B143KC47 requested a review from a team as a code owner December 10, 2025 15:34
@google-cla
Copy link

google-cla bot commented Dec 10, 2025

Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).

View this failed invocation of the CLA check for more information.

For the most up to date status, view the checks section at the bottom of the pull request.

@gemini-code-assist
Copy link
Contributor

Summary of Changes

Hello @B143KC47, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed!

This pull request significantly improves the user experience by allowing users to view the complete output of CLI tools directly within the terminal interface. By introducing a showFullOutput command (bound to Ctrl+O), it addresses the limitation of truncated outputs and provides a seamless way to access full logs and results that were previously saved to external files, enhancing debugging and information retrieval.

Highlights

  • New Command showFullOutput (Ctrl+O): Introduces a new command to toggle the display of complete tool outputs that were previously truncated or saved to disk.
  • Enhanced UI for Outputs: Adjusts rendering to remove height limits when full output is enabled and provides clear UI hints (e.g., "(Ctrl+O to show all)") where output was previously hidden.
  • Inline File Content Display: Enables tool messages to dynamically load and display the contents of saved output files directly within the UI when the showFullOutput command is active.
Using Gemini Code Assist

The full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips.

Invoking Gemini

You can request assistance from Gemini at any point by creating a comment using either /gemini <command> or @gemini-code-assist <command>. Below is a summary of the supported commands on the current page.

Feature Command Description
Code Review /gemini review Performs a code review for the current pull request in its current state.
Pull Request Summary /gemini summary Provides a summary of the current pull request in its current state.
Comment @gemini-code-assist Responds in comments when explicitly tagged, both in pull request comments and review comments.
Help /gemini help Displays a list of available commands.

Customization

To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a .gemini/ folder in the base of the repository. Detailed instructions can be found here.

Limitations & Feedback

Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for Github and other Google products, sign up here.

You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension.

Footnotes

  1. Review the Privacy Notices, Generative AI Prohibited Use Policy, Terms of Service, and learn how to configure Gemini Code Assist in GitHub here. Gemini can make mistakes, so double check it and use code with caution.

Copy link
Contributor

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request introduces a new showFullOutput command (Ctrl+O) that allows users to toggle the display of full tool outputs, which were previously truncated or saved to disk. The changes include updating keybindings, managing the new UI state in AppContainer, adjusting rendering logic in AnsiOutput and ToolResultDisplay to remove height limits when full output is enabled, and modifying ToolGroupMessage to load and display saved output files inline. Additionally, MaxSizedBox now provides a UI hint for the new command, and relevant test utilities have been updated. The implementation appears sound and directly addresses the described functionality.

@gemini-cli gemini-cli bot added status/need-issue Pull requests that need to have an associated issue. priority/p2 Important but can be addressed in a future release. area/core Issues related to User Interface, OS Support, Core Functionality and removed status/need-issue Pull requests that need to have an associated issue. labels Jan 7, 2026
@bdmorgan
Copy link
Collaborator

Hi @B143KC47, thank you so much for your contribution to Gemini CLI! We really appreciate the time and effort you've put into this.

We're making some updates to our contribution process to improve how we track and review changes. Please take a moment to review our recent discussion post: Improving Our Contribution Process & Introducing New Guidelines.

Key Update: Starting January 26, 2026, the Gemini CLI project will require all pull requests to be associated with an existing issue. Any pull requests not linked to an issue by that date will be automatically closed.

Thank you for your understanding and for being a part of our community!

@gemini-cli
Copy link
Contributor

gemini-cli bot commented Jan 24, 2026

Hi there! Thank you for your contribution to Gemini CLI.

To improve our contribution process and better track changes, we now require all pull requests to be associated with an existing issue, as announced in our recent discussion and as detailed in our CONTRIBUTING.md.

This pull request is being closed because it is not currently linked to an issue. You can easily reopen this PR once you have linked it to an issue.

How to link an issue:
Add a keyword followed by the issue number (e.g., Fixes #123) in the description of your pull request. For more details, see the GitHub Documentation.

Thank you for your understanding and for being a part of our community!

@gemini-cli gemini-cli bot closed this Jan 24, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/core Issues related to User Interface, OS Support, Core Functionality priority/p2 Important but can be addressed in a future release.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants