opencode icon indicating copy to clipboard operation
opencode copied to clipboard

web: agent picker missing on mobile when Show agent is off

Open patricksmms opened this issue 3 weeks ago • 4 comments

Description

On a phone or tablet, the composer has no way to switch between the built-in Build and Plan agents unless Settings → General → "Show agent" was previously turned on in that browser. That preference is stored per browser, so enabling it in the desktop app does not carry to the phone, and the only other switch is the agent-cycle keybind, which a touch device cannot use.

Steps to reproduce

  1. Open the web app from a phone (or use a mobile viewport) with Show agent off.
  2. Open a session whose Location has both build and plan primary agents.
  3. Look at the composer: only the model and variant pickers are present.
  4. A session left in Plan mode cannot be switched back to Build.

Expected

The composer exposes the agent picker on touch devices whenever another primary agent is available.

Actual

The picker is hidden. When it is shown, it also opens as a desktop popover instead of the bottom-sheet drawer the other composer pickers use on touch.

Additional context

Related: #48810, #57973 (closed as duplicates of the per-browser setting).

patricksmms avatar Nov 06 '26 11:11 patricksmms

Thanks for the clear write-up, @patricksmms!

You're asking for two things on touch devices:

  • show the composer's agent picker whenever another primary agent (such as Plan/Build) is available, even with Settings → General → "Show agent" off;
  • open it as the same bottom-sheet drawer the model picker uses on touch.

Today the app behaves as designed here. The picker is hidden by default, and the setting is saved separately in each browser. The model picker has a drawer version for touch; the agent picker doesn't yet. I agree this leaves no way on a phone to take a session out of Plan unless you turn the setting on in that browser first. For now, turning on Show agent in the phone's browser is the workaround. Maintainers will consider the change.

Related issues:

  • #48810: Plan/Build selector missing in the mobile web UI (closed without a reply)
  • #57973: can't switch Plan to Build in the mobile web UI (closed as a duplicate of #48810)
  • #57812: agent picker hidden in the desktop app because of the same setting
  • #59069: proposal for a dedicated mobile layout for the web app

opencodejr[bot] avatar Nov 06 '26 11:11 opencodejr[bot]

Also hitting this on the official OpenCode Mobile app (latest build): the composer only shows the model and variant pickers, so there is no way to move a session into Plan mode from the phone. The agent picker should be available by default on touch devices, ideally as the same bottom-sheet drawer used by the model picker. A persistent Plan/Build toggle in the mobile composer would also cover the common case.

VincentLF0615 avatar Nov 24 '26 18:11 VincentLF0615

iOS app: agent picker absent entirely — Plan/Build unreachable

Adding an iOS-specific data point to this issue. Official OpenCode iOS app (2.x build) connected to a self-hosted server running opencode 2.2.1.

  • The composer shows no agent control at all — it is not greyed out and not inside another menu. Plan/Build cannot be reached from any UI surface.
  • This started after an iOS app update. The switcher was available before the update.
  • The same server and session render the switcher correctly in the desktop/TUI client, so the server does expose both primary agents.
  • Since touch devices have no agent-cycle keybind, a session left in Plan mode is stuck there on iOS.

This is consistent with the Show agent preference being per-client and off (or reset by the update) in the app's web view. Gating the picker on coarse pointer / touch rather than the stored preference, as #62333 does, should also cover the iOS app.

Environment:

  • opencode server: 2.2.1 (macOS arm64, self-hosted)
  • client: OpenCode iOS app, 2.x build
  • desktop/TUI against same server: switcher present and working
  • repro: consistent (100%)

plotnikau avatar Nov 29 '26 11:11 plotnikau

I have the same issue here, it existed during the beta, but in v1 it was gone

evannotfound avatar Dec 01 '26 18:12 evannotfound