gemini-cli - 💡(How to fix) Fix Screen went blank and non-responsive.

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…

Error Message

│ This is an unexpected error. Please file a bug report using the /bug tool. │

RAW_BUFFERClick to expand / collapse

What happened?

Debug Console (F12 to close) │ │ │ │ ℹ Loaded cached credentials. │ │ │ │ ℹ Detected terminal background color: #ffffff │ │ │ │ ⚠ [STARTUP] Phase 'load_builtin_commands' was started but never ended. Skipping metrics. │ │ ℹ │ │ ℹ Authenticated via "oauth-personal". │ │ ✖ ========================================= │ │ This is an unexpected error. Please file a bug report using the /bug tool. │ │ CRITICAL: Unhandled Promise Rejection! │ │ ========================================= │ │ Reason: RangeError: Invalid count value: -1 │ │ Stack trace: │ │ RangeError: Invalid count value: -1 │ │ at String.repeat (<anonymous>) │ │ at renderBorder (file:///opt/homebrew/lib/node_modules/@google/gemini-cli/bundle/chunk-AQRXALHQ.js:37307:89) │ │ at handleContainerNode (file:///opt/homebrew/lib/node_modules/@google/gemini-cli/bundle/chunk-AQRXALHQ.js:37360:5) │ │ at renderNodeToOutput (file:///opt/homebrew/lib/node_modules/@google/gemini-cli/bundle/chunk-AQRXALHQ.js:37784:5) │ │ at handleContainerNode (file:///opt/homebrew/lib/node_modules/@google/gemini-cli/bundle/chunk-AQRXALHQ.js:37469:9) │ │ at renderNodeToOutput (file:///opt/homebrew/lib/node_modules/@google/gemini-cli/bundle/chunk-AQRXALHQ.js:37784:5) │ │ at handleContainerNode (file:///opt/homebrew/lib/node_modules/@google/gemini-cli/bundle/chunk-AQRXALHQ.js:37469:9) │ │ at renderNodeToOutput (file:///opt/homebrew/lib/node_modules/@google/gemini-cli/bundle/chunk-AQRXALHQ.js:37784:5) │ │ at handleContainerNode (file:///opt/homebrew/lib/node_modules/@google/gemini-cli/bundle/chunk-AQRXALHQ.js:37469:9) │ │ at renderNodeToOutput (file:///opt/homebrew/lib/node_modules/@google/gemini-cli/bundle/chunk-AQRXALHQ.js:37784:5)

[ACTION REQUIRED] 📎 PLEASE ATTACH THE EXPORTED CHAT HISTORY JSON FILE TO THIS ISSUE IF YOU FEEL COMFORTABLE SHARING IT.

What did you expect to happen?

I don't feel comfortable sharing the json for this on GitHub

Client information

  • CLI Version: 0.38.2
  • Git Commit: b0ed611a0
  • Session ID: a9abc879-d35e-4db1-acdc-fe6a1c994267
  • Operating System: darwin v25.9.0
  • Sandbox Environment: no sandbox
  • Model Version: auto-gemini-3
  • Auth Type: oauth-personal
  • Memory Usage: 490.3 MB
  • Terminal Name: Unknown
  • Terminal Background: #ffffff
  • Kitty Keyboard Protocol: Unsupported

Login information

No response

Anything else we need to know?

No response

extent analysis

TL;DR

The issue is likely caused by an invalid count value in the String.repeat function, which can be fixed by updating the code to handle negative count values.

Guidance

  • The error message indicates a RangeError: Invalid count value: -1 at String.repeat, suggesting that the code is attempting to repeat a string with a negative count.
  • To fix this, the code should be updated to handle negative count values, potentially by adding a check to ensure the count is a non-negative integer.
  • The issue is occurring in the renderBorder function at line 37307 of the chunk-AQRXALHQ.js file, which may need to be modified to handle this case.
  • To verify the fix, run the application again and check for the presence of the error message.

Example

// Before
const repeatedString = someString.repeat(count);

// After
const repeatedString = count >= 0 ? someString.repeat(count) : '';

Notes

The provided information does not include the exact code changes required to fix the issue, so the above example is a general suggestion.

Recommendation

Apply workaround: The code should be updated to handle negative count values to prevent the RangeError.

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

gemini-cli - 💡(How to fix) Fix Screen went blank and non-responsive.