Skip to content

Prototype: server-bound OpenCode projects and remote panels (#1236) - #1296

Closed
pascalandr wants to merge 1 commit into
devfrom
feat/1236-remote-opencode-prototype
Closed

pascalandr wants to merge 1 commit into
devfrom
feat/1236-remote-opencode-prototype

Conversation

@pascalandr

Copy link
Copy Markdown
Contributor

Prototype / WIP

Refs #1236. Draft for Shantur's feedback; do not merge before the owner's decision.

Open projects against the shared local OpenCode service or an explicitly added OpenCode server, without installing CodeNomad in that server's environment. Projects, restored tabs, recents, session authority and event streams carry their server identity. Agent/tool/shell execution and remote project reads go through the selected OpenCode server.

The iterated Remotes → + Project menu supports pairing links/manual addresses and browsing folders in place. The prototype retains credentials in the backend-private pairing file across restarts, per the final prototype decision; rejection/removal forgets them. Server administration remains host-only. Non-loopback connections require verified HTTPS; loopback HTTP is supported.

Remote panels expose read-only Files/working Changes, background shells, Yolo, published usage, plugin inventory and integration status. This port preserves current dev's integration controls, bounded Mission pages, preview lifetime and transcript ordering/projection changes. New host integration controllers and plugin writes are gated before construction/dispatch; remote Missions stay closed.

Boundaries

  • Files/Git UI controls remain read-only: no save, stage/commit or commit-history UI. Agent tools still execute remotely through OpenCode.
  • Remote Missions, worktrees, cleanup, Design, CodeNomad automation, host configuration/service management and rich history parity remain unavailable. Remote clone/temporary projects are follow-ups.
  • Questions/permissions are live-only across disconnects; missed pending-request coverage is incomplete. Remote reads have response/size bounds; file refresh is manual/event-driven.
  • The CodeNomad backend remains on the client side for the current desktop/web app. A mobile UI-only client connecting directly to OpenCode is follow-up work in feat(mobile): Android companion and debug validation CI #860 / ci(ios): source-only validation #861, not delivered here. Phone use is untested.
  • No global production-security or cross-platform/native-parity qualification is claimed.

Validation

User-reported on the earlier Tauri prototype build: pairing, chat, folder navigation, tab restoration and disconnect/reconnect. Those native observations were not repeated after this current-dev port. Remote panels and the final Remotes menu are covered automatically, not claimed as native user-tested here.

Executed on the exported branch, using existing dependencies only:

  • UI, server and Electron typechecks: pass.
  • Backend E1/server/pairing/workspace/capability suite: 280/280. Focused moved-owner tests and schedule/fixture regressions also passed.
  • UI state/lib prototype tests 435/435, current-dev preservation tests 277/277, relay checks 4/4, real SDK/proxy regression 1/1. Subsets overlap; these are not a single summed suite.
  • Desktop groups: 62/62, attachment tests 8/8, lifecycle/registry/request tests 40/40 (overlap).
  • Requested browser suite: 63/63, including the new moved-owner remote/read-only and positive-local boundary regression.
  • Additional local integration browser preservation suite: 134/134, including the repeated remote/read-only boundary regression (overlap with the requested suite).
  • Help: 32/32; staged git diff --check: pass. Redacted added-line secret review found only documentation placeholders, synthetic test links/credentials and the explicitly public loopback TLS fixture.

No dependency installation or install lifecycle hooks, native application rebuild/relaunch, shared OpenCode operation, real remote-server qualification or phone test was performed for this publication. Rust tests were ported/extended but not executed. Earlier prototype build reports are historical context, not validation of this exported tree.

Unrelated source integration-recognition commits, old Zen estimate hunks, generated permissions, local reports/configuration, profiles, credentials, pairing files, logs, binaries and caches are excluded. The original dirty checkout's branch, HEAD, index bytes and all 789 original file hashes are preserved.

Allow one CodeNomad instance to open projects on an explicitly configured OpenCode server as well as its shared local service. Carry immutable server identity through connections, events, session authority, restoration and recents, and provide the iterated inline Remotes project browser with native pairing and backend-private persistent credentials.

Read remote files and working changes through bounded OpenCode adapters. Keep host filesystem/Git mutations, worktrees, Missions and unqualified integrations closed for explicit projects. Port capability admission to current dev's plugin write owners, integration host controllers and scheduled Mission routes while preserving expected revisions, privacy, bounded Mission pages, preview lifetime and HTTP/live transcript ordering. Carry matching Electron/Tauri attachment and host-open guards without rebuilding either native application.

Keep independently delivered Zen usage behavior and current upstream integrations. Update adjacent contracts and help in all ten locales; exclude unrelated source commits, generated permissions, local configuration, credentials and private artifacts.

Validate with UI/server/Electron typechecks, 280 targeted backend tests, focused moved-owner regressions, UI state and upstream-preservation tests, SDK/proxy and desktop checks, targeted browser checks, help tests and staged whitespace/secret review. No dependency installation, native rebuild, real remote-server qualification, phone test or shared-service operation was performed. This is a review prototype with remote UI writes and full Missions/worktree parity intentionally closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant