claude-code - 💡(How to fix) Fix [Bug] Background agent continues running after CLI exit, /resume fails with attachment error [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#60479Fetched 2026-05-20 03:57:29
View on GitHub
Comments
0
Participants
1
Timeline
4
Reactions
0
Author
Participants
Timeline (top)
labeled ×3cross-referenced ×1

Error Message

[{"error":"Error: EISDIR: illegal operation on a directory, read '/home/samuel/PhpstormProjects/nexus/resources/views/components'\n at GMH (/$bunfs/root/src/entrypoints/cli.js:1659:144)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-05-19T06:41:51.122Z"},{"error":"Error: File does not exist. Note: your current working directory is /home/samuel/PhpstormProjects/nexus.\n at call (/$bunfs/root/src/entrypoints/cli.js:4277:11536)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-05-19T07:07:48.286Z"},{"error":"Error: EISDIR: illegal operation on a directory, read '/home/samuel/PhpstormProjects/nexus/database/seeders'\n at GMH (/$bunfs/root/src/entrypoints/cli.js:1659:144)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-05-19T07:08:01.412Z"},{"error":"Error: File does not exist. Note: your current working directory is /home/samuel/PhpstormProjects/nexus.\n at call (/$bunfs/root/src/entrypoints/cli.js:4277:11536)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-05-19T07:09:06.607Z"},{"error":"Error: EISDIR: illegal operation on a directory, read '/home/samuel/PhpstormProjects/nexus/resources/views/livewire/accounting'\n at GMH (/$bunfs/root/src/entrypoints/cli.js:1659:144)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-05-19T07:10:22.023Z"},{"error":"Error: File does not exist. Note: your current working directory is /home/samuel/PhpstormProjects/nexus.\n at call (/$bunfs/root/src/entrypoints/cli.js:4277:11536)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-05-19T07:57:17.872Z"}]

Code Example

[{"error":"Error: EISDIR: illegal operation on a directory, read '/home/samuel/PhpstormProjects/nexus/resources/views/components'\n    at GMH (/$bunfs/root/src/entrypoints/cli.js:1659:144)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-05-19T06:41:51.122Z"},{"error":"Error: File does not exist. Note: your current working directory is /home/samuel/PhpstormProjects/nexus.\n    at call (/$bunfs/root/src/entrypoints/cli.js:4277:11536)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-05-19T07:07:48.286Z"},{"error":"Error: EISDIR: illegal operation on a directory, read '/home/samuel/PhpstormProjects/nexus/database/seeders'\n    at GMH (/$bunfs/root/src/entrypoints/cli.js:1659:144)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-05-19T07:08:01.412Z"},{"error":"Error: File does not exist. Note: your current working directory is /home/samuel/PhpstormProjects/nexus.\n    at call (/$bunfs/root/src/entrypoints/cli.js:4277:11536)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-05-19T07:09:06.607Z"},{"error":"Error: EISDIR: illegal operation on a directory, read '/home/samuel/PhpstormProjects/nexus/resources/views/livewire/accounting'\n    at GMH (/$bunfs/root/src/entrypoints/cli.js:1659:144)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-05-19T07:10:22.023Z"},{"error":"Error: File does not exist. Note: your current working directory is /home/samuel/PhpstormProjects/nexus.\n    at call (/$bunfs/root/src/entrypoints/cli.js:4277:11536)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-05-19T07:57:17.872Z"}]
RAW_BUFFERClick to expand / collapse

Bug Description My entire session is in a background agent called 'bg'. i exited the cli and came back. i tried to /resume my context window, but received a message saying this was a background agent and i needed to attach to it. I HAD EXITED THE PROGRAM! WHY WAS THERE A BACKGROUND AGENT RUNNING WITHOUT THE CLI RUNNING?

I used plan mode, then was forced to use auto mode, even tough I used bypassPermissions mode when starting the cli. Then, I couldn't switch back to bypass permissions mode from auto mode.

I exited the program and came back and used /resume but my session was not the first one on the list. it was the third. It said it was an hour old, even though i had just interacted with it a few minutes before.

Environment Info

  • Platform: linux
  • Terminal: xterm-256color
  • Version: 2.1.144
  • Feedback ID: 0b65fbc3-6f85-49ab-8331-557429c25937

Errors

[{"error":"Error: EISDIR: illegal operation on a directory, read '/home/samuel/PhpstormProjects/nexus/resources/views/components'\n    at GMH (/$bunfs/root/src/entrypoints/cli.js:1659:144)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-05-19T06:41:51.122Z"},{"error":"Error: File does not exist. Note: your current working directory is /home/samuel/PhpstormProjects/nexus.\n    at call (/$bunfs/root/src/entrypoints/cli.js:4277:11536)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-05-19T07:07:48.286Z"},{"error":"Error: EISDIR: illegal operation on a directory, read '/home/samuel/PhpstormProjects/nexus/database/seeders'\n    at GMH (/$bunfs/root/src/entrypoints/cli.js:1659:144)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-05-19T07:08:01.412Z"},{"error":"Error: File does not exist. Note: your current working directory is /home/samuel/PhpstormProjects/nexus.\n    at call (/$bunfs/root/src/entrypoints/cli.js:4277:11536)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-05-19T07:09:06.607Z"},{"error":"Error: EISDIR: illegal operation on a directory, read '/home/samuel/PhpstormProjects/nexus/resources/views/livewire/accounting'\n    at GMH (/$bunfs/root/src/entrypoints/cli.js:1659:144)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-05-19T07:10:22.023Z"},{"error":"Error: File does not exist. Note: your current working directory is /home/samuel/PhpstormProjects/nexus.\n    at call (/$bunfs/root/src/entrypoints/cli.js:4277:11536)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-05-19T07:57:17.872Z"}]

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] Background agent continues running after CLI exit, /resume fails with attachment error [1 participants]