feat: add native persistent agent teams - #39523
Conversation
|
This PR doesn't fully meet our contributing guidelines and PR template. What needs to be fixed:
Please edit this PR description to address the above within 2 hours, or it will be automatically closed. If you believe this was flagged incorrectly, please let a maintainer know. |
|
The following comment was made by an LLM, it may be inaccurate: Based on the search results, I found related PRs that address similar agent team functionality: Potential Related PRs:
These aren't exact duplicates of PR #39523, but they appear to be companion/related features for the agent teams system. PR #39523 seems to be the broader implementation that includes persistent storage, concurrent V2 sessions, and API routes, while #12730 and #12732 handle the core team domain logic and UI integration respectively. |
|
This pull request has been automatically closed because it was not updated to meet our contributing guidelines within the 2-hour window. Feel free to open a new pull request that follows our guidelines. |
What changed
/api/teamroutes and regenerated Promise/Effect clientsteam_create,team_spawn,team_status,team_message, andteam_tasktoolsWhy
OpenCode subagents currently run as a foreground handoff workflow. Two independent local model endpoints cannot continuously implement and review in parallel while sharing durable task/message state or recovering after a host restart. This adds that orchestration as native OpenCode primitives rather than an external terminal wrapper.
Validation
interruptedteammate with durable error stateNotes
The implementation keeps one OpenCode host process and one persistent session per teammate. Model execution remains endpoint-local; this is concurrent agent orchestration, not tensor parallelism.