Skip to content

feat(ui): add 'ctrl+o' hint to truncated content message#20529

Merged
jerop merged 3 commits intomainfrom
ui/add-ctrl-o-hint
Feb 27, 2026
Merged

feat(ui): add 'ctrl+o' hint to truncated content message#20529
jerop merged 3 commits intomainfrom
ui/add-ctrl-o-hint

Conversation

@jerop
Copy link
Contributor

@jerop jerop commented Feb 27, 2026

Informs users that they can expand and collapse blocks of content using the 'ctrl+o' shortcut when content is hidden due to height constraints.

Fixes #20377

image

@jerop jerop requested a review from a team as a code owner February 27, 2026 03:22
@gemini-code-assist
Copy link
Contributor

Summary of Changes

Hello, 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 enhances the user experience by integrating a helpful 'ctrl+o' shortcut hint directly into messages indicating truncated content. This change ensures that users are immediately aware of how to expand and collapse hidden information, improving discoverability and interaction with the UI.

Highlights

  • User Interface Enhancement: Implemented a 'ctrl+o' hint within truncated content messages to guide users on how to expand and collapse hidden blocks.
  • Bug Fix: Addressed issue [UI] Move ctrl+o hint to line showing hidden lines count #20377 by providing clear instructions for interacting with height-constrained content.
Changelog
  • packages/cli/src/ui/components/snapshots/ExitPlanModeDialog.test.tsx.snap
    • Updated snapshot to include the 'ctrl+o to show' hint in truncated content messages.
  • packages/cli/src/ui/components/snapshots/HistoryItemDisplay.test.tsx.snap
    • Updated snapshots to include the 'ctrl+o to show' hint in truncated content messages for history items.
  • packages/cli/src/ui/components/snapshots/MainContent.test.tsx.snap
    • Updated snapshot to include the 'ctrl+o to show' hint in truncated content messages within the main content display.
  • packages/cli/src/ui/components/snapshots/ToolConfirmationQueue.test.tsx.snap
    • Updated snapshots to include the 'ctrl+o to show' hint in truncated content messages within the tool confirmation queue.
  • packages/cli/src/ui/components/messages/ToolOverflowConsistencyChecks.test.tsx
    • Updated test assertion to expect the new 'ctrl+o to show' hint in truncated content messages.
  • packages/cli/src/ui/components/messages/snapshots/DiffRenderer.test.tsx.snap
    • Updated snapshots to include the 'ctrl+o to show' hint in truncated diff content messages, handling both full and truncated hint displays.
  • packages/cli/src/ui/components/messages/snapshots/ToolResultDisplay.test.tsx.snap
    • Updated snapshot to include the 'ctrl+o to show' hint in truncated tool result display messages.
  • packages/cli/src/ui/components/shared/MaxSizedBox.test.tsx
    • Updated test assertions to expect the new 'ctrl+o to show' hint in various truncation scenarios.
  • packages/cli/src/ui/components/shared/MaxSizedBox.tsx
    • Modified the MaxSizedBox component to append '(ctrl+o to show)' to the truncated content message.
  • packages/cli/src/ui/components/shared/snapshots/MaxSizedBox.test.tsx.snap
    • Updated snapshots to reflect the addition of the 'ctrl+o to show' hint in truncated content messages for MaxSizedBox component.
Activity
  • No specific activity (comments, reviews, progress) was provided in the context.
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 successfully implements the feature to add a 'ctrl+o' hint to truncated content messages, improving user experience by clearly indicating how to expand hidden content. The changes are consistent across the UI components and their corresponding snapshots, ensuring the new functionality is correctly reflected and tested. All modifications are directly related to the stated objective and appear to be correct.

@jerop jerop enabled auto-merge February 27, 2026 03:25
@github-actions
Copy link

github-actions bot commented Feb 27, 2026

Size Change: +163 B (0%)

Total Size: 25.7 MB

ℹ️ View Unchanged
Filename Size Change
./bundle/gemini.js 25.2 MB +163 B (0%)
./bundle/node_modules/@google/gemini-cli-devtools/dist/client/main.js 221 kB 0 B
./bundle/node_modules/@google/gemini-cli-devtools/dist/src/_client-assets.js 227 kB 0 B
./bundle/node_modules/@google/gemini-cli-devtools/dist/src/index.js 11.5 kB 0 B
./bundle/node_modules/@google/gemini-cli-devtools/dist/src/types.js 132 B 0 B
./bundle/sandbox-macos-permissive-open.sb 890 B 0 B
./bundle/sandbox-macos-permissive-proxied.sb 1.31 kB 0 B
./bundle/sandbox-macos-restrictive-open.sb 3.36 kB 0 B
./bundle/sandbox-macos-restrictive-proxied.sb 3.56 kB 0 B
./bundle/sandbox-macos-strict-open.sb 4.82 kB 0 B
./bundle/sandbox-macos-strict-proxied.sb 5.02 kB 0 B

compressed-size-action

@gemini-cli gemini-cli bot added area/core Issues related to User Interface, OS Support, Core Functionality 🔒 maintainer only ⛔ Do not contribute. Internal roadmap item. labels Feb 27, 2026
@jerop jerop force-pushed the ui/add-ctrl-o-hint branch from b349a38 to e2eea0a Compare February 27, 2026 14:15
Informs users that they can expand and collapse blocks of content using the 'ctrl+o' shortcut when content is hidden due to height constraints.
@jerop jerop force-pushed the ui/add-ctrl-o-hint branch from e2eea0a to 56d08ce Compare February 27, 2026 14:17
@jerop jerop requested a review from Adib234 February 27, 2026 14:17
@jerop jerop added this pull request to the merge queue Feb 27, 2026
Merged via the queue into main with commit 66b8922 Feb 27, 2026
27 checks passed
@jerop jerop deleted the ui/add-ctrl-o-hint branch February 27, 2026 15:15
@jerop jerop added the release/patch-to-preview PR needs to be patch to preview release label Feb 27, 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 🔒 maintainer only ⛔ Do not contribute. Internal roadmap item. release/patch-to-preview PR needs to be patch to preview release

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[UI] Move ctrl+o hint to line showing hidden lines count

2 participants