Skip to content

Agent picker (build/plan) missing in v2 layout #30360

Closed

Description

@xohmai

Description

When "New layout and designs" is enabled in settings, the build/plan agent picker is not shown in the composer. It works correctly in the legacy layout.

In packages/app/src/components/prompt-input.tsx:1351, the v2 agent picker is gated behind settings.general.showCustomAgents() which defaults to false. The legacy layout does not have this guard, so the picker always shows there.

Plugins

N/A

OpenCode version

dev branch (latest)

Steps to reproduce

  1. Enable "New layout and designs" in settings
  2. Open a session
  3. Observe that the build/plan toggle is missing from the composer
  4. Disable "New layout and designs" and the toggle reappears

Screenshot and/or share link

N/A

Operating System

Windows

Terminal

N/A (Web UI)

Activity

  1. skaldebane commented on Jun 12, 2026

    @skaldebane

    Update: as of 1.17.5 this is no longer necessary; it can be toggled in the UI. See my comment below: #30360 (comment)

    Original: For people using opencode web or opencode serve (and may also work on desktop app, but I haven't tested), you can run this snippet in the devtools console to set the settings.general.showCustomAgents internal setting to true:

    const s = JSON.parse(localStorage.getItem('settings.v3') || '{}');
    s.general = s.general || {};
    s.general.showCustomAgents = true;
    localStorage.setItem('settings.v3', JSON.stringify(s));
    location.reload();
  2. skaldebane commented on Jun 13, 2026

    @skaldebane

    As of 1.17.5 visibility options were added under the "Advanced" section, where custom agents can be toggled from the settings:

    Image

    Still, built-in agents should probably be shown by default regardless of this setting?

  3. dzianisv commented on Jun 26, 2026

    @dzianisv

    Closing — addressed by upstream PR #28788 which adds the showCustomAgents setting and ComposerAgentControl agent picker in v2. Enable via Settings → General → Advanced → Custom agents.

  4. dzianisv commented on Jun 26, 2026

    @dzianisv

    Closing — addressed by upstream PR #28788 (showCustomAgents + ComposerAgentControl in v2). Enable via Settings → General → Advanced → Custom agents.

  5. opencode-agent commented on Jul 5, 2026

    @opencode-agent
    Contributor

    Completed by merged PR #28788, which restored the V2 agent control path. Remaining Desktop V2 controls/status concerns stay in #28686 and variant-specific UI work in #30656.

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

Metadata

Metadata

Assignees

Labels

2.0bugSomething isn't working

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions