Skip to content

TUI rejects explicitly selected hidden primary agents #45573

Description

@robertn702

Description

Starting the TUI with opencode --agent <name> rejects a hidden primary agent with Agent not found. The same agent remains valid for explicit use through opencode run --agent <name>.

The TUI uses its visible-only agent list for both the picker and explicit startup validation. Hidden primary agents should stay out of the picker and Tab cycle while remaining selectable when named with --agent. Subagents should remain invalid as primary agents.

Related to #44751, which documents the intended hidden-agent behavior.

Plugins

None required.

OpenCode version

dev at 5f5ea53afb

Steps to reproduce

  1. Configure an agent with mode: primary and hidden: true.
  2. Start the TUI with opencode --agent <name>.
  3. Observe the Agent not found warning and fallback agent.

Expected behavior is for the explicit hidden primary agent to be selected without adding it to the picker or Tab cycle.

Operating System

macOS

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions