diff options
| author | Aiden Cline <[email protected]> | 2025-12-31 13:11:12 -0600 |
|---|---|---|
| committer | Aiden Cline <[email protected]> | 2025-12-31 13:11:12 -0600 |
| commit | 97a0fd1d54414e5563d0b47a02666d1d044c2cac (patch) | |
| tree | e13d2fddecaf4db8fe22b9c6253f8dfec0902cd8 | |
| parent | 87f9ebd17c3836edb400ca4f0917213a8d6e46e9 (diff) | |
| download | opencode-97a0fd1d54414e5563d0b47a02666d1d044c2cac.tar.gz opencode-97a0fd1d54414e5563d0b47a02666d1d044c2cac.zip | |
Revert "fix(tui): don't show 'Agent not found' toast for subagents (#6528)"
This reverts commit 87f9ebd17c3836edb400ca4f0917213a8d6e46e9.
| -rw-r--r-- | packages/opencode/src/cli/cmd/tui/component/prompt/index.tsx | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/packages/opencode/src/cli/cmd/tui/component/prompt/index.tsx b/packages/opencode/src/cli/cmd/tui/component/prompt/index.tsx index ab9487e1d..2a0ac8461 100644 --- a/packages/opencode/src/cli/cmd/tui/component/prompt/index.tsx +++ b/packages/opencode/src/cli/cmd/tui/component/prompt/index.tsx @@ -202,11 +202,7 @@ export function Prompt(props: PromptProps) { syncedSessionID = sessionID - // Only set agent if it's a primary agent (not a subagent) - const isPrimaryAgent = local.agent.list().some((x) => x.name === msg.agent) - if (msg.agent && isPrimaryAgent) { - local.agent.set(msg.agent) - } + if (msg.agent) local.agent.set(msg.agent) if (msg.model) local.model.set(msg.model) if (msg.variant) local.model.variant.set(msg.variant) } |
