What happened?
The CLI crashes with a CRITICAL: Unhandled Promise Rejection! error when pasting a large JSON object. The error is ENAMETOOLONG: name too long, lstat. It seems the input parser incorrectly identifies long strings (like hex locations or emails) as local file paths and tries to run lstat on a string that is too long for the file system.
[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 expected the CLI to treat the pasted text as a message/code block rather than attempting to resolve parts of the text as local file system paths.
Client information
- CLI Version: 0.39.1
- Git Commit: 4d73f34
- Session ID: 06040027-bb8e-4f1a-b2fa-04b7d8d55a59
- Operating System: linux v20.19.6
- Sandbox Environment: no sandbox
- Model Version: gemini-3-flash-preview
- Auth Type: oauth-personal
- Memory Usage: 237.1 MB
- Terminal Name: Zellij(4301)
- Terminal Background: #282c34
- Kitty Keyboard Protocol: Supported
Platform: Linux (Ubuntu) inside Zellij terminal.
Login information
Logging in via Google Account (oauth-personal).
Anything else we need to know?
The crash happens during the robustRealpath and lstat phase in chunk-FNPZLVJU.js.
Reproduction snippet:
Paste a JSON object containing very long strings (over 255 characters) or strings containing @ symbols into the prompt. The CLI misinterprets these as paths relative to the current working directory.
What happened?
The CLI crashes with a CRITICAL: Unhandled Promise Rejection! error when pasting a large JSON object. The error is ENAMETOOLONG: name too long, lstat. It seems the input parser incorrectly identifies long strings (like hex locations or emails) as local file paths and tries to run lstat on a string that is too long for the file system.
[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 expected the CLI to treat the pasted text as a message/code block rather than attempting to resolve parts of the text as local file system paths.
Client information
Platform: Linux (Ubuntu) inside Zellij terminal.
Login information
Logging in via Google Account (oauth-personal).
Anything else we need to know?
The crash happens during the robustRealpath and lstat phase in chunk-FNPZLVJU.js.
Reproduction snippet:
Paste a JSON object containing very long strings (over 255 characters) or strings containing @ symbols into the prompt. The CLI misinterprets these as paths relative to the current working directory.