claude-code - 💡(How to fix) Fix [Feature Request] Support Ctrl+V image pasting from clipboard in CLI

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

[{"error":"RangeError: path should be a path.relative()d string, but got ".."\n at PZ1 (/$bunfs/root/src/entrypoints/cli.js:436:16231)\n at i8H (/$bunfs/root/src/entrypoints/cli.js:436:16406)\n at test (/$bunfs/root/src/entrypoints/cli.js:436:16948)\n at bf (/$bunfs/root/src/entrypoints/cli.js:8811:8596)\n at i3 (/$bunfs/root/src/entrypoints/cli.js:823:26323)\n at r3_ (/$bunfs/root/src/entrypoints/cli.js:823:29242)\n at OY5 (/$bunfs/root/src/entrypoints/cli.js:2544:2503)\n at <anonymous> (/$bunfs/root/src/entrypoints/cli.js:2544:3092)\n at zY5 (/$bunfs/root/src/entrypoints/cli.js:2544:4472)\n at M86 (/$bunfs/root/src/entrypoints/cli.js:2544:6668)","timestamp":"2026-05-09T05:35:49.421Z"},{"error":"RangeError: path should be a path.relative()d string, but got ".."\n at PZ1 (/$bunfs/root/src/entrypoints/cli.js:436:16231)\n at i8H (/$bunfs/root/src/entrypoints/cli.js:436:16406)\n at test (/$bunfs/root/src/entrypoints/cli.js:436:16948)\n at bf (/$bunfs/root/src/entrypoints/cli.js:8811:8596)\n at i3 (/$bunfs/root/src/entrypoints/cli.js:823:26323)\n at r3_ (/$bunfs/root/src/entrypoints/cli.js:823:29242)\n at OY5 (/$bunfs/root/src/entrypoints/cli.js:2544:2503)\n at <anonymous> (/$bunfs/root/src/entrypoints/cli.js:2544:3092)\n at zY5 (/$bunfs/root/src/entrypoints/cli.js:2544:4472)\n at M86 (/$bunfs/root/src/entrypoints/cli.js:2544:6668)","timestamp":"2026-05-09T05:35:49.424Z"},{"error":"Error: 400 {"type":"error","error":{"type":"invalid_request_error","message":"prompt is too long: 212881 tokens > 200000 maximum"},"request_id":"req_011CarTDiZdTbP1F81cH1Pib"}\n at generate (/$bunfs/root/src/entrypoints/cli.js:11:58750)\n at makeRequest (/$bunfs/root/src/entrypoints/cli.js:51:7694)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-05-09T05:36:04.837Z"},{"error":"Error: 400 {"type":"error","error":{"type":"invalid_request_error","message":"prompt is too long: 212881 tokens > 200000 maximum"},"request_id":"req_011CarTEKTbqr8uW5icqguCu"}\n at generate (/$bunfs/root/src/entrypoints/cli.js:11:58750)\n at makeRequest (/$bunfs/root/src/entrypoints/cli.js:51:7694)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-05-09T05:36:13.072Z"},{"error":"Error: 400 {"type":"error","error":{"type":"invalid_request_error","message":"prompt is too long: 212881 tokens > 200000 maximum"},"request_id":"req_011CarTErgpDNXL143CgZb8n"}\n at generate (/$bunfs/root/src/entrypoints/cli.js:11:58750)\n at makeRequest (/$bunfs/root/src/entrypoints/cli.js:51:7694)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-05-09T05:36:21.208Z"},{"error":"Error: 400 {"type":"error","error":{"type":"invalid_request_error","message":"prompt is too long: 212881 tokens > 200000 maximum"},"request_id":"req_011CarTF88zkDzuqRa1PS9dQ"}\n at generate (/$bunfs/root/src/entrypoints/cli.js:11:58750)\n at makeRequest (/$bunfs/root/src/entrypoints/cli.js:51:7694)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-05-09T05:36:24.019Z"},{"error":"Error: 400 {"type":"error","error":{"type":"invalid_request_error","message":"prompt is too long: 212881 tokens > 200000 maximum"},"request_id":"req_011CarTFZidCrpjFpNkDYQjF"}\n at generate (/$bunfs/root/src/entrypoints/cli.js:11:58750)\n at makeRequest (/$bunfs/root/src/entrypoints/cli.js:51:7694)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-05-09T05:36:30.887Z"},{"error":"Error: 400 {"type":"error","error":{"type":"invalid_request_error","message":"prompt is too long: 212881 tokens > 200000 maximum"},"request_id":"req_011CarTFfqEPa1b1H4v5oM78"}\n at generate (/$bunfs/root/src/entrypoints/cli.js:11:58750)\n at makeRequest (/$bunfs/root/src/entrypoints/cli.js:51:7694)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-05-09T05:36:31.859Z"},{"error":"Error: Request was aborted.\n at makeRequest (/$bunfs/root/src/entrypoints/cli.js:51:6192)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-05-09T05:56:53.916Z"},{"error":"SyntaxError: JSON Parse error…

Code Example

[{"error":"RangeError: path should be a `path.relative()`d string, but got \"..\"\n    at PZ1 (/$bunfs/root/src/entrypoints/cli.js:436:16231)\n    at i8H (/$bunfs/root/src/entrypoints/cli.js:436:16406)\n    at _test (/$bunfs/root/src/entrypoints/cli.js:436:16948)\n    at bf (/$bunfs/root/src/entrypoints/cli.js:8811:8596)\n    at i3_ (/$bunfs/root/src/entrypoints/cli.js:823:26323)\n    at r3_ (/$bunfs/root/src/entrypoints/cli.js:823:29242)\n    at OY5 (/$bunfs/root/src/entrypoints/cli.js:2544:2503)\n    at <anonymous> (/$bunfs/root/src/entrypoints/cli.js:2544:3092)\n    at zY5 (/$bunfs/root/src/entrypoints/cli.js:2544:4472)\n    at M86 (/$bunfs/root/src/entrypoints/cli.js:2544:6668)","timestamp":"2026-05-09T05:35:49.421Z"},{"error":"RangeError: path should be a `path.relative()`d string, but got \"..\"\n    at PZ1 (/$bunfs/root/src/entrypoints/cli.js:436:16231)\n    at i8H (/$bunfs/root/src/entrypoints/cli.js:436:16406)\n    at _test (/$bunfs/root/src/entrypoints/cli.js:436:16948)\n    at bf (/$bunfs/root/src/entrypoints/cli.js:8811:8596)\n    at i3_ (/$bunfs/root/src/entrypoints/cli.js:823:26323)\n    at r3_ (/$bunfs/root/src/entrypoints/cli.js:823:29242)\n    at OY5 (/$bunfs/root/src/entrypoints/cli.js:2544:2503)\n    at <anonymous> (/$bunfs/root/src/entrypoints/cli.js:2544:3092)\n    at zY5 (/$bunfs/root/src/entrypoints/cli.js:2544:4472)\n    at M86 (/$bunfs/root/src/entrypoints/cli.js:2544:6668)","timestamp":"2026-05-09T05:35:49.424Z"},{"error":"Error: 400 {\"type\":\"error\",\"error\":{\"type\":\"invalid_request_error\",\"message\":\"prompt is too long: 212881 tokens > 200000 maximum\"},\"request_id\":\"req_011CarTDiZdTbP1F81cH1Pib\"}\n    at generate (/$bunfs/root/src/entrypoints/cli.js:11:58750)\n    at makeRequest (/$bunfs/root/src/entrypoints/cli.js:51:7694)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-05-09T05:36:04.837Z"},{"error":"Error: 400 {\"type\":\"error\",\"error\":{\"type\":\"invalid_request_error\",\"message\":\"prompt is too long: 212881 tokens > 200000 maximum\"},\"request_id\":\"req_011CarTEKTbqr8uW5icqguCu\"}\n    at generate (/$bunfs/root/src/entrypoints/cli.js:11:58750)\n    at makeRequest (/$bunfs/root/src/entrypoints/cli.js:51:7694)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-05-09T05:36:13.072Z"},{"error":"Error: 400 {\"type\":\"error\",\"error\":{\"type\":\"invalid_request_error\",\"message\":\"prompt is too long: 212881 tokens > 200000 maximum\"},\"request_id\":\"req_011CarTErgpDNXL143CgZb8n\"}\n    at generate (/$bunfs/root/src/entrypoints/cli.js:11:58750)\n    at makeRequest (/$bunfs/root/src/entrypoints/cli.js:51:7694)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-05-09T05:36:21.208Z"},{"error":"Error: 400 {\"type\":\"error\",\"error\":{\"type\":\"invalid_request_error\",\"message\":\"prompt is too long: 212881 tokens > 200000 maximum\"},\"request_id\":\"req_011CarTF88zkDzuqRa1PS9dQ\"}\n    at generate (/$bunfs/root/src/entrypoints/cli.js:11:58750)\n    at makeRequest (/$bunfs/root/src/entrypoints/cli.js:51:7694)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-05-09T05:36:24.019Z"},{"error":"Error: 400 {\"type\":\"error\",\"error\":{\"type\":\"invalid_request_error\",\"message\":\"prompt is too long: 212881 tokens > 200000 maximum\"},\"request_id\":\"req_011CarTFZidCrpjFpNkDYQjF\"}\n    at generate (/$bunfs/root/src/entrypoints/cli.js:11:58750)\n    at makeRequest (/$bunfs/root/src/entrypoints/cli.js:51:7694)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-05-09T05:36:30.887Z"},{"error":"Error: 400 {\"type\":\"error\",\"error\":{\"type\":\"invalid_request_error\",\"message\":\"prompt is too long: 212881 tokens > 200000 maximum\"},\"request_id\":\"req_011CarTFfqEPa1b1H4v5oM78\"}\n    at generate (/$bunfs/root/src/entrypoints/cli.js:11:58750)\n    at makeRequest (/$bunfs/root/src/entrypoints/cli.js:51:7694)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-05-09T05:36:31.859Z"},{"error":"Error: Request was aborted.\n    at makeRequest (/$bunfs/root/src/entrypoints/cli.js:51:6192)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-05-09T05:56:53.916Z"},{"error":"SyntaxError: JSON Parse error…
RAW_BUFFERClick to expand / collapse

Description allow the ctrl+v for pasting an image which has been captured using snapshot tool. This works on desktop app but not on the cli. here it only works with copy and paste files.

Environment Info

  • Platform: darwin
  • Terminal: iTerm.app
  • Version: 2.1.137
  • Feedback ID: c30de2ea-b7fe-441d-ae83-d310f8c3498d

Errors

[{"error":"RangeError: path should be a `path.relative()`d string, but got \"..\"\n    at PZ1 (/$bunfs/root/src/entrypoints/cli.js:436:16231)\n    at i8H (/$bunfs/root/src/entrypoints/cli.js:436:16406)\n    at _test (/$bunfs/root/src/entrypoints/cli.js:436:16948)\n    at bf (/$bunfs/root/src/entrypoints/cli.js:8811:8596)\n    at i3_ (/$bunfs/root/src/entrypoints/cli.js:823:26323)\n    at r3_ (/$bunfs/root/src/entrypoints/cli.js:823:29242)\n    at OY5 (/$bunfs/root/src/entrypoints/cli.js:2544:2503)\n    at <anonymous> (/$bunfs/root/src/entrypoints/cli.js:2544:3092)\n    at zY5 (/$bunfs/root/src/entrypoints/cli.js:2544:4472)\n    at M86 (/$bunfs/root/src/entrypoints/cli.js:2544:6668)","timestamp":"2026-05-09T05:35:49.421Z"},{"error":"RangeError: path should be a `path.relative()`d string, but got \"..\"\n    at PZ1 (/$bunfs/root/src/entrypoints/cli.js:436:16231)\n    at i8H (/$bunfs/root/src/entrypoints/cli.js:436:16406)\n    at _test (/$bunfs/root/src/entrypoints/cli.js:436:16948)\n    at bf (/$bunfs/root/src/entrypoints/cli.js:8811:8596)\n    at i3_ (/$bunfs/root/src/entrypoints/cli.js:823:26323)\n    at r3_ (/$bunfs/root/src/entrypoints/cli.js:823:29242)\n    at OY5 (/$bunfs/root/src/entrypoints/cli.js:2544:2503)\n    at <anonymous> (/$bunfs/root/src/entrypoints/cli.js:2544:3092)\n    at zY5 (/$bunfs/root/src/entrypoints/cli.js:2544:4472)\n    at M86 (/$bunfs/root/src/entrypoints/cli.js:2544:6668)","timestamp":"2026-05-09T05:35:49.424Z"},{"error":"Error: 400 {\"type\":\"error\",\"error\":{\"type\":\"invalid_request_error\",\"message\":\"prompt is too long: 212881 tokens > 200000 maximum\"},\"request_id\":\"req_011CarTDiZdTbP1F81cH1Pib\"}\n    at generate (/$bunfs/root/src/entrypoints/cli.js:11:58750)\n    at makeRequest (/$bunfs/root/src/entrypoints/cli.js:51:7694)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-05-09T05:36:04.837Z"},{"error":"Error: 400 {\"type\":\"error\",\"error\":{\"type\":\"invalid_request_error\",\"message\":\"prompt is too long: 212881 tokens > 200000 maximum\"},\"request_id\":\"req_011CarTEKTbqr8uW5icqguCu\"}\n    at generate (/$bunfs/root/src/entrypoints/cli.js:11:58750)\n    at makeRequest (/$bunfs/root/src/entrypoints/cli.js:51:7694)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-05-09T05:36:13.072Z"},{"error":"Error: 400 {\"type\":\"error\",\"error\":{\"type\":\"invalid_request_error\",\"message\":\"prompt is too long: 212881 tokens > 200000 maximum\"},\"request_id\":\"req_011CarTErgpDNXL143CgZb8n\"}\n    at generate (/$bunfs/root/src/entrypoints/cli.js:11:58750)\n    at makeRequest (/$bunfs/root/src/entrypoints/cli.js:51:7694)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-05-09T05:36:21.208Z"},{"error":"Error: 400 {\"type\":\"error\",\"error\":{\"type\":\"invalid_request_error\",\"message\":\"prompt is too long: 212881 tokens > 200000 maximum\"},\"request_id\":\"req_011CarTF88zkDzuqRa1PS9dQ\"}\n    at generate (/$bunfs/root/src/entrypoints/cli.js:11:58750)\n    at makeRequest (/$bunfs/root/src/entrypoints/cli.js:51:7694)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-05-09T05:36:24.019Z"},{"error":"Error: 400 {\"type\":\"error\",\"error\":{\"type\":\"invalid_request_error\",\"message\":\"prompt is too long: 212881 tokens > 200000 maximum\"},\"request_id\":\"req_011CarTFZidCrpjFpNkDYQjF\"}\n    at generate (/$bunfs/root/src/entrypoints/cli.js:11:58750)\n    at makeRequest (/$bunfs/root/src/entrypoints/cli.js:51:7694)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-05-09T05:36:30.887Z"},{"error":"Error: 400 {\"type\":\"error\",\"error\":{\"type\":\"invalid_request_error\",\"message\":\"prompt is too long: 212881 tokens > 200000 maximum\"},\"request_id\":\"req_011CarTFfqEPa1b1H4v5oM78\"}\n    at generate (/$bunfs/root/src/entrypoints/cli.js:11:58750)\n    at makeRequest (/$bunfs/root/src/entrypoints/cli.js:51:7694)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-05-09T05:36:31.859Z"},{"error":"Error: Request was aborted.\n    at makeRequest (/$bunfs/root/src/entrypoints/cli.js:51:6192)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-05-09T05:56:53.916Z"},{"error":"SyntaxError: JSON Parse error…

Note: Content was truncated.

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

claude-code - 💡(How to fix) Fix [Feature Request] Support Ctrl+V image pasting from clipboard in CLI