anomalyco / anomalyco/opencode

TUI rejects explicitly selected hidden primary agents

Open
#45,573 0 comments 0 reactions 1 assignee View on GitHub

@kommander is already working on this.

Since Aug 27, 2026.

Dominant language
TypeScript
Stars
209k
Forks
27.5k
PR merge metrics
PR metrics pending

Description

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

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.