[FEATURE]: mobile — add and switch between multiple paired servers
Maintainer antworten meist innerhalb von 1 Tag
Dieses Issue hat noch niemand übernommen.
Bewertung
- Schwierigkeit
- 5/5
- Geschätzter Aufwand
- Über eine Woche
- Anfängerfreundlichkeit
- 45/100
- Issue-Typ
- Feature
- Klarheit
- Klar beschrieben
- Aktivitätsstatus
- Aktiv
- Tech-Stack
- android, typescript
- Bereich
- mobile
Rechercherichtung
Start by reading the mobile app’s pairing flow and the related issue #64052, which describes saved servers and deep links. The issue does not name implementation files or tests, so locate how the app stores its current connection and exposes settings before estimating the change. Done means users can add multiple paired servers and switch between them.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Beschreibung
Summary
The official OpenCode Mobile app (ai.opencode.mobilecode) only shows a pairing/QR entry point on first launch. After one computer is paired, there is no visible way to add a second server, so the app is effectively limited to a single computer. Users with more than one machine (for example a desktop and a laptop) cannot switch between them.
Environment
- App: OpenCode Mobile for Android, package
ai.opencode.mobilecode, version 0.8.0 - Server: OpenCode v2.3.2 on macOS (Apple Silicon)
- Pairing method:
opencode service set hostname <LAN IP>followed byopencode pairfor LAN access, andopencode pair --remotefor remote access
Reproduction
- Install the app and pair it with computer A using the first-launch QR/link flow.
- Pair computer B with
opencode service set hostname <B LAN IP>andopencode pair. - Look for a way to add computer B as a second server in the app.
Expected Behavior
The app should expose an "Add server" / "Add connection" action after initial setup, let the user scan or paste additional pairing links, save multiple paired servers, and switch between them. This matches the connection model already implied by the mobile deep-link work in #64052 (opencode://server/<serverKey>/session/<sessionID>, "matches a saved/paired connection in the mobile app").
Actual Behavior
After the first pairing there is no visible entry point for a second server. The app appears to hold a single server connection, and I could not find any settings entry for managing connections.
Additional Context
- Related: #64052 (mobile deep link to a specific saved server/session), where a maintainer mentioned switching to an already paired server. That suggests multiple saved connections are part of the intended model, but the UI does not currently expose adding them.
- Desktop already groups pairing under Settings → Servers, so a similar "Servers" list in the mobile app would be consistent.
- Workaround tried: using the mobile browser with each computer's web UI works, but it is not equivalent to the app experience.
- Frequency: always, on a fresh install with one server already paired.
中文版本
概述
官方 OpenCode Mobile App(包名 ai.opencode.mobilecode)只在首次启动时提供扫码/配对入口。绑定第一台电脑后,界面里看不到添加第二台服务器的入口,实际上只能绑定一台电脑。有多台设备(例如台式机和笔记本)的用户无法在它们之间切换。
环境
- App:OpenCode Mobile for Android,包名
ai.opencode.mobilecode,版本 0.8.0 - 服务端:OpenCode v2.3.2,macOS(Apple Silicon)
- 配对方式:局域网访问使用
opencode service set hostname <局域网 IP>后执行opencode pair;远程访问使用opencode pair --remote
复现步骤
- 安装 App,通过首次启动的扫码/链接流程绑定电脑 A。
- 在电脑 B 上执行
opencode service set hostname <B 的局域网 IP>和opencode pair。 - 在 App 里寻找添加电脑 B 作为第二台服务器的入口。
期望行为
App 在初始设置完成后应提供"添加服务器/添加连接"入口,允许用户扫码或粘贴新的配对链接,保存多台已配对的服务器并在它们之间切换。这与 #64052 中移动端 deep link 设计所体现的连接模型一致(opencode://server/<serverKey>/session/<sessionID>,其中提到"匹配 App 中已保存/已配对的连接")。
实际行为
绑定第一台电脑后,没有任何添加第二台服务器的可见入口。App 看起来只保存一个服务器连接,设置里也没有找到管理连接的入口。
补充信息
- 相关:#64052(移动端 deep link 打开指定已保存服务器/会话),维护者提到可以切换到已配对的服务器。这说明多连接在设计中是存在的,但 UI 目前没有提供添加入口。
- 桌面端已经把配对入口归在 设置 → 服务器(Servers)下,移动端增加类似的"服务器"列表会比较一致。
- 尝试过的替代方案:用手机浏览器分别打开每台电脑的 web UI 可以使用,但体验与 App 不等价。
- 出现频率:必现,在已经绑定一台服务器的情况下全新安装 App 后即可观察到。
- Vorherrschende Sprache
- TypeScript
- Sterne
- 227k
- Forks
- 30.7k
- Ø Merge
- 3 Std. 57 Min.
- Gemergte PRs (30 T.)
- 484
Entwicklungsumgebung
- Kein Dockerfile und keine Docker-Compose-Datei
- Hat eine Pull-Request-Vorlage
- Beitragsleitfaden lesen
Erste Schritte
- Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
- Forken Sie das Repository und arbeiten Sie in einem Branch.
- Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.
Mehr aus anomalyco/opencode
-
[Site] Active section detection should respect scroll-margin-topEvtl. vergeben Ein verknüpfter Pull Request ist offen oder bereits gemergt. Offenarea/web reproduced type/bug
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 65/100
anomalyco/opencode#65384 · 1 Kommentar ·
Maintainer antworten meist innerhalb von 1 Tag
-
area/cli type/feature version/v2
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 68/100
anomalyco/opencode#65379 · 1 Kommentar ·
Maintainer antworten meist innerhalb von 1 Tag
-
Shell tool: no upper bound on the timeout a model can ask for, so one call can hold a turn for hoursOffenarea/core platform/linux type/feature version/v2
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 75/100
anomalyco/opencode#65254 · 1 Kommentar ·
Maintainer antworten meist innerhalb von 1 Tag
-
inference/go type/feature
Schwierigkeit 1/5 1-3 Stunden Anfängerfreundlichkeit 72/100
anomalyco/opencode#65148 · 1 Kommentar ·
Maintainer antworten meist innerhalb von 1 Tag
-
area/providers type/feature version/v2
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 68/100
anomalyco/opencode#64845 · 1 Kommentar ·
Maintainer antworten meist innerhalb von 1 Tag
Alle Issues in anomalyco/opencode
Ähnliche Issues
-
[Provider] antigravity-acp catalog omits gemini-4-hydrogen and gemini-4-neon that agy acp offersEvtl. vergeben Ein verknüpfter Pull Request ist offen oder bereits gemergt. Offencatalog provider provider-compatibility
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 62/100
lidge-jun/opencodex#9037 · 1 Kommentar · 1 Reaktion ·
Maintainer antworten meist innerhalb von 1 Tag
-
Schwierigkeit 1/5 Unter einer Stunde Anfängerfreundlichkeit 62/100
slavakurilyak/awesome-ai-agents#1005 ·
-
kind/bug triage/unresolved
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 60/100
Maintainer antworten meist innerhalb von 1 Tag
-
effort:S P3 refactor
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 72/100
nightscout/nocturne#3735 ·
Maintainer antworten meist innerhalb von 1 Tag
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 62/100
wpilibsuite/systemcore-blocks-interface#641 ·
Maintainer antworten meist innerhalb von 2 Tagen