gemini-cli - ✅(Solved) Fix [bug] "/cleat (new)" not work [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#25800Fetched 2026-04-23 07:45:05
View on GitHub
Comments
0
Participants
1
Timeline
7
Reactions
0
Author
Participants
Timeline (top)
labeled ×2closed ×1cross-referenced ×1mentioned ×1

Fix Action

Fixed

PR fix notes

PR #25801: fix(cli): fix "/clear (new)" command

Description (problem / solution / changelog)

Summary

Aliases should not affect the behavior of the original command @jacob314

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

Details

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

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 https://github.com/google-gemini/gemini-cli/issues/25800

How to Validate

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

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
    • [x ] Windows
      • [ x] npm run
      • npx
      • Docker
    • [ x] Linux
      • [ x] npm run
      • npx
      • Docker

Changed files

  • packages/cli/src/ui/commands/clearCommand.ts (modified, +1/-1)

Code Example

> /about
# paste output here
RAW_BUFFERClick to expand / collapse

What happened?

bad: /clear (new)

good: /clear

What did you expect to happen?

@jacob314 Restore the original ‘clear’ command behavior https://github.com/google-gemini/gemini-cli/pull/25801

Client information

<details> <summary>Client Information</summary>

Run gemini to enter the interactive CLI, then run the /about command.

> /about
# paste output here
</details>

Login information

No response

Anything else we need to know?

No response

extent analysis

TL;DR

Remove the (new) suffix from the /clear command to restore the original behavior.

Guidance

  • The issue seems to be related to a change in the /clear command, where adding (new) causes unexpected behavior.
  • To verify, try running the command with and without the (new) suffix and compare the results.
  • Check the pull request mentioned (https://github.com/google-gemini/gemini-cli/pull/25801) for more information on the intended behavior of the /clear command.
  • If the issue persists, provide the output of the /about command as requested in the client information section for further assistance.

Notes

The provided information does not include technical details about the implementation or the expected behavior of the /clear command, so the guidance is based solely on the information given in the issue.

Recommendation

Apply workaround: Remove the (new) suffix from the /clear command, as it seems to be the cause of the unexpected behavior.

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