Skip to content

fix(ui): Truncate long loading text#9768

Merged
SandyTao520 merged 1 commit into
mainfrom
st/wrap-thought
Sep 25, 2025
Merged

fix(ui): Truncate long loading text#9768
SandyTao520 merged 1 commit into
mainfrom
st/wrap-thought

Conversation

@SandyTao520

Copy link
Copy Markdown
Contributor

TLDR

This pull request updates the LoadingIndicator component to truncate long loading phrases instead of wrapping them. This prevents the UI from shifting or expanding when a long loading message is displayed, ensuring a more stable and visually consistent layout.

Dive Deeper

Previously, if a long string was provided to the currentLoadingPhrase prop in the LoadingIndicator, the text would wrap to a new line. This could cause the entire terminal UI to reflow, which is a jarring user experience.

This change applies the wrap="truncate-end" property to the Text component responsible for rendering the primary loading message. Now, any text that exceeds the available width will be cleanly truncated with an ellipsis at the end, maintaining the single-line integrity of the loading indicator.

Reviewer Test Plan

Hard to repro.

Testing Matrix

🍏 🪟 🐧
npm run
npx
Docker
Podman - -
Seatbelt - -

Linked issues / bugs

@SandyTao520 SandyTao520 marked this pull request as ready for review September 25, 2025 18:12
@SandyTao520 SandyTao520 requested a review from a team as a code owner September 25, 2025 18:12
@github-actions

Copy link
Copy Markdown

Size Change: +20 B (0%)

Total Size: 17.4 MB

ℹ️ View Unchanged
Filename Size Change
./bundle/gemini.js 17.4 MB +20 B (0%)
./bundle/sandbox-macos-permissive-closed.sb 1.03 kB 0 B
./bundle/sandbox-macos-permissive-open.sb 830 B 0 B
./bundle/sandbox-macos-permissive-proxied.sb 1.31 kB 0 B
./bundle/sandbox-macos-restrictive-closed.sb 3.29 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

compressed-size-action

@jacob314 jacob314 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

lgtm

Tested locally and it looks good

@SandyTao520 SandyTao520 added this pull request to the merge queue Sep 25, 2025
Merged via the queue into main with commit d2d9ae3 Sep 25, 2025
17 of 19 checks passed
@SandyTao520 SandyTao520 deleted the st/wrap-thought branch September 25, 2025 18:37
geoffdowns pushed a commit to geoffdowns/gemini-cli that referenced this pull request Sep 26, 2025
jkcinouye pushed a commit that referenced this pull request Sep 29, 2025
thacio added a commit to thacio/auditaria that referenced this pull request Oct 4, 2025
giraffe-tree pushed a commit to giraffe-tree/gemini-cli that referenced this pull request Oct 10, 2025
cocosheng-g pushed a commit that referenced this pull request May 6, 2026
@sripasg sripasg added the size/s A small PR label Jun 2, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size/s A small PR

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants