gemini-cli - ✅(Solved) Fix Insufficient padding around user messages with NO_COLOR [1 pull requests, 1 participants]

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…
GitHub stats
google-gemini/gemini-cli#25879Fetched 2026-04-24 06:13:37
View on GitHub
Comments
0
Participants
1
Timeline
7
Reactions
0
Author
Participants
Assignees
Timeline (top)
added_to_project_v2 ×1assigned ×1closed ×1cross-referenced ×1

Fix Action

Fixed

PR fix notes

PR #25880: fix(ui): corrected background color check in user message components

Description (problem / solution / changelog)

Summary

<!-- Concisely describe what this PR changes and why. Focus on impact and urgency. -->

Fixed check for background color in user message components, correctly adding padding around them in the process.

Details

<!-- Add any extra context and design decisions. Keep it brief but complete. -->

Fixed

  • packages/cli/src/ui/components/messages/HintMessage.tsx
  • packages/cli/src/ui/components/messages/UserMessage.tsx
  • packages/cli/src/ui/components/messages/UserShellMessage.tsx

Related Issues

<!-- Use keywords to auto-close issues (Closes #123, Fixes #456). If this PR is only related to an issue or is a partial fix, simply reference the issue number without a keyword (Related to #123). -->

Fixes #25879

How to Validate

<!-- List exact steps for reviewers to validate the change. Include commands, expected results, and edge cases. -->

Start the CLI after typing export NO_COLOR=true in the terminal. After asking multiple commands, there should be space around the user messages in the history. Typing a shell command like ! ls should also have padding.

Screenshot: <img width="937" height="518" alt="Screenshot 2026-04-23 at 2 38 23 PM" src="https://github.com/user-attachments/assets/9fa3088a-32c6-4373-84d8-636ae892d179" />

Pre-Merge Checklist

<!-- Check all that apply before requesting review or merging. -->
  • 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

Changed files

  • packages/cli/src/ui/components/messages/HintMessage.test.tsx (added, +56/-0)
  • packages/cli/src/ui/components/messages/HintMessage.tsx (modified, +3/-1)
  • packages/cli/src/ui/components/messages/UserMessage.test.tsx (modified, +34/-0)
  • packages/cli/src/ui/components/messages/UserMessage.tsx (modified, +3/-1)
  • packages/cli/src/ui/components/messages/UserShellMessage.test.tsx (added, +54/-0)
  • packages/cli/src/ui/components/messages/UserShellMessage.tsx (modified, +3/-1)
  • packages/cli/src/ui/components/messages/__snapshots__/HintMessage.test.tsx.snap (added, +7/-0)
  • packages/cli/src/ui/components/messages/__snapshots__/UserMessage.test.tsx.snap (modified, +6/-0)
  • packages/cli/src/ui/components/messages/__snapshots__/UserShellMessage.test.tsx.snap (added, +7/-0)
RAW_BUFFERClick to expand / collapse
<img width="1322" height="1454" alt="Image" src="https://github.com/user-attachments/assets/8f6f153d-480d-4667-b841-74fd60cbe55d" />

extent analysis

TL;DR

The issue cannot be resolved without more information, but checking the image for relevant error details or clues may provide a starting point.

Guidance

  • Review the provided image for any visible error messages, stack traces, or other diagnostic information that could indicate the cause of the issue.
  • Consider providing more context or details about the issue, such as the code or system configuration involved, to help narrow down potential causes.
  • If the image is related to a specific UI or visual issue, check for any recent changes to the frontend code or styling that could be contributing to the problem.

Notes

The lack of textual information in the issue body limits the ability to provide a more specific solution or guidance.

Recommendation

Apply workaround: Provide more context or details about the issue to help troubleshoot and resolve the problem.

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING