claude-code - 💡(How to fix) Fix [Bug] /export command fails for both clipboard and file output [1 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
anthropics/claude-code#49680Fetched 2026-04-17 08:34:21
View on GitHub
Comments
0
Participants
1
Timeline
4
Reactions
0
Participants
Timeline (top)
labeled ×4

Error Message

[{"error":"Error: NON-FATAL: Lock acquisition failed for /Users/wincheng/.local/share/claude/versions/2.1.112 (expected in multi-process scenarios)\n at Od_ (/$bunfs/root/src/entrypoints/cli.js:2748:2177)\n at Ke6 (/$bunfs/root/src/entrypoints/cli.js:2748:1257)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-04-17T03:09:50.637Z"},{"error":"Error\n at call (/$bunfs/root/src/entrypoints/cli.js:4727:7630)\n at processTicksAndRejections (unknown:7:39)","timestamp":"2026-04-17T03:10:54.230Z"}]

Code Example

[{"error":"Error: NON-FATAL: Lock acquisition failed for /Users/wincheng/.local/share/claude/versions/2.1.112 (expected in multi-process scenarios)\n    at Od_ (/$bunfs/root/src/entrypoints/cli.js:2748:2177)\n    at Ke6 (/$bunfs/root/src/entrypoints/cli.js:2748:1257)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-17T03:09:50.637Z"},{"error":"Error\n    at call (/$bunfs/root/src/entrypoints/cli.js:4727:7630)\n    at processTicksAndRejections (unknown:7:39)","timestamp":"2026-04-17T03:10:54.230Z"}]
RAW_BUFFERClick to expand / collapse

Bug Description /export command doesnt work for both clipboard and saving to file please help

Environment Info

  • Platform: darwin
  • Terminal: ghostty
  • Version: 2.1.112
  • Feedback ID: 43d19bfc-2168-4d7b-aa2d-8a19045401db

Errors

[{"error":"Error: NON-FATAL: Lock acquisition failed for /Users/wincheng/.local/share/claude/versions/2.1.112 (expected in multi-process scenarios)\n    at Od_ (/$bunfs/root/src/entrypoints/cli.js:2748:2177)\n    at Ke6 (/$bunfs/root/src/entrypoints/cli.js:2748:1257)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-17T03:09:50.637Z"},{"error":"Error\n    at call (/$bunfs/root/src/entrypoints/cli.js:4727:7630)\n    at processTicksAndRejections (unknown:7:39)","timestamp":"2026-04-17T03:10:54.230Z"}]

extent analysis

TL;DR

The /export command issue may be related to a lock acquisition failure, and checking the file system permissions or running the command with elevated privileges might help.

Guidance

  • The error message suggests a lock acquisition failure, which could be due to file system permissions issues, so verifying the permissions of the /Users/wincheng/.local/share/claude/versions/2.1.112 directory might be helpful.
  • Running the /export command with elevated privileges using sudo might temporarily resolve the issue, but this should be done with caution.
  • Checking for any other processes that might be holding a lock on the directory and terminating them if necessary could also help.
  • If the issue persists, providing more details about the environment and the exact command being run might help in further troubleshooting.

Notes

The provided error messages are not very descriptive, and without more information about the /export command and the environment, it's difficult to provide a more specific solution.

Recommendation

Apply workaround: Running the command with elevated privileges using sudo might help resolve the issue temporarily, but it's recommended to investigate and fix the underlying permission issue for a more permanent solution.

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 [Bug] /export command fails for both clipboard and file output [1 participants]