[Bug] TDZ error masks actual initialization failure in agent-view sessions

Resolved 💬 2 comments Opened Jun 13, 2026 by kjgarza Closed Jun 16, 2026

Bug Description

What happened

Fleet/agent-view sessions die at startup:

exit 1 before init — …t vk4 (/$bunfs/root/src/entrypoints/cli.js:10956:365)
at async eyT (/$bunfs/root/src/entrypoints/cli.js:32603:68)
at async _ET (/$bunfs/root/src/entrypoints/cli.js:32643:501)
Bun v1.3.14 (macOS arm64)

Problem

Cannot access 'vk4' before initialization is a TDZ bug in the compiled
bundle that MASKS the real init error. Underlying init failure never surfaces.
Only agent-view/background launches affected; foreground sessions fine.
Crashed agents write no transcript, cannot be resumed.

Env

macOS arm64, Bun v1.3.14, agent/fleet view launch.

Ask

Surface the real init error instead of the TDZ masking error, so the
underlying cause is diagnosable.

Environment Info

  • Platform: darwin
  • Terminal: xterm-256color
  • Version: 2.1.177
  • Feedback ID: 301b5194-c6b9-4c5f-8918-dd140997542c

Errors

 exit 1 before init — …t vk4 (/$bunfs/root/src/entrypoints/cli.js:10956:365) at async eyT (/$bunfs/root/src/entrypoints/cli.js:32603:68) at async _ET (/$bunfs/root/src/entrypoints/cli.js:32643:501) Bun v1.3.14 (macOS arm64)

View original on GitHub ↗

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