Opencode crashed when there are too many agents or sub-agents #1252

Closed
opened 2026-02-16 17:30:10 -05:00 by yindo · 1 comment
Owner

Originally created by @MilesNorton on GitHub (Aug 11, 2025).

I have agents in my main projects and then also in my machines config file.

I've just been experimenting and found that when you have too many it crashes with the following:

INFO  2025-08-12T01:39:22 +0ms service=app name=agent registering service
INFO  2025-08-12T01:39:22 +1ms service=app name=lsp shutdown
ERROR 2025-08-12T01:39:22 +5ms service=default name=Error message=E2BIG: argument list too long, posix_spawn '/home/miles/.cache/opencode/tui/tui-01t78spt.' fatal
Originally created by @MilesNorton on GitHub (Aug 11, 2025). I have agents in my main projects and then also in my machines config file. I've just been experimenting and found that when you have too many it crashes with the following: ``` INFO 2025-08-12T01:39:22 +0ms service=app name=agent registering service INFO 2025-08-12T01:39:22 +1ms service=app name=lsp shutdown ERROR 2025-08-12T01:39:22 +5ms service=default name=Error message=E2BIG: argument list too long, posix_spawn '/home/miles/.cache/opencode/tui/tui-01t78spt.' fatal ```
yindo closed this issue 2026-02-16 17:30:10 -05:00
Author
Owner

@thdxr commented on GitHub (Aug 11, 2025):

should be fixed now

@thdxr commented on GitHub (Aug 11, 2025): should be fixed now
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#1252