[Bug] Claude Code crashes on external command tasks with non-zero exit codes
Resolved 💬 2 comments Opened Feb 27, 2026 by camstuart Closed Mar 28, 2026
Bug Description
when running through an openspec set of tasks, claude code crashes on any external command tasks that don't return cleanly
Environment Info
- Platform: darwin
- Terminal: zed
- Version: 2.1.62
- Feedback ID: 1ecc1166-07f6-4d49-9ada-af604a35fc4c
Errors
[{"error":"Error: LSP server plugin:pyright-lsp:pyright failed to start: Executable not found in $PATH: \"pyright-langserver\"\n at start (/$bunfs/root/claude:2678:22319)\n at async H (/$bunfs/root/claude:2678:24631)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-02-27T21:53:27.436Z"},{"error":"Error: Executable not found in $PATH: \"pyright-langserver\"\n at spawn (unknown)\n at spawn (node:child_process:667:35)\n at spawn (node:child_process:14:39)\n at start (/$bunfs/root/claude:2678:20845)\n at H (/$bunfs/root/claude:2678:24631)\n at _ (/$bunfs/root/claude:2678:32740)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-02-27T21:53:27.438Z"},{"error":"Error: Failed to start LSP server plugin:pyright-lsp:pyright: Executable not found in $PATH: \"pyright-langserver\"\n at <anonymous> (/$bunfs/root/claude:2678:32762)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-02-27T21:53:27.438Z"},{"error":"Error: File does not exist. Note: your current working directory is /Users/cam/dev/travel-weather-backend.\n at call (/$bunfs/root/claude:1796:6345)\n at async <anonymous> (/$bunfs/root/claude:6200:1856)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-02-27T23:32:38.059Z"},{"error":"Error: File does not exist. Note: your current working directory is /Users/cam/dev/travel-weather-backend.\n at call (/$bunfs/root/claude:1796:6345)\n at async <anonymous> (/$bunfs/root/claude:6200:1856)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-02-27T23:34:15.919Z"},{"error":"Error: 1P event logging: 64 events failed to export (code=ECONNABORTED, timeout of 10000ms exceeded)\n at queueFailedEvents (/$bunfs/root/claude:6252:2350)\n at async doExport (/$bunfs/root/claude:6252:1257)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-02-27T23:34:34.866Z"},{"error":"Error: {\"message\":\"Failed to export 64 events (code=ECONNABORTED, timeout of 10000ms exceeded)\",\"originalLine\":\"6252\",\"originalColumn\":\"1409\",\"line\":\"6252\",\"column\":\"1409\",\"sourceURL\":\"/$bunfs/root/claude\",\"stack\":\"Error: Failed to export 64 events (code=ECONNABORTED, timeout of 10000ms exceeded)\\n at doExport (/$bunfs/root/claude:6252:1409)\\n at processTicksAndRejections (native:7:39)\",\"name\":\"Error\"}\n at error (/$bunfs/root/claude:2407:25028)\n at <anonymous> (/$bunfs/root/claude:119:92465)\n at l$D (/$bunfs/root/claude:119:93009)\n at <anonymous> (/$bunfs/root/claude:120:17366)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-02-27T23:34:34.867Z"},{"error":"Error: File does not exist. Note: your current working directory is /Users/cam/dev/travel-weather-backend.\n at call (/$bunfs/root/claude:1796:6345)\n at async <anonymous> (/$bunfs/root/claude:6200:1856)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-02-27T23:36:42.408Z"},{"error":"Error: File does not exist. Note: your current working directory is /Users/cam/dev/travel-weather-backend.\n at call (/$bunfs/root/claude:1796:6345)\n at async <anonymous> (/$bunfs/root/claude:6200:1856)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-02-27T23:36:42.413Z"},{"error":"Error: File does not exist. Note: your current working directory is /Users/cam/dev/travel-weather-backend.\n at call (/$bunfs/root/claude:1796:6345)\n at async <anonymous> (/$bunfs/root/claude:6200:1856)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-02-27T23:38:45.581Z"}]This issue has 2 comments on GitHub. Read the full discussion on GitHub ↗