[BUG] Agent View unable to start / resume agent with

Open 💬 0 comments Opened Jun 16, 2026 by nikhil-modha

Preflight Checklist

  • [x] I have searched existing issues and this hasn't been reported yet
  • [x] This is a single bug report (please file separate reports for different bugs)
  • [x] I am using the latest version of Claude Code

What's Wrong?

Preflight Checklist

I have searched existing issues and this hasn't been reported yet

This is a single bug report (please file separate reports for different bugs)

I am using the latest version of Claude Code
What's Wrong?

Summary

Every background-agent worker spawned by the on-demand daemon crashes immediately
with exit 1 before init. The Agents view and claude --bg are completely
unusable — no background session can start, and existing ones can't be resumed.
Interactive claude is unaffected.

Ruled out
Not auth. The daemon separately hit auth_required (expired OAuth, headless
daemon can't refresh). Re-login + daemon restart fixed auth — the fresh daemon
authenticates cleanly — but workers still crash identically.
Not a version regression. First seen on 2.1.142; Apparently fixed on Issue #59638 (https://github.com/anthropics/claude-code/issues/59638) but it still persists on 2.1.178 (Current latest)

Claude Model
All models

Is this a regression?
Yes, this worked in a previous version

Last Working Version
No response

Claude Code Version
2.1.178 (Claude Code)

Platform
Anthropic API

Operating System
macOS

Terminal/Shell
Terminal

What Should Happen?

the worker starts and runs the session, or worker is available to resume chat

Error Messages/Logs

exit 1 before init — …t Yi6 (/$bunfs/root/src/entrypoints/cli.js:10809:365) at async qIT (/$bunfs/root/src/entrypoints/cli.js:32456:68) at async zxT (/$bunfs/root/src/entrypoints/cli.js:32498:501) Bun v1.3.14 (macOS arm64)

Steps to Reproduce

New Agent
Run claude (with agent view enabled)
Start a new agent by entering any prompt
Subsequently error message shows at the bottom of the terminal:

exit 1 before init — …t Yi6 (/$bunfs/root/src/entrypoints/cli.js:10809:365) at async qIT (/$bunfs/root/src/entrypoints/cli.js:32456:68) at async zxT (/$bunfs/root/src/entrypoints/cli.js:32498:501) Bun v1.3.14 (macOS arm64)

Existing Chat
Select a chat which is either in progress / needs input / done in agent view
Chat cannot open, with error

That session ended — back to the list

Claude Model

Not sure / Multiple models

Is this a regression?

Yes, this worked in a previous version

Last Working Version

No idea

Claude Code Version

2.1.178

Platform

Anthropic API

Operating System

macOS

Terminal/Shell

Terminal.app (macOS)

Additional Information

_No response_

View original on GitHub ↗