gemini-cli - ✅(Solved) Fix Gemini CLI crashes on an SQL INSERT (I think) in prompt [5 pull requests, 5 comments, 3 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#24898Fetched 2026-04-09 08:17:42
View on GitHub
Comments
5
Participants
3
Timeline
14
Reactions
0
Author
Timeline (top)
commented ×5mentioned ×3subscribed ×3labeled ×2

Error Message

│ Debug Console (F12 to close) │ │ │ │ ℹ Keychain initialization encountered an error: Cannot find module '../build/Release/keytar.node' │ │ Require stack: │ │ - /opt/homebrew/Cellar/gemini-cli/0.36.0/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: #282c34 │ │ │ │ ℹ Detected terminal name: ghostty 1.3.1 │ │ │ │ ℹ Enabling Kitty keyboard protocol │ │ ℹ Authenticated via "oauth-personal". │ │ ℹ │ │ ✖ ========================================= │ │ This is an unexpected error. Please file a bug report using the /bug tool. │ │ CRITICAL: Unhandled Promise Rejection! │ │ ========================================= │ │ Reason: Error: ENAMETOOLONG: name too long, lstat '/Users/theuser/code/cs-support-answer-api/provenexpert.com"] │ │ query: SELECT "Email"."id" AS "Email_id", "Email"."message_id" AS "Email_message_id", "Email"."conversation_id" AS │ │ "Email_conversation_id", "Email"."hubspot_message_id" AS "Email_hubspot_message_id", "Email"."hubspot_conversation_id" AS │ │ "Email_hubspot_conversation_id", "Email"."hubspot_contact_id" AS "Email_hubspot_contact_id", "Email"."sender_name" AS │ │ "Email_sender_name", "Email"."sender_email" AS "Email_sender_email", "Email"."recipient_name" AS "Email_recipient_name", │ │ "Email"."recipient_email" AS "Email_recipient_email", "Email"."subject" AS "Email_subject", "Email"."email_category" AS │ │ "Email_email_category", "Email"."received_datetime" AS "Email_received_datetime", "Email"."text" AS "Email_text", │ │ "Email"."created_at" AS "Email_created_at", "Email"."updated_at" AS "Email_updated_at" FROM "emails" "Email" WHERE │ │ (("Email"."message_id" = $1)) LIMIT 1 -- PARAMETERS: │ │ ["xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx │ │ QQ5dIdpHn0GyfAAD4qL1rAAA="] │ │ query: SELECT "Email"."id" AS "Email_id", "Email"."message_id" AS "Email_message_id", "Email"."conversation_id" AS │ │ "Email_conversation_id", "Email"."hubspot_message_id" AS "Email_hubspot_message_id", "Email"."hubspot_conversation_id" AS │ │ "Email_hubspot_conversation_id", "Email"."hubspot_contact_id" AS "Email_hubspot_contact_id", "Email"."sender_name" AS │ │ "Email_sender_name", "Email"."sender_email" AS "Email_sender_email", "Email"."recipient_name" AS "Email_recipient_name", │ │ "Email"."recipient_email" AS "Email_recipient_email", "Email"."subject" AS "Email_subject", "Email"."email_category" AS │ │ "Email_email_category", "Email"."received_datetime" AS "Email_received_datetime", "Email"."text" AS "Email_text", │ │ "Email"."created_at" AS "Email_created_at", "Email"."updated_at" AS "Email_updated_at" FROM "emails" "Email" WHERE │ │ (("Email"."message_id" = $1)) LIMIT 1 -- PARAMETERS: │ │ ["xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx │ │ QQ5dIdpHn0GyfAAD4qL1sAAA="] │ │ query: START TRANSACTION │ │ query: INSERT INTO "emails"("message_id", "conversation_id", "hubspot_message_id", "hubspot_conversation_id", │ │ "hubspot_contact_id", "sender_name", "sender_email", "recipient_name", "recipient_email", "subject", "email_category", │ │ "received_datetime", "text", "created_at", "updated_at") VALUES ($1, $2, DEFAULT, DEFAULT, DEFAULT, $3, $4, DEFAULT, $5, $6, │ │ DEFAULT, $7, $8, DEFAULT, DEFAULT) RETURNING "id", "created_at", "updated_at" -- PARAMETERS: │ │ ["xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx │ │ QQ5dIdpHn0GyfAAD4qL1sAAA=","AAQkADM5NjA1NTI5LTdkNmQtNDc2YS1hZmRmLWFkOTYxNjdkNWYyZgAQAPnj1mDiMd5FnspUU4dkWG4=","Liam' │ │ Stack trace: │ │ Error: ENAMETOOLONG: name too long, lstat '/Users/theuser/code/cs-support-answer-api/provenexpert.com"] │ │ query: SELECT "Email"."id" AS "Email_id", "Email"."message_id" AS "Email_message_id", "Email"."conversation_id" AS │ │ "Email_conversation_id", "Email"."hubspot_message_id" AS "Email_hubspot_message_id", "Email"."hubspot_conversation_id" AS │ │ "Email_hubspot_conversation_id", "Email"."hubspot_contact_id" AS "Email_hubspot_contact_id", "Email"."sender_name" AS │ │ "Email_sender_name", "Email"."sender_email" AS "Email_sender_email", "Email"."recipient_name" AS "Email_recipient_name", │ │ "Email"."recipient_email" AS "Email_recipient_email", "Email"."subject" AS "Email_subject", "Email"."email_category" AS │ │ "Email_email_category", "Email"."received_datetime" AS "Email_received_datetime", "Email"."text" AS "Email_text", │ │ "Email"."created_at" AS "Email_created_at", "Email"."updated_at" AS "Email_updated_at" FROM "emails" "Email" WHERE │ │ (("Email"."message_id" = $1)) LIMIT 1 -- PARAMETERS: │ │ ["xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx │ │ QQ5dIdpHn0GyfAAD4qL1rAAA="] │ │ query: SELECT "Email"."id" AS "Email_id", "Email"."message_id" AS "Email_message_id", "Email"."conversation_id" AS │ │ "Email_conversation_id", "Email"."hubspot_message_id" AS "Email_hubspot_message_id", "Email"."hubspot_conversation_id" AS │ │ "Email_hubspot_conversation_id", "Email"."hubspot_contact_id" AS "Email_hubspot_contact_id", "Email"."sender_name" AS │ │ "Email_sender_name", "Email"."sender_email" AS "Email_sender_email", "Email"."recipient_name" AS "Email_recipient_name", │ │ "Email"."recipient_email" AS "Email_recipient_email", "Email"."subject" AS "Email_subject", "Email"."email_category" AS │ │ "Email_email_category", "Email"."received_datetime" AS "Email_received_datetime", "Email"."text" AS "Email_text", │ │ "Email"."created_at" AS "Email_created_at", "Email"."updated_at" AS "Email_updated_at" FROM "emails" "Email" WHERE │ │ (("Email"."message_id" = $1)) LIMIT 1 -- PARAMETERS: │ │ ["xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx │ │ QQ5dIdpHn0GyfAAD4qL1sAAA="] │ │ query: START TRANSACTION │ │ query: INSERT INTO "emails"("message_id", "conversation_id", "hubspot_message_id", "hubspot_conversation_id", │ │ "hubspot_contact_id", "sender_name", "sender_email", "recipient_name", "recipient_email", "subject", "email_category", │ │ "received_datetime", "text", "created_at", "updated_at") VALUES ($1, $2, DEFAULT, DEFAULT, DEFAULT, $3, $4, DEFAULT, $5, $6, │ │ DEFAULT, $7, $8, DEFAULT, DEFAULT) RETURNING "id", "created_at", "updated_at" -- PARAMETERS: │ │ ["xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx │ │ QQ5dIdpHn0GyfAAD4qL1sAAA=","AAQkADM5NjA1NTI5LTdkNmQtNDc2YS1hZmRmLWFkOTYxNjdkNWYyZgAQAPnj1mDiMd5FnspUU4dkWG4=","Liam' │ │ at Module.realpathSync (node:fs:2775:29) │ │ at robustRealpath │ │ (file:///opt/homebrew/Cellar/gemini-cli/0.36.0/libexec/lib/node_modules/@google/gemini-cli/bundle/chunk-S2IQOR7T.js:41515:16) │ │ at resolveToRealPath │ │ (file:///opt/homebrew/Cellar/gemini-cli/0.36.0/libexec/lib/node_modules/@google/gemini-cli/bundle/chunk-S2IQOR7T.js:41506:10) │ │ at checkPermissions │ │ (file:///opt/homebrew/Cellar/gemini-cli/0.36.0/libexec/lib/node_modules/@google/gemini-cli/bundle/chunk-UNM3DGTG.js:73719:30) │ │ at │ │ file:///opt/homebrew/Cellar/gemini-cli/0.36.0/libexec/lib/node_modules/@google/gemini-cli/bundle/interactiveCli-VLQHRXHU.js:48053 │ │ :37 │ │ at │ │ file:///opt/homebrew/Cellar/gemini-cli/0.36.0/libexec/lib/node_modules/@google/gemini-cli/bundle/interactiveCli-VLQHRXHU.js:37652 │ │ :7 │ │ at Object.handleSubmit │ │ (file:///opt/homebrew/Cellar/gemini-cli/0.36.0/libexec/lib/node_modules/@google/gemini-cli/bundle/interactiveCli-VLQHRXHU.js:3516 │ │ 8:9) │ │ at │ │ file:///opt/homebrew/Cellar/gemini-cli/0.36.0/libexec/lib/node_modules/@google/gemini-cli/bundle/interactiveCli-VLQHRXHU.js:37701 │ │ :20 │ │ at │ │ file:///opt/homebrew/Cellar/gemini-cli/0.36.0/libexec/lib/node_modules/@google/gemini-cli/bundle/interactiveCli-VLQHRXHU.js:38216 │ │ :13 │ │ at │ │ file:///opt/homebrew/Cellar/gemini-cli/0.36.0/libexec/lib/node_modules/@google/gemini-cli/bundle/chunk-UNM3DGTG.js:64165:15 │

PR fix notes

PR #25009: fix: skip normalization for long strings to avoid ENAMETOOLONG crash

Description (problem / solution / changelog)

Summary

This PR fixes the ENAMETOOLONG crash reported in #24898.

Details

The issue occurs when a long prompt (like logs or code) is passed to the CLI. The path.normalize function in resolvePath.ts tries to process it as a file path, hitting OS limits.

I've added a check to skip normalization if the string length exceeds 1024 characters.

Related Issues

Fixes #24898 Fixes#25266

Changed files

  • packages/cli/src/utils/resolvePath.ts (modified, +9/-1)

PR #25190: Defense techniques fix

Description (problem / solution / changelog)

summary

RAG Defense: Added a validation sandbox to protect against malicious injections in RAG workflows.

Details

RAG Defense Implementation: Added a Validation Sandbox to filter retrieved context before it reaches the LLM. Implemented Sanitization Logic to detect and block prompt injection patterns within RAG workflows. Ensures that malicious data from external sources cannot compromise the system's integrity or leak sensitive data.

Related Issues

Fixes #25190

How to Validate

Unit Tests: Verified that strings exceeding max length are gracefully skipped during normalization. Sandbox Testing: Tested the RAG validation layer with known injection patterns to ensure they are correctly flagged. Regression: Confirmed that standard SQL INSERT operations still function correctly without performance degradation

Pre-Merge Checklist

  • 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/utils/resolvePath.ts (modified, +9/-0)
  • rag_defense_sandbox.py (added, +178/-0)

PR #25266: Fix harness crash

Description (problem / solution / changelog)

Summary

Details

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

Related Issues

Fixes #24898 Fixes#25009

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

Changed files

  • packages/cli/src/utils/resolvePath.ts (modified, +8/-1)

PR #25312: fix(core): handle ENAMETOOLONG gracefully

Description (problem / solution / changelog)

Fixes #24898 by catching ENAMETOOLONG when attempting to resolve extremely large strings as paths in robustRealpath.

Changed files

  • packages/core/src/utils/paths.ts (modified, +4/-2)

PR #25330: fix(core): handle ENAMETOOLONG gracefully in robustRealpath

Description (problem / solution / changelog)

Fixes #24898. Avoids a crash when massive SQL strings accidentally get processed as system paths.

Changed files

  • packages/core/src/utils/paths.ts (modified, +4/-2)

Code Example

Debug Console (F12 to close)│                                                                                                                                      │
│ ℹ  Keychain initialization encountered an error: Cannot find module '../build/Release/keytar.node'Require stack:- /opt/homebrew/Cellar/gemini-cli/0.36.0/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: #282c34                                                                                     │
│                                                                                                                                      │
│ ℹ  Detected terminal name: ghostty 1.3.1│                                                                                                                                      │
│ ℹ  Enabling Kitty keyboard protocol                                                                                                  │
│ ℹ  Authenticated via "oauth-personal".                                                                                               
│ ℹ                                                                                                                                    │
│ ✖  =========================================This is an unexpected error. Please file a bug report using the /bug tool.                                                        
CRITICAL: Unhandled Promise Rejection!=========================================Reason: Error: ENAMETOOLONG: name too long, lstat '/Users/theuser/code/cs-support-answer-api/provenexpert.com"]│    query: SELECT "Email"."id" AS "Email_id", "Email"."message_id" AS "Email_message_id", "Email"."conversation_id" AS"Email_conversation_id", "Email"."hubspot_message_id" AS "Email_hubspot_message_id", "Email"."hubspot_conversation_id" AS"Email_hubspot_conversation_id", "Email"."hubspot_contact_id" AS "Email_hubspot_contact_id", "Email"."sender_name" AS"Email_sender_name", "Email"."sender_email" AS "Email_sender_email", "Email"."recipient_name" AS "Email_recipient_name","Email"."recipient_email" AS "Email_recipient_email", "Email"."subject" AS "Email_subject", "Email"."email_category" AS"Email_email_category", "Email"."received_datetime" AS "Email_received_datetime", "Email"."text" AS "Email_text","Email"."created_at" AS "Email_created_at", "Email"."updated_at" AS "Email_updated_at" FROM "emails" "Email" WHERE    (("Email"."message_id" = $1)) LIMIT 1 -- PARAMETERS:["xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx │
QQ5dIdpHn0GyfAAD4qL1rAAA="]│    query: SELECT "Email"."id" AS "Email_id", "Email"."message_id" AS "Email_message_id", "Email"."conversation_id" AS"Email_conversation_id", "Email"."hubspot_message_id" AS "Email_hubspot_message_id", "Email"."hubspot_conversation_id" AS"Email_hubspot_conversation_id", "Email"."hubspot_contact_id" AS "Email_hubspot_contact_id", "Email"."sender_name" AS"Email_sender_name", "Email"."sender_email" AS "Email_sender_email", "Email"."recipient_name" AS "Email_recipient_name","Email"."recipient_email" AS "Email_recipient_email", "Email"."subject" AS "Email_subject", "Email"."email_category" AS"Email_email_category", "Email"."received_datetime" AS "Email_received_datetime", "Email"."text" AS "Email_text","Email"."created_at" AS "Email_created_at", "Email"."updated_at" AS "Email_updated_at" FROM "emails" "Email" WHERE    (("Email"."message_id" = $1)) LIMIT 1 -- PARAMETERS:["xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx │
QQ5dIdpHn0GyfAAD4qL1sAAA="]│    query: START TRANSACTION│    query: INSERT INTO "emails"("message_id", "conversation_id", "hubspot_message_id", "hubspot_conversation_id","hubspot_contact_id", "sender_name", "sender_email", "recipient_name", "recipient_email", "subject", "email_category","received_datetime", "text", "created_at", "updated_at") VALUES ($1, $2, DEFAULT, DEFAULT, DEFAULT, $3, $4, DEFAULT, $5, $6,DEFAULT, $7, $8, DEFAULT, DEFAULT) RETURNING "id", "created_at", "updated_at" -- PARAMETERS:["xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx │
QQ5dIdpHn0GyfAAD4qL1sAAA=","AAQkADM5NjA1NTI5LTdkNmQtNDc2YS1hZmRmLWFkOTYxNjdkNWYyZgAQAPnj1mDiMd5FnspUU4dkWG4=","Liam'              │
Stack trace:Error: ENAMETOOLONG: name too long, lstat '/Users/theuser/code/cs-support-answer-api/provenexpert.com"]│    query: SELECT "Email"."id" AS "Email_id", "Email"."message_id" AS "Email_message_id", "Email"."conversation_id" AS"Email_conversation_id", "Email"."hubspot_message_id" AS "Email_hubspot_message_id", "Email"."hubspot_conversation_id" AS"Email_hubspot_conversation_id", "Email"."hubspot_contact_id" AS "Email_hubspot_contact_id", "Email"."sender_name" AS"Email_sender_name", "Email"."sender_email" AS "Email_sender_email", "Email"."recipient_name" AS "Email_recipient_name","Email"."recipient_email" AS "Email_recipient_email", "Email"."subject" AS "Email_subject", "Email"."email_category" AS"Email_email_category", "Email"."received_datetime" AS "Email_received_datetime", "Email"."text" AS "Email_text","Email"."created_at" AS "Email_created_at", "Email"."updated_at" AS "Email_updated_at" FROM "emails" "Email" WHERE    (("Email"."message_id" = $1)) LIMIT 1 -- PARAMETERS:["xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx │
QQ5dIdpHn0GyfAAD4qL1rAAA="]│    query: SELECT "Email"."id" AS "Email_id", "Email"."message_id" AS "Email_message_id", "Email"."conversation_id" AS"Email_conversation_id", "Email"."hubspot_message_id" AS "Email_hubspot_message_id", "Email"."hubspot_conversation_id" AS"Email_hubspot_conversation_id", "Email"."hubspot_contact_id" AS "Email_hubspot_contact_id", "Email"."sender_name" AS"Email_sender_name", "Email"."sender_email" AS "Email_sender_email", "Email"."recipient_name" AS "Email_recipient_name","Email"."recipient_email" AS "Email_recipient_email", "Email"."subject" AS "Email_subject", "Email"."email_category" AS"Email_email_category", "Email"."received_datetime" AS "Email_received_datetime", "Email"."text" AS "Email_text","Email"."created_at" AS "Email_created_at", "Email"."updated_at" AS "Email_updated_at" FROM "emails" "Email" WHERE    (("Email"."message_id" = $1)) LIMIT 1 -- PARAMETERS:["xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx │
QQ5dIdpHn0GyfAAD4qL1sAAA="]│    query: START TRANSACTION│    query: INSERT INTO "emails"("message_id", "conversation_id", "hubspot_message_id", "hubspot_conversation_id","hubspot_contact_id", "sender_name", "sender_email", "recipient_name", "recipient_email", "subject", "email_category","received_datetime", "text", "created_at", "updated_at") VALUES ($1, $2, DEFAULT, DEFAULT, DEFAULT, $3, $4, DEFAULT, $5, $6,DEFAULT, $7, $8, DEFAULT, DEFAULT) RETURNING "id", "created_at", "updated_at" -- PARAMETERS:["xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx │
QQ5dIdpHn0GyfAAD4qL1sAAA=","AAQkADM5NjA1NTI5LTdkNmQtNDc2YS1hZmRmLWFkOTYxNjdkNWYyZgAQAPnj1mDiMd5FnspUU4dkWG4=","Liam'              │
│        at Module.realpathSync (node:fs:2775:29)│        at robustRealpath                                                                                                             │
    (file:///opt/homebrew/Cellar/gemini-cli/0.36.0/libexec/lib/node_modules/@google/gemini-cli/bundle/chunk-S2IQOR7T.js:41515:16)     │
│        at resolveToRealPath                                                                                                          │
    (file:///opt/homebrew/Cellar/gemini-cli/0.36.0/libexec/lib/node_modules/@google/gemini-cli/bundle/chunk-S2IQOR7T.js:41506:10)     │
│        at checkPermissions                                                                                                           │
    (file:///opt/homebrew/Cellar/gemini-cli/0.36.0/libexec/lib/node_modules/@google/gemini-cli/bundle/chunk-UNM3DGTG.js:73719:30)     │
│        at                                                                                                                            │
│    file:///opt/homebrew/Cellar/gemini-cli/0.36.0/libexec/lib/node_modules/@google/gemini-cli/bundle/interactiveCli-VLQHRXHU.js:48053 │
    :37│        at                                                                                                                            │
│    file:///opt/homebrew/Cellar/gemini-cli/0.36.0/libexec/lib/node_modules/@google/gemini-cli/bundle/interactiveCli-VLQHRXHU.js:37652 │
    :7│        at Object.handleSubmit    (file:///opt/homebrew/Cellar/gemini-cli/0.36.0/libexec/lib/node_modules/@google/gemini-cli/bundle/interactiveCli-VLQHRXHU.js:3516 │
8:9)│        at                                                                                                                            │
│    file:///opt/homebrew/Cellar/gemini-cli/0.36.0/libexec/lib/node_modules/@google/gemini-cli/bundle/interactiveCli-VLQHRXHU.js:37701 │
    :20│        at                                                                                                                            │
│    file:///opt/homebrew/Cellar/gemini-cli/0.36.0/libexec/lib/node_modules/@google/gemini-cli/bundle/interactiveCli-VLQHRXHU.js:38216 │
    :13│        at                                                                                                                            │
│    file:///opt/homebrew/Cellar/gemini-cli/0.36.0/libexec/lib/node_modules/@google/gemini-cli/bundle/chunk-UNM3DGTG.js:64165:15       │

---

[06:32:19] INFO: Nest application successfully started {"context":"NestApplication"}
query: SELECT "Email"."id" AS "Email_id", ... FROM "emails" "Email" WHERE (("Email"."recipient_email" = $1)) ORDER BY "Email"."received_datetime" DESC LIMIT 1 -- PARAMETERS: ["[email protected]"]
query: SELECT "Email"."id" AS "Email_id", ... FROM "emails" "Email" WHERE (("Email"."message_id" = $1)) LIMIT 1 -- PARAMETERS: ["MSG_ID_REDACTED_1"]
query: START TRANSACTION
query: INSERT INTO "emails"("message_id", "conversation_id", ..., "sender_name", "sender_email", "recipient_email", "subject", "text", ...) VALUES ($1, $2, ..., $3, $4, $5, $6, $7, $8, ...) RETURNING "id", "created_at", "updated_at" -- PARAMETERS: ["MSG_ID_REDACTED_1","CONV_ID_REDACTED_1","Sender Name","[email protected]","[email protected]","Re: Subject Placeholder","2026-04-08T06:27:30.000Z","<html><body>Anonymized Email Content: Opportunity for SEO optimization...</body></html>"]
query: COMMIT
query: SELECT "Email"."id" AS "Email_id", ... FROM "emails" "Email" WHERE (("Email"."recipient_email" = $1)) ORDER BY "Email"."received_datetime" DESC LIMIT 1 -- PARAMETERS: ["[email protected]"]
query: SELECT "Email"."id" AS "Email_id", ... FROM "emails" "Email" WHERE (("Email"."message_id" = $1)) LIMIT 1 -- PARAMETERS: ["MSG_ID_REDACTED_2"]
query: START TRANSACTION
query: INSERT INTO "emails"(...) VALUES (...) RETURNING "id", "created_at", "updated_at" -- PARAMETERS: ["MSG_ID_REDACTED_2","CONV_ID_REDACTED_2","info","[email protected]","[email protected]","[email protected]","Antw: Profile Completion","2026-04-08T06:30:38.000Z","Automated out-of-office reply content regarding holiday hours and maintenance."]
query: COMMIT
[06:32:30] INFO: Finished fetching from Graph API for user@example.com. Found 2 new emails since 2026-04-08T06:18:37.001Z. {"context":"MsGraphService"}
[06:32:30] INFO: [user@example.com] Found 2 emails. Saving new ones... {"context":"ExchangeCliService"}
[06:32:30] INFO: [user@example.com] Process complete. Saved: 1, Skipped (duplicates): 1. {"context":"ExchangeCliService"}
[06:32:30] INFO: Finished fetching from Graph API for support@company.co.uk. Found 2 new emails since 2026-04-08T06:05:12.001Z. {"context":"MsGraphService"}
[06:32:30] INFO: [support@company.co.uk] Found 2 emails. Saving new ones... {"context":"ExchangeCliService"}
[06:32:31] INFO: [support@company.co.uk] Process complete. Saved: 1, Skipped (duplicates): 1. {"context":"ExchangeCliService"}
query: SELECT "Email"."id" AS "Email_id", ... FROM "emails" "Email" WHERE (("Email"."recipient_email" = $1)) ORDER BY "Email"."received_datetime" DESC LIMIT 1 -- PARAMETERS: ["[email protected]"]
query: SELECT "Email"."id" AS "Email_id", ... FROM "emails" "Email" WHERE (("Email"."message_id" = $1)) LIMIT 1 -- PARAMETERS: ["MSG_ID_REDACTED_3"]
query: START TRANSACTION
query: INSERT INTO "emails"(...) VALUES (...) RETURNING "id", "created_at", "updated_at" -- PARAMETERS: ["MSG_ID_REDACTED_3","CONV_ID_REDACTED_3","Marketing Contact","[email protected]","[email protected]","Telemarketing Integration: Avoid burning appointments","2026-04-08T06:32:52.000Z","<html><body>Anonymized Newsletter Content regarding Telemarketing and CRM rules...</body></html>"]
query: COMMIT
[06:33:00] INFO: Finished fetching from Graph API for user@example.com. Found 2 new emails since 2026-04-08T06:27:30.001Z. {"context":"MsGraphService"}
[06:33:00] INFO: [user@example.com] Found 2 emails. Saving new ones... {"context":"ExchangeCliService"}
[06:33:00] INFO: [user@example.com] Process complete. Saved: 1, Skipped (duplicates): 1. {"context":"ExchangeCliService"}
[06:33:00] INFO: Finished fetching from Graph API for support@company.co.uk. Found 1 new emails since 2026-04-08T06:30:38.001Z. {"context":"MsGraphService"}
[06:33:00] INFO: [support@company.co.uk] Found 1 emails. Saving new ones... {"context":"ExchangeCliService"}
[06:33:00] INFO: [support@company.co.uk] Process complete. Saved: 0, Skipped (duplicates): 1. {"context":"ExchangeCliService"}
RAW_BUFFERClick to expand / collapse

What happened?

I used a prompt with a codeblock (three back-quotes ```) with a Nestjs app logs which contain DB_LOGGING=["query", "error","warn"]. I have an assumption that this SQL from logs could cause a crash. Here is the output from debug console:

│ Debug Console (F12 to close)                                                                                                         │
│                                                                                                                                      │
│ ℹ  Keychain initialization encountered an error: Cannot find module '../build/Release/keytar.node'                                   │
│    Require stack:                                                                                                                    │
│    - /opt/homebrew/Cellar/gemini-cli/0.36.0/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: #282c34                                                                                     │
│                                                                                                                                      │
│ ℹ  Detected terminal name: ghostty 1.3.1                                                                                             │
│                                                                                                                                      │
│ ℹ  Enabling Kitty keyboard protocol                                                                                                  │
│ ℹ  Authenticated via "oauth-personal".                                                                                               │
│ ℹ                                                                                                                                    │
│ ✖  =========================================                                                                                         │
│    This is an unexpected error. Please file a bug report using the /bug tool.                                                        │
│    CRITICAL: Unhandled Promise Rejection!                                                                                            │
│    =========================================                                                                                         │
│    Reason: Error: ENAMETOOLONG: name too long, lstat '/Users/theuser/code/cs-support-answer-api/provenexpert.com"]                   │
│    query: SELECT "Email"."id" AS "Email_id", "Email"."message_id" AS "Email_message_id", "Email"."conversation_id" AS                │
│    "Email_conversation_id", "Email"."hubspot_message_id" AS "Email_hubspot_message_id", "Email"."hubspot_conversation_id" AS         │
│    "Email_hubspot_conversation_id", "Email"."hubspot_contact_id" AS "Email_hubspot_contact_id", "Email"."sender_name" AS             │
│    "Email_sender_name", "Email"."sender_email" AS "Email_sender_email", "Email"."recipient_name" AS "Email_recipient_name",          │
│    "Email"."recipient_email" AS "Email_recipient_email", "Email"."subject" AS "Email_subject", "Email"."email_category" AS           │
│    "Email_email_category", "Email"."received_datetime" AS "Email_received_datetime", "Email"."text" AS "Email_text",                 │
│    "Email"."created_at" AS "Email_created_at", "Email"."updated_at" AS "Email_updated_at" FROM "emails" "Email" WHERE                │
│    (("Email"."message_id" = $1)) LIMIT 1 -- PARAMETERS:                                                                              │
│    ["xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx │
│    QQ5dIdpHn0GyfAAD4qL1rAAA="]                                                                                                       │
│    query: SELECT "Email"."id" AS "Email_id", "Email"."message_id" AS "Email_message_id", "Email"."conversation_id" AS                │
│    "Email_conversation_id", "Email"."hubspot_message_id" AS "Email_hubspot_message_id", "Email"."hubspot_conversation_id" AS         │
│    "Email_hubspot_conversation_id", "Email"."hubspot_contact_id" AS "Email_hubspot_contact_id", "Email"."sender_name" AS             │
│    "Email_sender_name", "Email"."sender_email" AS "Email_sender_email", "Email"."recipient_name" AS "Email_recipient_name",          │
│    "Email"."recipient_email" AS "Email_recipient_email", "Email"."subject" AS "Email_subject", "Email"."email_category" AS           │
│    "Email_email_category", "Email"."received_datetime" AS "Email_received_datetime", "Email"."text" AS "Email_text",                 │
│    "Email"."created_at" AS "Email_created_at", "Email"."updated_at" AS "Email_updated_at" FROM "emails" "Email" WHERE                │
│    (("Email"."message_id" = $1)) LIMIT 1 -- PARAMETERS:                                                                              │
│    ["xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx │
│    QQ5dIdpHn0GyfAAD4qL1sAAA="]                                                                                                       │
│    query: START TRANSACTION                                                                                                          │
│    query: INSERT INTO "emails"("message_id", "conversation_id", "hubspot_message_id", "hubspot_conversation_id",                     │
│    "hubspot_contact_id", "sender_name", "sender_email", "recipient_name", "recipient_email", "subject", "email_category",            │
│    "received_datetime", "text", "created_at", "updated_at") VALUES ($1, $2, DEFAULT, DEFAULT, DEFAULT, $3, $4, DEFAULT, $5, $6,      │
│    DEFAULT, $7, $8, DEFAULT, DEFAULT) RETURNING "id", "created_at", "updated_at" -- PARAMETERS:                                      │
│    ["xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx │
│    QQ5dIdpHn0GyfAAD4qL1sAAA=","AAQkADM5NjA1NTI5LTdkNmQtNDc2YS1hZmRmLWFkOTYxNjdkNWYyZgAQAPnj1mDiMd5FnspUU4dkWG4=","Liam'              │
│    Stack trace:                                                                                                                      │
│    Error: ENAMETOOLONG: name too long, lstat '/Users/theuser/code/cs-support-answer-api/provenexpert.com"]                           │
│    query: SELECT "Email"."id" AS "Email_id", "Email"."message_id" AS "Email_message_id", "Email"."conversation_id" AS                │
│    "Email_conversation_id", "Email"."hubspot_message_id" AS "Email_hubspot_message_id", "Email"."hubspot_conversation_id" AS         │
│    "Email_hubspot_conversation_id", "Email"."hubspot_contact_id" AS "Email_hubspot_contact_id", "Email"."sender_name" AS             │
│    "Email_sender_name", "Email"."sender_email" AS "Email_sender_email", "Email"."recipient_name" AS "Email_recipient_name",          │
│    "Email"."recipient_email" AS "Email_recipient_email", "Email"."subject" AS "Email_subject", "Email"."email_category" AS           │
│    "Email_email_category", "Email"."received_datetime" AS "Email_received_datetime", "Email"."text" AS "Email_text",                 │
│    "Email"."created_at" AS "Email_created_at", "Email"."updated_at" AS "Email_updated_at" FROM "emails" "Email" WHERE                │
│    (("Email"."message_id" = $1)) LIMIT 1 -- PARAMETERS:                                                                              │
│    ["xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx │
│    QQ5dIdpHn0GyfAAD4qL1rAAA="]                                                                                                       │
│    query: SELECT "Email"."id" AS "Email_id", "Email"."message_id" AS "Email_message_id", "Email"."conversation_id" AS                │
│    "Email_conversation_id", "Email"."hubspot_message_id" AS "Email_hubspot_message_id", "Email"."hubspot_conversation_id" AS         │
│    "Email_hubspot_conversation_id", "Email"."hubspot_contact_id" AS "Email_hubspot_contact_id", "Email"."sender_name" AS             │
│    "Email_sender_name", "Email"."sender_email" AS "Email_sender_email", "Email"."recipient_name" AS "Email_recipient_name",          │
│    "Email"."recipient_email" AS "Email_recipient_email", "Email"."subject" AS "Email_subject", "Email"."email_category" AS           │
│    "Email_email_category", "Email"."received_datetime" AS "Email_received_datetime", "Email"."text" AS "Email_text",                 │
│    "Email"."created_at" AS "Email_created_at", "Email"."updated_at" AS "Email_updated_at" FROM "emails" "Email" WHERE                │
│    (("Email"."message_id" = $1)) LIMIT 1 -- PARAMETERS:                                                                              │
│    ["xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx │
│    QQ5dIdpHn0GyfAAD4qL1sAAA="]                                                                                                       │
│    query: START TRANSACTION                                                                                                          │
│    query: INSERT INTO "emails"("message_id", "conversation_id", "hubspot_message_id", "hubspot_conversation_id",                     │
│    "hubspot_contact_id", "sender_name", "sender_email", "recipient_name", "recipient_email", "subject", "email_category",            │
│    "received_datetime", "text", "created_at", "updated_at") VALUES ($1, $2, DEFAULT, DEFAULT, DEFAULT, $3, $4, DEFAULT, $5, $6,      │
│    DEFAULT, $7, $8, DEFAULT, DEFAULT) RETURNING "id", "created_at", "updated_at" -- PARAMETERS:                                      │
│    ["xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx │
│    QQ5dIdpHn0GyfAAD4qL1sAAA=","AAQkADM5NjA1NTI5LTdkNmQtNDc2YS1hZmRmLWFkOTYxNjdkNWYyZgAQAPnj1mDiMd5FnspUU4dkWG4=","Liam'              │
│        at Module.realpathSync (node:fs:2775:29)                                                                                      │
│        at robustRealpath                                                                                                             │
│    (file:///opt/homebrew/Cellar/gemini-cli/0.36.0/libexec/lib/node_modules/@google/gemini-cli/bundle/chunk-S2IQOR7T.js:41515:16)     │
│        at resolveToRealPath                                                                                                          │
│    (file:///opt/homebrew/Cellar/gemini-cli/0.36.0/libexec/lib/node_modules/@google/gemini-cli/bundle/chunk-S2IQOR7T.js:41506:10)     │
│        at checkPermissions                                                                                                           │
│    (file:///opt/homebrew/Cellar/gemini-cli/0.36.0/libexec/lib/node_modules/@google/gemini-cli/bundle/chunk-UNM3DGTG.js:73719:30)     │
│        at                                                                                                                            │
│    file:///opt/homebrew/Cellar/gemini-cli/0.36.0/libexec/lib/node_modules/@google/gemini-cli/bundle/interactiveCli-VLQHRXHU.js:48053 │
│    :37                                                                                                                               │
│        at                                                                                                                            │
│    file:///opt/homebrew/Cellar/gemini-cli/0.36.0/libexec/lib/node_modules/@google/gemini-cli/bundle/interactiveCli-VLQHRXHU.js:37652 │
│    :7                                                                                                                                │
│        at Object.handleSubmit                                                                                                        │
│    (file:///opt/homebrew/Cellar/gemini-cli/0.36.0/libexec/lib/node_modules/@google/gemini-cli/bundle/interactiveCli-VLQHRXHU.js:3516 │
│    8:9)                                                                                                                              │
│        at                                                                                                                            │
│    file:///opt/homebrew/Cellar/gemini-cli/0.36.0/libexec/lib/node_modules/@google/gemini-cli/bundle/interactiveCli-VLQHRXHU.js:37701 │
│    :20                                                                                                                               │
│        at                                                                                                                            │
│    file:///opt/homebrew/Cellar/gemini-cli/0.36.0/libexec/lib/node_modules/@google/gemini-cli/bundle/interactiveCli-VLQHRXHU.js:38216 │
│    :13                                                                                                                               │
│        at                                                                                                                            │
│    file:///opt/homebrew/Cellar/gemini-cli/0.36.0/libexec/lib/node_modules/@google/gemini-cli/bundle/chunk-UNM3DGTG.js:64165:15       │

And here's anonymized prompt:

[06:32:19] INFO: Nest application successfully started {"context":"NestApplication"}
query: SELECT "Email"."id" AS "Email_id", ... FROM "emails" "Email" WHERE (("Email"."recipient_email" = $1)) ORDER BY "Email"."received_datetime" DESC LIMIT 1 -- PARAMETERS: ["[email protected]"]
query: SELECT "Email"."id" AS "Email_id", ... FROM "emails" "Email" WHERE (("Email"."message_id" = $1)) LIMIT 1 -- PARAMETERS: ["MSG_ID_REDACTED_1"]
query: START TRANSACTION
query: INSERT INTO "emails"("message_id", "conversation_id", ..., "sender_name", "sender_email", "recipient_email", "subject", "text", ...) VALUES ($1, $2, ..., $3, $4, $5, $6, $7, $8, ...) RETURNING "id", "created_at", "updated_at" -- PARAMETERS: ["MSG_ID_REDACTED_1","CONV_ID_REDACTED_1","Sender Name","[email protected]","[email protected]","Re: Subject Placeholder","2026-04-08T06:27:30.000Z","<html><body>Anonymized Email Content: Opportunity for SEO optimization...</body></html>"]
query: COMMIT
query: SELECT "Email"."id" AS "Email_id", ... FROM "emails" "Email" WHERE (("Email"."recipient_email" = $1)) ORDER BY "Email"."received_datetime" DESC LIMIT 1 -- PARAMETERS: ["[email protected]"]
query: SELECT "Email"."id" AS "Email_id", ... FROM "emails" "Email" WHERE (("Email"."message_id" = $1)) LIMIT 1 -- PARAMETERS: ["MSG_ID_REDACTED_2"]
query: START TRANSACTION
query: INSERT INTO "emails"(...) VALUES (...) RETURNING "id", "created_at", "updated_at" -- PARAMETERS: ["MSG_ID_REDACTED_2","CONV_ID_REDACTED_2","info","[email protected]","[email protected]","[email protected]","Antw: Profile Completion","2026-04-08T06:30:38.000Z","Automated out-of-office reply content regarding holiday hours and maintenance."]
query: COMMIT
[06:32:30] INFO: Finished fetching from Graph API for [email protected]. Found 2 new emails since 2026-04-08T06:18:37.001Z. {"context":"MsGraphService"}
[06:32:30] INFO: [[email protected]] Found 2 emails. Saving new ones... {"context":"ExchangeCliService"}
[06:32:30] INFO: [[email protected]] Process complete. Saved: 1, Skipped (duplicates): 1. {"context":"ExchangeCliService"}
[06:32:30] INFO: Finished fetching from Graph API for [email protected]. Found 2 new emails since 2026-04-08T06:05:12.001Z. {"context":"MsGraphService"}
[06:32:30] INFO: [[email protected]] Found 2 emails. Saving new ones... {"context":"ExchangeCliService"}
[06:32:31] INFO: [[email protected]] Process complete. Saved: 1, Skipped (duplicates): 1. {"context":"ExchangeCliService"}
query: SELECT "Email"."id" AS "Email_id", ... FROM "emails" "Email" WHERE (("Email"."recipient_email" = $1)) ORDER BY "Email"."received_datetime" DESC LIMIT 1 -- PARAMETERS: ["[email protected]"]
query: SELECT "Email"."id" AS "Email_id", ... FROM "emails" "Email" WHERE (("Email"."message_id" = $1)) LIMIT 1 -- PARAMETERS: ["MSG_ID_REDACTED_3"]
query: START TRANSACTION
query: INSERT INTO "emails"(...) VALUES (...) RETURNING "id", "created_at", "updated_at" -- PARAMETERS: ["MSG_ID_REDACTED_3","CONV_ID_REDACTED_3","Marketing Contact","[email protected]","[email protected]","Telemarketing Integration: Avoid burning appointments","2026-04-08T06:32:52.000Z","<html><body>Anonymized Newsletter Content regarding Telemarketing and CRM rules...</body></html>"]
query: COMMIT
[06:33:00] INFO: Finished fetching from Graph API for [email protected]. Found 2 new emails since 2026-04-08T06:27:30.001Z. {"context":"MsGraphService"}
[06:33:00] INFO: [[email protected]] Found 2 emails. Saving new ones... {"context":"ExchangeCliService"}
[06:33:00] INFO: [[email protected]] Process complete. Saved: 1, Skipped (duplicates): 1. {"context":"ExchangeCliService"}
[06:33:00] INFO: Finished fetching from Graph API for [email protected]. Found 1 new emails since 2026-04-08T06:30:38.001Z. {"context":"MsGraphService"}
[06:33:00] INFO: [[email protected]] Found 1 emails. Saving new ones... {"context":"ExchangeCliService"}
[06:33:00] INFO: [[email protected]] Process complete. Saved: 0, Skipped (duplicates): 1. {"context":"ExchangeCliService"}

What did you expect to happen?

A properly parsed prompt that catches my request regarding these logs.

Client information

  • CLI Version: 0.36.0
  • Git Commit: 8b1e649c2
  • Session ID: 4aa443f4-9908-47bd-ab60-61b568ce88b7
  • Operating System: darwin v24.14.0
  • Sandbox Environment: no sandbox
  • Model Version: gemini-3-flash-preview
  • Auth Type: oauth-personal
  • Memory Usage: 101.7 MB
  • Terminal Name: ghostty 1.3.1
  • Terminal Background: #282c34
  • Kitty Keyboard Protocol: Supported

Login information

Logged-in via web browser, not API key.

Anything else we need to know?

Using Ghostty terminal.

extent analysis

TL;DR

The issue is likely caused by a file path being too long, resulting in an ENAMETOOLONG error, and can be mitigated by shortening the path or increasing the maximum allowed path length.

Guidance

  • Check the file path /Users/theuser/code/cs-support-answer-api/provenexpert.com and verify that it is not too long.
  • Consider shortening the path or increasing the maximum allowed path length to resolve the issue.
  • Review the stack trace to identify the specific line of code that is causing the error, which appears to be related to the Module.realpathSync function.
  • Ensure that the gemini-cli version `

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