Skip to content

Commit b4dfd3a

Browse files
committed
Revert "fix(tui): don't show 'Agent not found' toast for subagents (anomalyco#6528)"
This reverts commit d3c9a12.
1 parent d3c9a12 commit b4dfd3a

1 file changed

Lines changed: 1 addition & 5 deletions

File tree

  • packages/opencode/src/cli/cmd/tui/component/prompt

‎packages/opencode/src/cli/cmd/tui/component/prompt/index.tsx‎

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -202,11 +202,7 @@ export function Prompt(props: PromptProps) {
202202

203203
syncedSessionID = sessionID
204204

205-
// Only set agent if it's a primary agent (not a subagent)
206-
const isPrimaryAgent = local.agent.list().some((x) => x.name === msg.agent)
207-
if (msg.agent && isPrimaryAgent) {
208-
local.agent.set(msg.agent)
209-
}
205+
if (msg.agent) local.agent.set(msg.agent)
210206
if (msg.model) local.model.set(msg.model)
211207
if (msg.variant) local.model.variant.set(msg.variant)
212208
}

0 commit comments

Comments
 (0)