Incorrect Screenshot File Type Causing Image Parsing Crash

Resolved 💬 3 comments Opened Jun 10, 2025 by dhalem Closed Jan 6, 2026

Bug Description
i am debugging a webapp and sometimes the screenshot it saves as a .png is actually a json file. when it tries to parse the file as a .png, it crashes. i've tried to teach it repeatedly that it should check the file before parsing it, but this has proven unreliable.

Environment Info

  • Platform: macos
  • Terminal: iTerm.app
  • Version: 1.0.17
  • Feedback ID: 11fc03db-1879-441d-8cbd-abd1231000c3

Errors

[{"error":"Error: Command failed: security find-generic-password -a $USER -w -s \"Claude Code\"\nsecurity: SecKeychainSearchCopyNext: The specified item could not be found in the keychain.\n\n    at genericNodeError (node:internal/errors:983:15)\n    at wrappedFn (node:internal/errors:537:14)\n    at checkExecSyncError (node:child_process:892:11)\n    at execSync (node:child_process:964:15)\n    at YZ (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:654:3921)\n    at file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:582:11794\n    at Q (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:526:17190)\n    at cJ (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:582:10940)\n    at aP (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:582:10021)\n    at a6 (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:582:14133)","timestamp":"2025-06-10T01:56:57.143Z"}]

View original on GitHub ↗

This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗