Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
33 commits
Select commit Hold shift + click to select a range
3134e2a
fix(ui): keep session deletion responsive on long-context projects (#…
heunghingwan Nov 13, 2026
760a551
feat(ui): open project-file links from replies in the file reader (#1…
heunghingwan Nov 13, 2026
7f0dec7
feat(opencode): require OpenCode 2.3.0 and adapt subagent, Code Mode …
pascalandr Nov 13, 2026
c0ea1dd
feat(integrations): manage integrations from their Plugins rows (#1492)
pascalandr Nov 13, 2026
1a9b0f9
perf(ui): defer session-mount highlights and tool bodies (#1486)
heunghingwan Nov 13, 2026
d9af2f2
test: fence flaky Mermaid and plugin serialization checks
pascalandr Nov 13, 2026
f8f2f7c
fix(electron): bundle sandboxed preloads without shared chunks
pascalandr Nov 13, 2026
0fd9f95
fix(tauri): keep the window's own webview below a visible Linux menu …
pascalandr Nov 13, 2026
b7c2f95
test: stabilize Mermaid timeout and plugin serialization checks (#1502)
pascalandr Nov 13, 2026
c8dae86
perf(ui): coalesce scroll observations and transcript measurement (#1…
heunghingwan Nov 13, 2026
a8dce5f
Merge remote-tracking branch 'origin/dev' into fix/electron-self-cont…
pascalandr Nov 13, 2026
8d0eba9
fix(electron): preserve preload fixture paths on Linux
pascalandr Nov 13, 2026
3aee270
fix: preserve composer focus and synchronize server regressions
pascalandr Nov 14, 2026
5eba9a7
fix: preserve composer focus and synchronize server regressions (#1506)
pascalandr Nov 14, 2026
52f5a66
fix(electron): bundle sandboxed preloads without shared chunks (#1505)
pascalandr Nov 14, 2026
2541a91
fix(missions): prepare recurring activation and distinguish scheduled…
pascalandr Nov 14, 2026
c98a798
chore: sync feat/multi-backend with dev
pascalandr Nov 14, 2026
6027ab2
feat(integrations): one written, clickable state line per integration…
pascalandr Nov 15, 2026
7dc893c
feat(ui): restore a browser tab's projects and drafts after a reload …
pascalandr Nov 15, 2026
0f41f4e
fix(plugins): toggling a plugin replaces its earlier rules instead of…
pascalandr Nov 15, 2026
7985780
fix(plugins): keep long commit versions from hiding plugin names (#1517)
heunghingwan Nov 15, 2026
7a24222
fix(transcript): retain released tool bodies across remounts (#1518)
heunghingwan Nov 15, 2026
c55dbcf
fix(usage): show OpenCode Console counts as reported, with the credit…
pascalandr Nov 15, 2026
f1fb2af
feat(ui): keep unsent drafts when a project tab closes (#1522)
pascalandr Nov 15, 2026
e55af8e
fix(transcript): keep Latest effective during streaming (#1520)
heunghingwan Nov 15, 2026
44f9548
Merge remote-tracking branch 'origin/feat/multi-backend' into sync/mu…
pascalandr Nov 15, 2026
19b1ee3
refactor(ui): show assistant metadata in reasoning (#1487)
bluelovers Nov 15, 2026
0fafd8e
fix(sidecars): opt in to SideCars over verified direct HTTPS origins …
pascalandr Nov 15, 2026
fee7b61
chore: sync multi-backend restore and drafts with dev
pascalandr Nov 15, 2026
9f7d448
test: align media fixtures with the supported OpenCode contract
pascalandr Nov 15, 2026
eabbb6f
feat(server): let administrators disable Remote Control and lock the …
pascalandr Nov 15, 2026
829e1ad
chore: sync multi-backend security policy with dev
pascalandr Nov 16, 2026
515bdfc
test: include SideCar permission in the metadata contract
pascalandr Nov 16, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
12 changes: 10 additions & 2 deletions .github/workflows/pr-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -472,6 +472,9 @@ jobs:
packages/ui/src/lib/native/browser.test.ts
packages/ui/src/lib/runtime-env.test.ts
packages/ui/src/lib/session-transcript-lru.test.ts
packages/ui/src/lib/session-transcript-measurement.test.ts
packages/ui/src/lib/markdown-highlight-schedule.test.ts
packages/ui/src/lib/frame-batch-schedule.test.ts
packages/ui/src/lib/server-meta.test.ts
packages/ui/src/lib/theme-scheme.test.ts
packages/ui/src/lib/trailing-resync.test.ts
Expand Down Expand Up @@ -588,10 +591,14 @@ jobs:
packages/ui/src/components/tool-call/diff-payload.test.ts
packages/ui/src/components/tool-call/renderers/edit.test.ts
packages/ui/src/components/tool-call/renderers/task-title.test.ts
packages/ui/src/components/tool-call/renderers/subagent-report.test.ts
packages/ui/src/components/tool-call/renderers/execute-data.test.ts
packages/ui/src/components/tool-call/renderers/bash-data.test.ts
packages/ui/src/components/prompt-input/usePromptState.test.ts
packages/ui/src/components/prompt-input/backend-history.test.ts
packages/ui/src/components/session/provider-usage-panel.test.ts
packages/ui/src/lib/hooks/use-active-session-message-load.test.ts
packages/ui/src/lib/assistant-meta.test.ts
packages/ui/src/lib/sdk-manager.test.ts
packages/ui/src/lib/tool-content.test.ts
packages/ui/src/lib/background-read-queue.test.ts
Expand Down Expand Up @@ -638,6 +645,7 @@ jobs:
packages/ui/src/stores/opencode-data-idle.test.ts
packages/ui/src/stores/opencode-projection-frame.test.ts
packages/ui/src/stores/opencode-data-settlement.test.ts
packages/ui/src/stores/opencode-data-round-boundary.test.ts
packages/ui/src/stores/opencode-data-reconnect.test.ts
packages/ui/src/stores/opencode-data-trailing-read.test.ts
packages/ui/src/stores/opencode-data-read-merge.test.ts
Expand All @@ -650,8 +658,7 @@ jobs:
packages/ui/src/lib/settings/behavior-registry.test.ts
packages/ui/src/components/instance/shell/right-panel/core-plugin.test.ts
packages/ui/src/components/instance/shell/right-panel/registry.test.ts
packages/ui/src/components/instance/shell/right-panel/integration-sections.test.ts
packages/ui/src/components/integration-section-state.test.ts
packages/ui/src/lib/integration-row-state.test.ts
packages/ui/src/lib/i18n/messages/integrations-locales.test.ts
packages/ui/src/stores/message-v2/empty-content.test.ts
packages/ui/src/stores/permission-lifecycle.test.ts
Expand Down Expand Up @@ -686,6 +693,7 @@ jobs:
packages/ui/src/stores/worktrees-delete.test.ts
packages/ui/src/stores/project-names.test.ts
packages/ui/src/stores/temporary-instances.test.ts
packages/ui/src/stores/closed-workspace-drafts.test.ts

- name: Test server
run: node --import tsx --test "packages/server/src/**/*.test.ts"
Expand Down
4 changes: 2 additions & 2 deletions .opencode/skills/codenomad-architecture-guide/SKILL.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,9 @@ description: |

## Native OpenCode V2 Baseline

- Runtime requirements live in `opencode/runtime-support.ts`: OpenCode 2.2.3 is the minimum, required by the `experimental_image_generate` image tool contract (upstream #60258) that the Images gallery, Design agent and Images settings consume; it also provides Code Mode's JavaScript job ordering (`scripts/test-codemode-jobs-native.mjs`) and the `native`/`metadata.keepID` replay contract consumed by the pinned client reducer; 2.2.7 is the recommendation. Each blocking requirement needs demonstrated API/behavior evidence; distinguish technically incompatible, recommended/tested and unverified versions. Shared-daemon restart is explicit and uses the native-parent launch bridge. See `dev-docs/OPENCODE_COMPATIBILITY.md` for the version boundaries and `dev-docs/OPENCODE_RUNTIME_SETUP.md` for setup, installation and admission.
- Runtime requirements live in `opencode/runtime-support.ts`: OpenCode 2.3.0 is the minimum and the recommendation, required by the background subagent report contract (every subagent call returns at once and the child reports through synthetic `<subagent>` messages) and by the `experimental_image_generate` image tool contract (upstream #60258) that the Images gallery, Design agent and Images settings consume; it also provides Code Mode's JavaScript job ordering (`scripts/test-codemode-jobs-native.mjs`) and the `native`/`metadata.keepID` replay contract consumed by the pinned client reducer. Each blocking requirement needs demonstrated API/behavior evidence; distinguish technically incompatible, recommended/tested and unverified versions. Shared-daemon restart is explicit and uses the native-parent launch bridge. See `dev-docs/OPENCODE_COMPATIBILITY.md` for the version boundaries and `dev-docs/OPENCODE_RUNTIME_SETUP.md` for setup, installation and admission.

- Server and UI pin the official `@opencode/client@2.2.3` together; native plugins pin `@opencode/plugin@2.2.3` for authoring and use `packages/server/scripts/native-plugin-build.mjs` to keep Effect/public SDK modules external. The daemon supplies their runtime instances. The canonical server-info client is `server.info()`, adapted to the authenticated discovered route. Review official V2 docs, installed declarations, generated wire paths and native integration tests when upgrading. Never infer a minimum from the latest publication or dependency pin alone. Update `dev-docs/OPENCODE_COMPATIBILITY.md` in place and retain detailed evidence in PR/CI logs. The runtime CLI is managed independently.
- Server and UI pin the official `@opencode/client@2.3.0` together; native plugins pin `@opencode/plugin@2.3.0` for authoring and use `packages/server/scripts/native-plugin-build.mjs` to keep Effect/public SDK modules external. The daemon supplies their runtime instances. The canonical server-info client is `server.info()`, adapted to the authenticated discovered route. Review official V2 docs, installed declarations, generated wire paths and native integration tests when upgrading. Never infer a minimum from the latest publication or dependency pin alone. Update `dev-docs/OPENCODE_COMPATIBILITY.md` in place and retain detailed evidence in PR/CI logs. The runtime CLI is managed independently.
- Do not use `@opencode-ai/sdk`, `@opencode-ai/sdk/v2/client`, or `createOpencodeClient()`; follow installed `@opencode/client` declarations.
- Never add general plugin extension points. The narrow native integrations are the bundled `codenomad.automation` plugin, project-local native session coordination (`codenomad.missions`) and the bundled session-pruning RPC; see `dev-docs/BROWSER_AUTOMATION.md`, `dev-docs/MISSIONS.md` and `dev-docs/SESSION_PRUNING_RPC.md`. All automation tools follow backend presence, sharing the authenticated native transport and execution-time session/window fences.
- The server uses the selected host or WSL CLI's official `service status`, `service start`, and `service get password` lifecycle to connect to one externally owned global OpenCode daemon. It owns no private port/database/registration/PID and never stops the daemon on backend shutdown. WSL requires Windows localhost forwarding and uses no cross-namespace PID operations.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ Client-state V3 is a per-window envelope over the V2 content-addressed partition

| Owner | Responsibilities | Main paths |
|---|---|---|
| OpenCode V2 | Sessions, messages, permissions, Forms, files, session Shell/instructions, background Shells, interactive PTYs | pinned `@opencode/client@2.2.3` contract across server and UI; host-owned native plugin runtime |
| OpenCode V2 | Sessions, messages, permissions, Forms, files, session Shell/instructions, background Shells, interactive PTYs | pinned `@opencode/client@2.3.0` contract across server and UI; host-owned native plugin runtime |
| CodeNomad server | Shared service lifecycle, locations, proxy authorization, Git mutations, Yolo, auth, storage, speech, SSE multiplexing, desktop automation bridge | `packages/server/src/` |
| CodeNomad UI | Generated Promise clients, state reconciliation, interaction and rendering | `packages/ui/src/` |
| Desktop hosts | Start CodeNomad and provide native OS integration | `packages/electron-app/`, `packages/tauri-app/` |
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@

## Package

CodeNomad server and UI pin `@opencode/client@2.2.3`. The runtime CLI is managed independently; startup validates authenticated loopback `/api/info`, then (only to identify an outdated daemon) `/api/status`, then `/api/health`, advancing only on HTTP 404 with the same endpoint, credentials and deadline. Each response has its own validated schema and a 64 KiB bound. The shared transport forwards canonical `server.info()` unchanged. Review official V2 docs, installed declarations, generated routes and native regression tests together when upgrading.
CodeNomad server and UI pin `@opencode/client@2.3.0`. The runtime CLI is managed independently; startup validates authenticated loopback `/api/info`, then (only to identify an outdated daemon) `/api/status`, then `/api/health`, advancing only on HTTP 404 with the same endpoint, credentials and deadline. Each response has its own validated schema and a 64 KiB bound. The shared transport forwards canonical `server.info()` unchanged. Review official V2 docs, installed declarations, generated routes and native regression tests together when upgrading.

Runtime requirements live in `packages/server/src/opencode/runtime-support.ts`: minimum 2.2.3 (the `experimental_image_generate` image tool contract, Code Mode JavaScript job ordering and the `native`/`metadata.keepID` replay contract), with the recommendation (2.2.7) tracked separately. Native builds share the daemon's Effect/public SDK instead of bundling a second runtime. The shared connection binds authenticated runtime identity, the canonical client and forwarding transport. Admission precedes functional requests/plugin provisioning; unlisted custom/prerelease/future labels require authenticated bounded API recognition. Never add operation-specific retry fallbacks. See `dev-docs/OPENCODE_COMPATIBILITY.md` for the version boundaries and `dev-docs/OPENCODE_RUNTIME_SETUP.md` for admission.
Runtime requirements live in `packages/server/src/opencode/runtime-support.ts`: minimum 2.3.0 (the background subagent report contract, the `experimental_image_generate` image tool contract, Code Mode JavaScript job ordering and the `native`/`metadata.keepID` replay contract), with the recommendation (also 2.3.0) tracked separately. Native builds share the daemon's Effect/public SDK instead of bundling a second runtime. The shared connection binds authenticated runtime identity, the canonical client and forwarding transport. Admission precedes functional requests/plugin provisioning; unlisted custom/prerelease/future labels require authenticated bounded API recognition. Never add operation-specific retry fallbacks. See `dev-docs/OPENCODE_COMPATIBILITY.md` for the version boundaries and `dev-docs/OPENCODE_RUNTIME_SETUP.md` for admission.

The Promise client preserves the full `baseUrl` path prefix. Forward its generated URL unchanged through `createInstanceFetch`; remove the proxy prefix only when classifying reads for scheduling. Declared API errors are `Error` instances retaining their native `_tag`/data fields. Client errors retain structured `reason`/`cause`, and their `message` may add status, content type or cause detail: classify by structured fields, never exact message text.

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@

## Contract

- Server and UI pin `@opencode/client@2.2.3`. Manage the runtime CLI independently: startup checks authenticated loopback `/api/info`, then (only to identify an outdated daemon) `/api/status`, then `/api/health`, advancing only on HTTP 404. All probes share the endpoint, credentials, 64 KiB response bound and absolute deadline; authentication, transport and malformed response failures end discovery without fallback. The shared transport forwards canonical `server.info()` unchanged. Review documentation, installed declarations and proxy/API parity whenever the client contract changes.
- Server and UI pin `@opencode/client@2.3.0`. Manage the runtime CLI independently: startup checks authenticated loopback `/api/info`, then (only to identify an outdated daemon) `/api/status`, then `/api/health`, advancing only on HTTP 404. All probes share the endpoint, credentials, 64 KiB response bound and absolute deadline; authentication, transport and malformed response failures end discovery without fallback. The shared transport forwards canonical `server.info()` unchanged. Review documentation, installed declarations and proxy/API parity whenever the client contract changes.
- The package root is the generated zero-Effect Promise client. Use installed declarations; never follow `@opencode-ai/sdk` examples.
- Native routes are `/api/*`; CodeNomad exposes them only through the authorized `/workspaces/:id/instance` proxy.
- That proxy is an explicit method/path allowlist: expose each new upstream API only after review.
- Proxy authorization and forwarding share one acquired connection. A stale generation must be rejected at actual HTTP dispatch, including after asynchronous body preparation; late streams cannot invalidate a replacement connection.
- The technical minimum is 2.2.3 for the `experimental_image_generate` image tool contract (upstream #60258: tool, permission action, job type and notice `metadata.source` share that name; on unless `experimental.image_generate` is `false`), alongside Code Mode's JavaScript job ordering and the `native` replay and `metadata.keepID` compaction shapes consumed by the pinned client reducer; the recommendation, 2.2.7, is a separate constant. Plugins use host-owned Effect/public SDK modules through the shared native build settings. Unknown version labels, prereleases and future majors undergo bounded authenticated API recognition, including session environment support. Native `session.inbox.enqueued` has its own shape: its timestamp lives in event metadata, unlike an HTTP inbox record.
- The technical minimum is 2.3.0 for the background subagent report contract (calls return at once; children report through synthetic `<subagent>` messages) and the `experimental_image_generate` image tool contract (upstream #60258: tool, permission action, job type and notice `metadata.source` share that name; on unless `experimental.image_generate` is `false`), alongside Code Mode's JavaScript job ordering and the `native` replay and `metadata.keepID` compaction shapes consumed by the pinned client reducer; the recommendation, also 2.3.0, is a separate constant. Plugins use host-owned Effect/public SDK modules through the shared native build settings. Unknown version labels, prereleases and future majors undergo bounded authenticated API recognition, including session environment support. Native `session.inbox.enqueued` has its own shape: its timestamp lives in event metadata, unlike an HTTP inbox record.
- Never retry a write using another contract after a 400/404/transport failure. Keep the setup/recovery path distinct from functional transport and never replay prompts.

## Location Is Authority
Expand Down
2 changes: 1 addition & 1 deletion CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ Then open a pull request on GitHub targeting the `dev` branch.

### OpenCode V2 Boundaries

- Server and UI pin `@opencode/client@2.2.3`; native plugins pin `@opencode/plugin@2.2.3` for authoring but resolve Effect and the public SDK from the daemon at runtime. Upgrade pins together with the lockfile and isolated native validation. The runtime CLI is managed independently; its demonstrated minimum and recommended/tested versions remain separate constants in `packages/server/src/opencode/runtime-support.ts` (minimum 2.2.3 for the `experimental_image_generate` image tool contract of upstream #60258, consumed by the Images gallery, Design agent and Images settings; recommended 2.2.5). A build pin alone is never a runtime requirement, and unfamiliar newer/custom labels retain authenticated contract recognition. Review current OpenCode documentation, installed declarations, and proxy/API parity whenever the client contract changes.
- Server and UI pin `@opencode/client@2.3.0`; native plugins pin `@opencode/plugin@2.3.0` for authoring but resolve Effect and the public SDK from the daemon at runtime. Upgrade pins together with the lockfile and isolated native validation. The runtime CLI is managed independently; its demonstrated minimum and recommended/tested versions remain separate constants in `packages/server/src/opencode/runtime-support.ts` (minimum 2.3.0 for the background subagent report contract and the `experimental_image_generate` image tool contract of upstream #60258, consumed by the subagent cards, Missions, the Images gallery, Design agent and Images settings; recommended 2.3.0). A build pin alone is never a runtime requirement, and unfamiliar newer/custom labels retain authenticated contract recognition. Review current OpenCode documentation, installed declarations, and proxy/API parity whenever the client contract changes.
- Upgrade references: [OpenCode V2 changelog](https://opencode.ai/changelog) (GitHub Releases list V1), the exact release tags (`vX.Y.Z`) or published npm packages for source/declaration deltas, [OpenCode V2 documentation](https://opencode.ai/v2/docs/), and `node_modules/@opencode/client/dist/promise/`.
- `packages/server/src/workspaces/opencode-service.ts` uses the selected host or WSL CLI's official `service status`, `service start`, and `service get password` lifecycle to connect to one externally owned global daemon. CodeNomad owns no private port, database, registration, or daemon PID and never stops the daemon on backend shutdown.
- WSL requires Windows localhost forwarding and runs the Linux CLI lifecycle inside the distribution; never inspect or signal Linux PIDs from Windows.
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ npx @neuralnomads/codenomad-dev --password "your-password" --launch

## OpenCode V2 and upgrading from 0.19.x

CodeNomad **1.0.0 requires OpenCode V2**: **2.2.3 minimum, 2.2.5 recommended**; the minimum provides the image generation tool used by the Images settings and the Design extension. OpenCode V1 and the former V2 beta protocol are not supported. The current requirements are maintained in [`runtime-support.ts`](packages/server/src/opencode/runtime-support.ts).
CodeNomad **requires OpenCode V2 2.3.0 or later** (also the recommended version); it provides the background subagent reports shown in subagent cards and used by Missions, and the image generation tool used by the Images settings and the Design extension. OpenCode V1 and the former V2 beta protocol are not supported. The current requirements are maintained in [`runtime-support.ts`](packages/server/src/opencode/runtime-support.ts).

- **One shared OpenCode service** owns sessions and messages. Closing a CodeNomad tab, window, or backend leaves that service running. Desktop tabs, drafts, and layout are restored separately for each window.
- **Use an existing CLI or install from CodeNomad.** Executables on `PATH` are preferred; the setup screen also supports a selected executable and a shared user npm installation. The former private CodeNomad OpenCode installation is no longer used.
Expand Down Expand Up @@ -166,7 +166,7 @@ Add SideCar as:

## Requirements

- **[OpenCode V2](https://opencode.ai/v2/docs/)** — 2.2.3 minimum and 2.2.5 recommended for CodeNomad 1.0.0. Install/select it through desktop setup or provide a compatible CLI on the server host.
- **[OpenCode V2](https://opencode.ai/v2/docs/)** — 2.3.0 minimum and recommended. Install/select it through desktop setup or provide a compatible CLI on the server host.
- **[Git](https://git-scm.com/downloads)** — a prerequisite for full functionality (repository identity, Git operations and worktrees). Git must be executable in the CodeNomad backend's `PATH`; it is not bundled with the desktop installers.
- **Node.js and npm** — required for the standalone npm server and source builds; desktop releases include their own (Electron's integrated Node or Tauri's bundled Node, with npm). Use **Node.js 24 LTS**; development and release builds use the version in [`.node-version`](.node-version).

Expand Down
Loading
Loading