Repository navigation
Description
Connect OpenCode Mobile to both OpenCode v1 (unprefixed) and v2 (/api/*) servers without rewriting feature UI. Detect protocol on connect; route under repositories; keep Screen Models on stable domain types.
Users on “better OpenCode” / opencode2 currently fail because the app is a pure v1 client.
Approach: dual-stack behind existing repository interfaces (desktop-style detectServerProtocol + compatible remotes). No Screen Model forks by protocol — only capability flags where v2 has no twin (e.g. Review Changes “Last turn”).
Integration branch: feature/ope-146-server-api-v2
- Cut phase branches from this tip (not
main). - Open every phase PR with base
feature/ope-146-server-api-v2. - Merge to
mainonly when the epic is ready (one ship PR).
Children (work tracked on each child, not duplicated here):
- OPE-147 P0 Detect protocol ← start here
- OPE-148 P1 Read-only home
- OPE-149 P2 Chat history
- OPE-150 P3 Live stream + prompt
- OPE-151 P4 Permissions / questions / catalogs
- OPE-152 P5 Compact / revert / todos / VCS / add-project
- OPE-153 P6 Capability gates / cleanup / tests
- OPE-154 Follow-up: v2 step-failure session error text
- OPE-155 Follow-up: isolate v1/v2 HTTP remotes behind repository ports
Docs:
docs/features/server-api-v2/- Research:
docs/features/server-connection/research-opencode-api-v2.md
Imported from Linear OPE-146. Linear status: Done. Priority: High. Created 2026-08-12. Completed 2026-08-13.
Related: OPE-179, OPE-183, OPE-174, OPE-157.
Activity