Files
orca/src/shared/native-chat/tools
Brennan BensonandSeaBee 55fb5584c0 OpenCode subagents show in Chat UI and keep a chat open while they run (#40141)
* fix(native-chat): show OpenCode subagents and keep a chat open while they run

OpenCode reports each subagent as a child session when the client opts in.
Orca now opts in, files each child's tool calls and replies under its own
subagent, and keeps the subagent open until the child reports that it
completed, failed or was interrupted, including after the parent turn ends.

Co-authored-by: SeaBee <85791528+seabee33@users.noreply.github.com>

* fix(native-chat): keep a subagent's tool context when its rows are read back from the journal

Co-authored-by: SeaBee <85791528+seabee33@users.noreply.github.com>

* fix(native-chat): a Stop also ends running OpenCode subagents, and each subagent can be stopped from the strip

Co-authored-by: SeaBee <85791528+seabee33@users.noreply.github.com>

* fix(native-chat): only a chat Stop closes OpenCode subagents, an early subagent Stop stays available, and the close request has a deadline

Co-authored-by: SeaBee <85791528+seabee33@users.noreply.github.com>

* fix(native-chat): a subagent Stop that the subagent confirms while the request is out reads stopped

Co-authored-by: SeaBee <85791528+seabee33@users.noreply.github.com>

* refactor(acp): close child sessions from the agent connection

Keeps the session runtime under the line limit after the main merge.

* test(acp): read a child command through a type guard

* fix(native-chat): a subagent that reports its ending reads stopped even when the close request fails

A child Stop's session/close now asks the agent to drop the call on timeout instead of withdrawing the write.

* test(native-chat): OpenCode subagent calls group with other agents' subagent calls

---------

Co-authored-by: SeaBee <85791528+seabee33@users.noreply.github.com>
2026-11-09 12:03:55 -08:00
..