Skip to content

[Bug] Subagent completion race conditions cause orchestrator hallucinations of integrated results #30520

@kenxle

Description

@kenxle

Bug Description
Whenever I spawn a lot of subagents, I get this phenomenon where The orchestrating agent will say that it has analyzed their output. And then it will get a notification a few seconds later that the agent has completed its work. it will say oh I've already integrated the work from that agent you can ignore this late returning call, but there's no evidence anywhere of what the agent was doing, whether the agent had actually completed its task when the orchestrator went and got information from it. It's completely opaque as to whether the agent is just hallucinating that the subagent was complete. And so it's quite confusing. to see and it happens consistently over and over again

Environment Info

  • Platform: darwin
  • Terminal: ghostty
  • Version: 2.1.34
  • Feedback ID: b9f65b4f-86d3-4154-bbb0-5915a948cbe3

Errors

[{"error":"Error: {\"message\":\"Failed to export 73 events (status=429, code=ERR_BAD_REQUEST, Request failed with status code 429)\",\"originalLine\":\"1861\",\"originalColumn\":\"1409\",\"line\":\"1861\",\"column\":\"1409\",\"sourceURL\":\"/$bunfs/root/claude\",\"stack\":\"Error: Failed to export 73 events (status=429, code=ERR_BAD_REQUEST, Request failed with status code 429)\\n    at doExport (/$bunfs/root/claude:1861:1409)\\n    at processTicksAndRejections (native:7:39)\",\"name\":\"Error\"}\n    at error (/$bunfs/root/claude:1904:25028)\n    at <anonymous> (/$bunfs/root/claude:1856:21308)\n    at gy7 (/$bunfs/root/claude:1856:21852)\n    at <anonymous> (/$bunfs/root/claude:1857:17366)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-03-03T12:46:02.748Z"},{"error":"Error: 1P event logging: 8 events failed to export (status=429, code=ERR_BAD_REQUEST, Request failed with status code 429)\n    at queueFailedEvents (/$bunfs/root/claude:1861:2350)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-03-03T12:46:08.061Z"},{"error":"Error: {\"message\":\"Failed to export 8 events (status=429, code=ERR_BAD_REQUEST, Request failed with status code 429)\",\"originalLine\":\"1861\",\"originalColumn\":\"1409\",\"line\":\"1861\",\"column\":\"1409\",\"sourceURL\":\"/$bunfs/root/claude\",\"stack\":\"Error: Failed to export 8 events (status=429, code=ERR_BAD_REQUEST, Request failed with status code 429)\\n    at doExport (/$bunfs/root/claude:1861:1409)\\n    at processTicksAndRejections (native:7:39)\",\"name\":\"Error\"}\n    at error (/$bunfs/root/claude:1904:25028)\n    at <anonymous> (/$bunfs/root/claude:1856:21308)\n    at gy7 (/$bunfs/root/claude:1856:21852)\n    at <anonymous> (/$bunfs/root/claude:1857:17366)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-03-03T12:46:08.061Z"},{"error":"Error: 1P event logging: 61 events failed to export (status=429, code=ERR_BAD_REQUEST, Request failed with status code 429)\n    at queueFailedEvents (/$bunfs/root/claude:1861:2350)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-03-03T12:46:13.951Z"},{"error":"Error: {\"message\":\"Failed to export 61 events (status=429, code=ERR_BAD_REQUEST, Request failed with status code 429)\",\"originalLine\":\"1861\",\"originalColumn\":\"1409\",\"line\":\"1861\",\"column\":\"1409\",\"sourceURL\":\"/$bunfs/root/claude\",\"stack\":\"Error: Failed to export 61 events (status=429, code=ERR_BAD_REQUEST, Request failed with status code 429)\\n    at doExport (/$bunfs/root/claude:1861:1409)\\n    at processTicksAndRejections (native:7:39)\",\"name\":\"Error\"}\n    at error (/$bunfs/root/claude:1904:25028)\n    at <anonymous> (/$bunfs/root/claude:1856:21308)\n    at gy7 (/$bunfs/root/claude:1856:21852)\n    at <anonymous> (/$bunfs/root/claude:1857:17366)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-03-03T12:46:13.951Z"},{"error":"Error: 1P event logging: 28 events failed to export (status=429, code=ERR_BAD_REQUEST, Request failed with status code 429)\n    at queueFailedEvents (/$bunfs/root/claude:1861:2350)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-03-03T12:46:20.316Z"},{"error":"Error: {\"message\":\"Failed to export 28 events (status=429, code=ERR_BAD_REQUEST, Request failed with status code 429)\",\"originalLine\":\"1861\",\"originalColumn\":\"1409\",\"line\":\"1861\",\"column\":\"1409\",\"sourceURL\":\"/$bunfs/root/claude\",\"stack\":\"Error: Failed to export 28 events (status=429, code=ERR_BAD_REQUEST, Request failed with status code 429)\\n    at doExport (/$bunfs/root/claude:1861:1409)\\n    at processTicksAndRejections (native:7:39)\",\"name\":\"Error\"}\n    at error (/…

Note: Content was truncated.

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:agentsbugSomething isn't workingplatform:macosIssue specifically occurs on macOSstaleIssue is inactive

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions