Skip to content

RangeError: Invalid count value: -1 #25665

@zagers

Description

@zagers

What happened?

Keychain initialization encountered an error: Cannot find module '../build/Release/keytar.node' │
│ Require stack: │
│ - /opt/homebrew/Cellar/gemini-cli/0.38.2/libexec/lib/node_modules/@google/gemini-cli/node_modules/keytar/lib/keytar.js │
│ │
│ ℹ Using FileKeychain fallback for secure storage. │
│ │
│ ℹ Loaded cached credentials. │
│ │
│ ℹ Detected terminal background color: #ffffff │
│ │
│ ℹ Loading extension: superpowers │
│ ℹ Scheduling MCP context refresh... │
│ ℹ Executing MCP context refresh... │
│ ⚠ [STARTUP] Cannot start phase 'load_builtin_commands': phase is already active. Call end() before starting again. │
│ ⚠ [STARTUP] Phase 'load_builtin_commands' was started but never ended. Skipping metrics. │
│ ℹ MCP context refresh complete. │
│ ℹ 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 () │
│ at renderBorder (file:///opt/homebrew/Cellar/gemini-cli/0.38.2/libexec/lib/node_modules/@google/gemini-cli/bundle/chunk-AQRXALHQ.js:37307:89) │
│ at handleContainerNode (file:///opt/homebrew/Cellar/gemini-cli/0.38.2/libexec/lib/node_modules/@google/gemini-cli/bundle/chunk-AQRXALHQ.js:37360:5) │
│ at renderNodeToOutput (file:///opt/homebrew/Cellar/gemini-cli/0.38.2/libexec/lib/node_modules/@google/gemini-cli/bundle/chunk-AQRXALHQ.js:37784:5) │
│ at handleContainerNode (file:///opt/homebrew/Cellar/gemini-cli/0.38.2/libexec/lib/node_modules/@google/gemini-cli/bundle/chunk-AQRXALHQ.js:37469:9) │
│ at renderNodeToOutput (file:///opt/homebrew/Cellar/gemini-cli/0.38.2/libexec/lib/node_modules/@google/gemini-cli/bundle/chunk-AQRXALHQ.js:37784:5) │
│ at handleContainerNode (file:///opt/homebrew/Cellar/gemini-cli/0.38.2/libexec/lib/node_modules/@google/gemini-cli/bundle/chunk-AQRXALHQ.js:37469:9) │
│ at renderNodeToOutput (file:///opt/homebrew/Cellar/gemini-cli/0.38.2/libexec/lib/node_modules/@google/gemini-cli/bundle/chunk-AQRXALHQ.js:37784:5) │
│ at handleContainerNode (file:///opt/homebrew/Cellar/gemini-cli/0.38.2/libexec/lib/node_modules/@google/gemini-cli/bundle/chunk-AQRXALHQ.js:37469:9) │
│ at renderNodeToOutput (file:///opt/homebrew/Cellar/gemini-cli/0.38.2/libexec/lib/node_modules/@google/gemini-cli/bundle/chunk-AQRXALHQ.js:37784:5) (x25)

What did you expect to happen?

expected no error

Client information

  • CLI Version: 0.38.2
  • Git Commit: b0ed611
  • Session ID: 3b9a329b-8664-4515-b537-ca1c547e8118
  • Operating System: darwin v25.9.0
  • Sandbox Environment: no sandbox
  • Model Version: auto-gemini-3
  • Auth Type: oauth-personal
  • Memory Usage: 352.8 MB
  • Terminal Name: Unknown
  • Terminal Background: #ffffff
  • Kitty Keyboard Protocol: Unsupported

Login information

Google account

Anything else we need to know?

No response

Metadata

Metadata

Assignees

Labels

Type

No fields configured for Bug.

Projects

Status

Closed

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions