Skip to content

Release v1.1.0 - Design, memory and event-driven Missions - #1395

Merged
shantur merged 281 commits into
mainfrom
dev
Nov 18, 2026
Merged

shantur merged 281 commits into
mainfrom
dev

Conversation

@pascalandr

@pascalandr pascalandr commented Nov 8, 2026 •

Copy link
Copy Markdown
Contributor

CodeNomad 1.1.0 - Design, memory and event-driven Missions

Create images in a dedicated Design workspace, carry useful knowledge between conversations, and let Missions respond to schedules and repository activity. CodeNomad 1.1 also makes long conversations more responsive and keeps your workspace easier to recover across project tabs, browser reloads and mobile app switches.

Before upgrading

  • OpenCode 2.3.0 is the minimum and recommended runtime. CodeNomad 1.1 refuses 2.2.x services. Updating CodeNomad does not update or restart OpenCode: review Settings > OpenCode, install or select a compatible executable, and explicitly restart the shared service when needed. That restart can interrupt other connected clients (feat(opencode): require OpenCode 2.3.0 and adapt subagent, Code Mode and shell results #1491).
  • The remotely updated 1.1 interface requires a CodeNomad 1.1.0+ server. Older servers retain their cached or bundled interface until the application/server is updated.
  • Memory is off by default. Design requires the separately installed and enabled panel extension and suitable configured models. Requests prepared by the Design panel remain editable until you send them.
  • Windows packages ship without production code signing. Windows may show an unknown-publisher warning.

Design and Images

Optional local agent memory

Missions that run on schedules and events

Integrations managed from Plugins

Clearer, more responsive conversations

A workspace that stays yours

Desktop, diagnostics and access

History, search, navigation, Images and technical cleanup support OpenCode's optional split assistant-part storage. Plugin readiness handles accumulated backend presence records, and assistant text stays searchable with the updated SQLite runtime (#1359, #1453, #1490).

Support CodeNomad

CodeNomad is free and open source, maintained full time by Pascal Andr├®. You can support its continued development through GitHub Sponsors or Ko-fi.

Full changelog: v1.0.1...v1.1.0

pascalandr and others added 30 commits October 31, 2026 06:27
Step 6 of 6 toward removing the Missions limits (#1167 follow-up), after
per-mission capacity (#1178) and panel summaries (#1180). **Each mission
is now bounded only by its own 2,000-entry journal; the 8-actor and
96-task caps are gone.**

## Change
- **Capacity:** the fixed deletion reserve becomes `2 x (1 + actors)`
inside the 2,000 entries, so one Stop and then the deletion always fit
(actors join only through ordinary writes, which keep it; a Stop keeps
the deletion's share). 2,000 is both the write and the read bound of a
range.
- **Control:** Stop/Pause/Play in waves of 8 actors.
- **Validation:** actor/task caps removed from the reducer, parser,
schemas and tool inputs. The other bounds are now natural ones:
  - dependency updates must each name a distinct task;
  - control and cleanup targets are bounded by the receipts they need;
  - recurring passages lose their 8/96 and 32-target limits;
  - completed recurring control records drop their target list.
- **Reads:**
- `mission.inspect` pages maps over 100,000 characters (`taskOffset`,
with page actors);
- the actor context lists at most 32 open assignments and points to
inspect for the rest;
- activity keeps its 160-actor budget but prioritizes actors with open
requests, then open work, and projects a `partial` family instead of
giving up.
- **UI:** keyed task tree/graph lookups; saved toggles keep the newest
that fit; seen completions use a watermark on the new `finishedAt` plus
a bounded list (any number tracked; a shown completion never reads as
unseen).
- Existing mission data is negligible: no legacy handling by design.
Docs describe the remaining budgets.

## Validation
- `mission-scale.test.ts`: a 40-actor, 500-task mission through every
lifecycle step, then a full mission is stopped and deleted, with
schema-checked RPC outputs and inspect paging.
- Focused tests for capacity, inspect-view, activity priority,
attention, seen-store overflow and reload, recurring control compaction,
the current-passage route and dependency uniqueness. Each fails with its
fix reverted.
- Server and UI typecheck; 790 server missions tests; 451 route/plugin
tests; 221 UI units; all 36 mission browser files; `test:help`;
`test-missions-native.mjs` on isolated OpenCode 2.2.3, including a
12-actor / 107-task stage.
- `presence-native` (opt-in, needs a CLI path) fails identically on
unmodified dev.
…1229)

Slice 1 of 5 of bounded Missions reads: R4 of #1220, accepted for this
follow-up series. Since #1220, a mission's content is bounded only by
its 2,000 journal entries, so every body must be reachable through
bounded, exact reads instead of whole maps.

## Series
1. **This PR:** an exact, digest-pinned content read (RPC and route),
plus bounded mutation tool results.
2. UI readers, the editor, Save as brief and Compare/decision artifacts
fetch bodies through the content route, behind a fenced display cache.
Maps stay full.
3. Compact `list`/`mission` maps, with bodies replaced by `{ characters,
digest }`; authoritative admission and mutation reads stay full. This
covers the 48 MB panel case.
4. Paged compact task rows for the tree and graph, with omitted rows and
edges shown and a way to read further.
5. The current passage: a compact projection plus content within its 32
MiB response and 256 KiB entry limits. This covers the 864-task case.

## Change
- `MissionControl.content`, the `content` RPC and `GET
/api/workspaces/:id/missions/:missionID/content` read exactly one body,
from one range read of that mission. A body is:
  - a mission field or a task field;
  - a task's reports;
- a report by ID, whether current, earlier or late, and never
substituted;
  - a plan change by revision.
- **Slicing and digests:**
  - Slices fit the 100,000-character inspect bound, in two-space JSON.
- Each slice repeats its first answer's digest and is refused
(`content-changed`) when the value differs.
  - Unrelated revisions don't invalidate a read.
- **Route checks:** the route reuses the list's workspace, plugin and
project checks. An older plugin answers `plugin-unavailable`, with no
fallback read.
- **Mutation tool results:**
  - Delegate, report, revise and briefing results fit the same bound.
- An oversized frontier or assignment prompt becomes an exact
`mission.inspect` continuation.
  - `revise` pages its affected tasks.
- The delegate tool instructs reading the prompt whole and never passing
the marker.
- **Not visible yet:** no UI consumer, and maps are unchanged.

## Validation
- Content reads recover every field exactly across slices (escaped text,
emoji, late/historical reports, plan changes) and refuse a changed
value. The route refuses a foreign project. Mutation results stay
bounded with exact continuations.
- Each test fails with its fix reverted.
- Server and UI typecheck; 1,278 server
missions/opencode-missions/mission route tests; `build:missions`;
`test-missions-native.mjs` on isolated OpenCode 2.2.3 (20 gates).
- Before the rebase, the author also ran all 37 `mission*` browser
files, `automation-forms`, the UI units and `test:help`.
## Summary

OpenCode's built-in `/goal <objective>` keeps a session working turn
after turn until its reviewer judges the objective met, and pauses the
goal on its own after a stop, a failed run, stalls, its round limit or a
service restart. CodeNomad already listed `/goal` in the composer picker
(it comes from `command.list`) but showed nothing of the goal itself.

While the shown session has a goal, the **Status** tab now shows **one
line above Tokens**:

- a status badge: **Active**, **Paused** or **Complete**;
- the objective on one line with an ellipsis; hovering or focusing it
shows the full objective and the reason for the last change (why it
paused or was met), which is also the row's accessible description;
- the rounds used out of the maximum (`2/50`);
- **Pause goal** / **Resume goal** (one button that keeps focus when the
state flips) and **Clear goal**.

Without a goal, without a session, on a runtime without goal support or
after a failed read, nothing renders (no hint, no gap). The line is not
a Status section: it cannot be hidden or reordered.

## How it works

- **Read path:** the instance proxy refuses plugin RPCs, so `GET
/api/workspaces/:id/sessions/:sessionId/goal`
(`server/routes/session-goal.ts`, contract in
`opencode/goal-contract.ts`) validates the session ID, reads the
session, checks that its Location belongs to the workspace, then calls
the fixed `opencode.goal` `get` in that Location (8 s timeout, abort on
disconnect). It returns only the displayed fields; a missing RPC or
method answers `unsupported`, any other failure or malformed output
`unavailable`.
- **Freshness:** plugin RPC events already reach the UI through the
native event relay (as `rpc.codenomad.missions.changed` does), so the
store follows `rpc.opencode.goal.changed` for tracked sessions, with a
per-session version that drops replies older than a change already
heard. It also reads when the line is shown (Status visible, session
switch), on reconnect (coalesced) and after its own commands. It never
polls; a failed read keeps the last goal shown; deleting the session or
stopping the workspace drops it.
- **Commands:** the buttons reuse the composer's native command path
(`executeCustomCommand(..., "goal", "pause" | "resume" | "clear")`, with
session admission, instruction sync and the profile environment). They
are disabled while a command runs; a refused command (for example
pausing without an active goal) shows OpenCode's message.

## Contract

Upstream `@opencode/schema/goal` (anomalyco/opencode #59437, #59850;
shipped in 2.2.1, identical goal files in 2.2.3 and 2.2.5): RPC
`opencode.goal` with `get({ sessionID }) -> Goal.State | null` and event
`changed { sessionID, goal }` published in the session's Location on
every write. Documented in `dev-docs/OPENCODE_COMPATIBILITY.md`
("Session goal"); refresh policy row in `CACHE_REFRESH_CONVENTIONS.md`;
line convention in `UI_SHELL.md`.

## Help

New `conversations.md#goal` section (start, read, pause/resume/clear,
automatic pauses) and a sentence in `settings.md` about the Status line,
in English and all nine translations.

## Validation

- Root and server typecheck clean.
- Route tests 3/3; store tests 8/8 (with and without
`--conditions=browser`), including rapid session switching through the
shared background read queue and hidden sessions.
- Browser: `session-goal` (no goal, active with Pause, paused with
Resume and reason, Complete, Clear, command arguments, update after
`changed`, keyboard focus kept on the toggle across Pause and Resume,
line above Tokens) and `status-panel` 6/6; `status-tokens` and
`fixture-wiring` also pass.
- Ten-locale help 31/31.
- Native `scripts/test-session-goal-native.mjs` against the exact
OpenCode **2.2.5** CLI (twice): `get` returns null for a new session and
another workspace gets 403; `/goal pause` without a goal fails with
OpenCode's message; a goal set with the fake provider is paused by the
reviewer, then resumed and cleared, with the `changed` events relayed to
the owning workspace. CI runs it on the minimum and latest runtime
lanes; the store test joins the UI unit list.
- Full server suite on the rebased branch: 2,841 passed, 9 skipped; the
`plugin-controls` (same-target serialization) and `panel-extension-api4`
(deadline/abort) timing tests failed and the `index.test.ts` shutdown
test was cancelled under full-suite load. None of them touches this
change, and all three files pass alone (44/44).

Large files touched with 1–4 line changes:
`packages/server/src/server/http-server.ts` (~2,490 lines),
`packages/ui/src/lib/api-client.ts` (~860 lines).
…ndows on Windows (#1230)

On Windows the browser fixture daemon is spawned detached, so it has no
console. Vite runs `net use` as it starts (exec without windowsHide), and
a console program started by a process without a console gets a new,
visible one: every daemon start, once per browser test file run on its
own, opened a Windows Terminal window that took keyboard focus from
whatever the user was typing in, in any application.

daemon.mjs now imports hide-console-windows.mjs first. On Windows it
makes spawn, exec and execFile (and their sync variants) default to
windowsHide: true, keeps promisify(exec) working, and syncs the builtin
ES module exports so Vite's ES import of exec gets the hidden variant.
spawn and execFile keep their options after an explicit undefined or
null argument list. Other platforms are unchanged.

Validation: a desktop trace attributed every focus-stealing window,
about one every 25 seconds while browser tests ran, to a daemon's
`net use`. A detached Node child spawned like the daemon that imports
the module and runs `net use` through an ES import of exec opens no
console (four runs). hide-console-windows.test.ts covers every exec,
spawn and execFile call form; fixture-borrow, fixture-daemon and
fixture-wiring tests pass. Two gatekeeper rounds ended with no P0-P2
finding.
#1231)

Slice 2 of 5 of bounded Missions reads (#1220's R4; slice 1 is #1229).
Readers stop rendering prose from the full maps and read bodies through
the exact content route instead, so slice 3 can drop bodies from the
panel's maps.

## Change
- **Display cache** (`stores/mission-content-store.ts`, wired in
`stores/mission-content.ts`):
- **Key and reads:** keyed by workspace, project, mission and selector.
One read runs at a time per body, every continuation is digest-pinned,
and a body is never assembled from two digests.
- **Refresh:** a newer map revision, a plugin reload, a reconnect or a
new event stream marks shown bodies stale. The last good body stays
shown until the newer value covers the page.
- **Failures:** `content-changed` restarts from offset 0, at most 4
times. A failure keeps the display, with Retry. A late answer is aborted
and never published.
- **Memory:** unshown bodies are kept within 4 MiB and 128 entries,
least recently used first.
- **Budget:** requests use the shared background read budget, and
nothing polls.
- **Who reads through it:**
  - the overview, task, report, plan-change and briefing readers;
- the editor's edit prefill, which stays read-only until both fields
arrive, its authority still the opened revision;
- Save as brief, which reads both fields when its name field opens and
saves only from one revision;
  - the Compare and decision readouts.
- **What a read loads:** only the prefix its page shows
(`lib/mission-body-pages.ts`). Closed disclosures read nothing.
- **Kept as before:** admission, mutations, lost-acknowledgement checks,
Stop, Delete and recovery keep their authoritative reads. Admitted
recurring passages keep their own path.
- **Older plugin:** it answers `plugin-unavailable`, and readers show
the map's own value. `MISSIONS.md` (Agent conventions) lists this
fallback and every remaining map-prose use for slice 3 to remove.
- **Visible:** "Reading…" until a first read lands, and a new "This
content could not be read." line with Retry (10 locales). The help pages
don't describe reader loading, so they need no change.

## Validation
- **Store tests:** demand-sized reads, digest pinning, the last good
display, the in-flight revision, late-answer fencing,
`plugin-unavailable`, eviction and the page prefix rule.
- **Browser test:** `mission-content-reader` reads a body slice by
slice, and never shows a body changed between slices.
- **Red checks:** each test fails with its fix reverted.
- **Fixtures:** ten browser fixtures serve the content route through a
shared helper, with assertions unchanged.
- **Passing:** server and UI typecheck; 1,132 UI units; all 39
`mission*` browser files and 8 other panel files; 831 server missions
tests; 647 route and opencode-missions tests; `test:help`. The browser
runs are on a base with #1230.
#1232)

## Summary

Status → Plugins can now **add**, **remove** and **show the version** of
any OpenCode plugin (SCR §4.1, slices C1/U1/D1/Q1, AC-P1…AC-P9).

- **Add**: a `+` icon beside Refresh opens a small `.window-*` popover:
package spec (`--surface-field`), scope (Global default; Project shows
the warning), trust sentence. Registry and remote Git specs only.
- **Remove**: each row's menu gets **Remove from Global/Project** for
declarations in that scope's own write target. `id`/`-id` rules stay;
the package cache is never touched.
- **States**: a just-added source shows **Installing** until
`plugin.list` reports its exact target (then an ordinary active/failed
row). After `PLUGIN_SOURCE_PENDING_TIMEOUT_MS` (120 s) it shows **Not
confirmed** with Refresh.
- **Tooltips**: version, **Update available**, failure + native `ref`,
GUI notice when a `features.gui` package is declared outside Global.

## Implementation

- Server: new `opencode/plugin-sources.ts` + `routes/plugin-sources.ts`
(`POST`/`DELETE /api/workspaces/:id/plugin-sources`), built on
`PluginControls.editConfigDocument` (ownership, scope resolution,
deletion fence, connection fence, lock, atomic replace, JSONC/CRLF/BOM,
WSL). Pure helpers in `plugin-source-document.ts` (npm-package-arg
validation, package identity, verified removal). Types in
`plugin-source-types.ts`. `plugin-controls.ts` only gains `pluginId` on
sources and the `gui` passthrough.
- Errors carry a stable `code`: `invalid-spec`, `local-path`,
`plugin-id` (422), `duplicate`, `stale` (409).
- UI: `stores/plugin-sources.ts`, `components/plugin-source-add.tsx`,
`components/plugin-row-actions.tsx` (replaces
`plugin-package-action.tsx`, memoized item descriptors), i18n part file
in the 10 locales, help in 10 languages, `dev-docs/PLUGIN_CONTROLS.md`
rewritten.

## Deviations to note

- `disabled` state for unloaded sources: `plugin.list` omits disabled
plugins and exposes no package→ID link, so an unloaded configured source
is shown as **Not confirmed** ("may be disabled, or installation not
confirmed"). A disabled package with an exact `-id` rule therefore shows
its ID row (switches) and its unconfirmed source row (Remove items).
Documented in `PLUGIN_CONTROLS.md`.
- AC-P7 "a GUI package is added Global-only, Project refused":
`features.gui` is known only once OpenCode has loaded the package, so
pre-install refusal is not possible. This PR keeps Global as default,
warns for Project, and flags a Project-declared GUI package in its
tooltip afterwards. Native-family Global-only enforcement (D18) waits
for the integration catalogue (later slice).

## Tests

- `node --import tsx --test
packages/server/src/opencode/plugin-source-document.test.ts
packages/server/src/opencode/plugin-sources.test.ts` (13 pass)
- Full server suite: 2931 pass, 0 fail (one load-timeout in
`index.test.ts`, passes alone)
- `CODENOMAD_TEST_WSL_PLUGIN_CONTROLS=Ubuntu …
plugin-control-document-wsl.test.ts` (9 pass, incl. new add/remove)
- `node --import tsx scripts/test-plugin-sources-native.mjs <opencode
2.2.5>`: PASS (loopback fake registry, 404 → failed with `ref`); added
to CI runtime contracts
- UI store tests (45 pass), browser
`plugin-sources`/`plugin-controls`/`plugin-packages` (14 pass), `npm run
typecheck`, `npm run test:help` (31 pass)
Slice 3 of 5 of bounded Missions reads (#1220's R4; #1229 added content
reads, #1231 moved the readers onto them). **The panel's
`list`/`mission` reads now return compact maps: the review's 2,400-task
case lists in 1.09 MB instead of 48.7 MB.**

## Change
- `compactMissionMap`, on copies at serialization time:
- drops every `MISSION_BODY_FIELDS` body and keeps its `bodies`
descriptor;
- keeps bounded excerpts: the objective label, report rows (240-point
excerpt plus `decidedBy`), plan-change reasons and the independent
explanation;
  - reduces the briefing to its identity;
  - carries unknown fields through.
- **Full, untouched:** snapshot, admission, mutation results,
`mission.inspect`, current passages, and the maps `MissionControl` reads
internally. A test fails if any of them loses a body.
- **Older plugins:**
  - the route compacts full maps;
- a plugin without `list` answers `plugin-unavailable` (the mass-loading
snapshot fallback is gone);
  - without content reads, the ordinary read failure shows with Retry;
  - the admission route never compacts.
- **UI:**
  - body presence comes from descriptors, and labels from excerpts;
  - the slice-2 fallbacks are removed;
  - new `MissionPanelMap` types.
- **Visible:** Plan-change reasons are cut to 240 characters in the
list, and the independent-mode tooltip shows an excerpt. The readers
keep the full text. No help page describes either.
- **Coordination:** coordinated with the parallel #926 branch, whose
scheduling editor already reads through descriptors and the content
route. Its added fields carry through.

## Payload (2,400 tasks × 20,000-character briefs)
| Read | Bytes |
|---|---|
| Full list (review probe) | 48,673,523 |
| **Compact list** | **1,093,511** |

The remaining growth is the row count; slice 4 pages it.

## Validation
- **New tests:**
- `mission-compact-map.test.ts`: shape, idempotence, unknown fields,
payload, and authoritative maps kept full;
  - route tests for the older-plugin cases;
  - store, bodies and display units;
  - new reader and intents browser cases.
- **Red checks:** each test fails with its fix reverted.
- **Passing:**
  - server and UI typecheck;
- 837 missions tests, 484 routes tests and 164 opencode-missions tests;
  - 1,818 UI units;
  - all 40 `mission*` browser files and 8 panel files;
  - `test:help`;
  - `test-missions-native.mjs` on isolated OpenCode 2.2.3.
Resizing a docked side panel listened for mouse and touch moves on the
whole document, so a drag that left the handle's narrow hit area could
reach controls under the pointer and the handle lost its highlight.

The handles now use local Pointer Events with pointer capture, like the
composer's resize handle: the initiating primary pointer is captured on
the handle, which keeps an .is-resizing highlight until release,
cancellation, capture loss or its own removal; secondary buttons never
start a drag, and touch-action: none keeps touch drags from scrolling.
Each handle's cleanup stops only its own side's drag, so closing the
opposite panel mid-drag does not interrupt it. The document-wide drag
helper is removed. Width calculation, clamping, RTL, persistence and
resize scheduling are unchanged. The help pages in all ten locales
mention dragging a panel's inner edge to resize it.

panel-resize.test.ts drives the real shell for both panels in LTR and
RTL: capture and highlight outside the handle, release, cancellation,
capture loss, handle removal, closing the opposite panel mid-drag, touch
and a held secondary button. drawer-width, the help tests and the UI
typecheck pass.
…s once (#1239)

On a Windows Server CLI install, the console kept logging "Managed plugin
bundle differs from its digest" and the browser filled with identical
"questions and permissions not fully recovered" toasts, covering a phone's
whole screen (#1235).

The published package was correct. A bundled plugin file is named by its
sha256 in a folder shared by every connection using the same OpenCode
configuration, and it was written in place with writeFile(..., "wx"). A
concurrent installer could read it half-written, and a write interrupted
by stopping the server left a truncated file that "wx" never replaced, so
every later connection failed. Both modes were reproduced with the
published code and the exact reported error.

A payload is now published only by renaming a complete temporary copy
over its name. A file with the wrong bytes or a link is replaced the same
way; a Windows directory link is re-checked and removed with rmdir, which
never touches its target or a regular file, and a changed entry is
re-verified instead of replaced, so one installer never deletes another's
verified repair. An ordinary directory at that name is refused with a
clear error. Verification and replacement share one bounded retry with
backoff (about 3 s) for EPERM, EBUSY and EACCES locks from antivirus or
readers. Each distinct failure (error code, operation and path, with only
generated temporary names masked) is logged once as an actionable error;
repeats go to debug until provisioning succeeds.

In the UI, each recovery warning is shown at most once per project and
message per tab, across reconnects, re-added projects and reloads, and a
successful recovery re-arms it. The plugin-unavailable case is one plain
notice, "Some waiting questions may be missing", saying that requests
already waiting may not appear, new ones still do, and restarting
CodeNomad may fix it. Toasts fit narrow screens. Strings, the permissions
help page and NATIVE_INTERRUPTION_UX.md / OPENCODE_COMPATIBILITY.md are
updated in all ten locales where applicable.

Tests: installation regressions for wrong bytes, truncation, concurrent
installers, file and directory links, a reader-held lock, an ordinary
directory and a replayed concurrent-repair race; log dedupe across random
temporary names and UUID-named directories; a store test with the real
notification code (one notice after eight reconnects and a second project,
nine before). Server plugin suites, UI recovery suites, both typechecks
and the help checks pass.

Fixes #1235
…t fixtures (#1238)

## Summary

Slices **F0** (integration contract) and **T0** (CodeNomad test
fixtures) of the approved integrations SCR (§4.2 basis; AC-F1, AC-F2,
AC-T1, AC-T2, AC-T3, AC-T5, AC-T6). No user-visible change: this is the
base the recognition, attachment and API 4 slices build on.

### F0: contract

- `packages/server/src/opencode/integrations/contract.ts`: zod schemas
of the marker, the reviewed catalog and every RPC definition of contract
1 (`integrationRpcSchemas`, keyed like `rpc.schema.json`:
`<method>.input|output`, `<event>.event`), plus the draft constants.
- Vendored JSON Schemas of
`NeuralNomadsAI/opencode-integrations@68eb8aa` (`marker`, `catalog`,
`rpc`, `host`; byte-identical to spec 0.1 at `dac13a74`) with
`VENDORED.json` (revision + Git blob IDs, checked by the test).
- **`readIntegrationRpcOutput(name, value)`**: the one way to read an
RPC output. Integrations register their definitions without `pattern`
(OpenCode 2.2.5 refuses it; spec/rpc-contract.md §4), so OpenCode passes
outputs the spec forbids; the full zod schema (patterns and bounds)
decides, and a non-conforming output is an integration error (`{ ok:
false, error: "non-conforming" }`) that never echoes the value. Tested
against every sample the pattern-free definitions accept but the spec
refuses.
- **Parity test** (`contract.test.ts`): a corpus of valid and invalid
samples (including the conformance package's cases) through zod **and**
Ajv 2020-12; fails on any disagreement and on any definition missing on
either side. Lengths count code points like JSON Schema (astral
characters agree). Four seeded mutations of `contract.ts` are each
caught.
- Outputs are reader schemas (unknown fields dropped); inputs strict;
`integrationCatalogSchema` adds the uniqueness JSON Schema cannot
express (`integrationCatalogDocumentSchema` stays exact).
- Types in the new `packages/server/src/integration-types.ts` (not
`api-types.ts`).
- `ajv2020` = `npm:ajv@^8.20.0` dev alias, so the hoisted Ajv 6 used by
existing mission tests keeps resolving (a plain `ajv@8` dev dependency
shadowed it and broke their types).

### T0: fixtures

- `scripts/fixtures/fake-npm-registry.mjs`: the loopback fake registry,
now shared by `test-plugin-sources-native.mjs` (scoped names, 404 for
unknown names, integrity/shasum).
- `scripts/fixtures/fake-integration/`: installable fake integration
package (`@neuralnomads/opencode-<id>`): marker,
`status`/`installHost`/`hosts`/`attachHost`/`detachHost`/`advertise`/`withdraw`
and payload-free events, offer registry on an **injectable clock** (15 s
lease, renewal without hello, replacement only after a new hello, 16
offers, `busy`/`gone`/`refused`), **marker-mismatch** mode,
`hostPart`/`installOutcome` options, a loopback **fake host with
sentinel secrets** (and a `leaky` mode),
`findSentinels`/`assertNoSentinels`.
- **Python discovery isolation**: `python-host.py` runs the vendored
reference client (`Service.discover`, `advertise_all`/`withdraw_all`)
under `python -I -B` and an audit hook; the native test asserts every
file and socket access stays inside the fixture and reaches only the
fixture daemon. `writeFixtureServiceRegistration` registers the fixture
daemon under the fixture's `XDG_STATE_HOME`; `withProductRuntime` now
passes its `env` to `run`.
- Docs: new `dev-docs/OPENCODE_INTEGRATIONS.md` (indexed in `INDEX.md`
and the `AGENTS.md` area list), native fixtures section in
`BROWSER_TESTING.md`, `PLUGIN_CONTROLS.md` reference.

## Finding to note

OpenCode 2.2.5 refuses `pattern` in RPC definitions: Effect's JSON
Schema import throws "Patterns may block validation and are disabled",
so a call whose declared output has a pattern fails with
`rpc.invalid_output`. The fake package registers its definitions without
`pattern` and validates its own input; CodeNomad revalidates outputs
with `contract.ts`. The Blender pilot hit the same refusal;
opencode-integrations `68eb8aa` now registers without patterns and says
readers validate outputs, which `readIntegrationRpcOutput` does.

## Out of scope

- AC-T4 (Blender 5.2 in the integrations CI, manual protocol) belongs to
`opencode-integrations`.
- AC-T3's §4.4 breaker clock: the breaker arrives with the API 4 slice;
the convention (every lease/expiry/rate window takes `now`) is
documented.

## Tests

- `node --import tsx --test
packages/server/src/opencode/integrations/contract.test.ts`: 24 pass
- `node --import tsx --test
scripts/fixtures/fake-integration/fake-integration.test.mjs`: 15 pass
- `node --import tsx scripts/test-integration-fixtures-native.mjs
<opencode 2.2.5>`: PASS (fake registry install, contract outputs, marker
mismatch, Python isolation + advertise/attach/detach/withdraw, no
sentinel in outputs or daemon log)
- `node --import tsx scripts/test-plugin-sources-native.mjs <opencode
2.2.5>`: PASS with the shared registry
- `npm run typecheck --workspace @neuralnomads/codenomad`: clean
- Full server suite: 2966 tests, 2953 pass, 2 fail under load
(`plugin-sources.test.ts`, `media-blob.test.ts`; both pass alone, as
does the `index.test.ts` load timeout)
- `node --test scripts/native-fixture-guards.test.mjs
"scripts/fixtures/wsl-*.test.mjs"`: 11 pass
- CI: unit fixtures in the server test job; the native test in the
runtime-contract job (minimum and latest).
…1239 (#1242)

#1239 replaced the pending-recovery plugin-unavailable toast with one
plain notice titled "Some waiting questions may be missing", shown once
per tab until a successful recovery re-arms it. The interruption-dock
browser test still waited for the old message and counted notices only
under the per-project title, so it failed on dev after #1239 merged.

The test now waits for the new message, checks that the new title appears
once and names no project, and counts notices under either title. It keeps
every earlier guarantee: no notice after one transient failure, exactly
one while recovery stays incomplete (including after a reset and a
different failure), no dock banner, icon or button, no horizontal
overflow at 393 px, the draft answer preserved, and a second notice only
after recovery re-arms it. No other test used the old message; the app
code is unchanged.

Tests: interruption-dock.test.ts passes (20/20, repeated) and fails on dev
without the change; the UI recovery unit suites pass.
… catalog and read their state (#1243)

## Summary

Slice C2 of the OpenCode integrations plan: CodeNomad recognises
configured OpenCode integrations from the reviewed catalog and reads
their state. This is the base for attaching an open application to a
conversation (C4) and for the Bundles extension (C3).

- **Catalog** (`opencode/integrations/catalog.ts`): newest
`catalog-v<n>` release of `NeuralNomadsAI/opencode-integrations` (GitHub
releases API, never "latest"), `catalog.json` asset through the API
origin, 256 KiB / 10 s bounds, zod validation, 30 s shared cache with
conditional list requests, last valid catalog persisted and served as
`stale`, `unavailable` with an empty list otherwise. No catalog release
exists yet: the real repository reads as `unavailable` today (no release
was created).
- **Recognition** (`recognition.ts`): registry package (aliases
resolved), plugin ID or exact `-<plugin>` rule (disabled plugins),
`sources.git` prefix; a source designating two integrations or loaded
under another plugin ID is non-conforming.
- **State route** `GET /api/workspaces/:id/integrations?directory=`
(`status.ts`, `integrations.ts`, `routes/integrations.ts`): absent /
inactive / failed / unsupported / non-conforming / unknown / ok; fixed
`status` method under the catalog's RPC ID only, 4 in flight, 8 s each;
full output validation, marker mismatch and path-like `appVersion`
refused; ownership rechecked with `assertCurrent` after the calls;
catalog internals never returned.
- **Plugin add** (AC-P7, D18): recognised `native` integrations are
Global-only (`global-only`, 10 locales); registry and Git specs of one
integration are duplicates.
- **UI store** `stores/integrations-store.ts`: demand reads, 300 ms
coalescing of `rpc.neuralnomads.<app>.*`, `plugin.updated`,
`config.updated`, no polling. Mounted by C4.
- Docs: `dev-docs/OPENCODE_INTEGRATIONS.md`, `PLUGIN_CONTROLS.md`; help
`integrations.md` in English and the nine translations.

## Validation

- `node --import tsx --test
packages/server/src/opencode/integrations/catalog.test.ts` (11 pass,
local release server)
- `node --import tsx --test
packages/server/src/opencode/integrations/recognition.test.ts` (8 pass)
- `node --import tsx --test
packages/server/src/server/routes/integrations.test.ts` (4 pass)
- `node --import tsx --test
packages/server/src/opencode/plugin-sources.test.ts` (11 pass)
- `node --import tsx --test
packages/ui/src/stores/integrations-store.test.ts` (4 pass)
- `node --import tsx scripts/test-integrations-recognition-native.mjs
<opencode 2.2.5 cli>`: PASS (added to the runtime matrix)
- Server and UI typecheck; `npm run test:help` pass.

File sizes: `http-server.ts` ~2500 lines (+7), `index.ts` ~790 (+2),
`pr-build.yml` ~770.
…ts (#1240)

Add --connect-server <URL|saved-server-name-or-id> and the inline form to
Electron and Tauri. Desktop launches can now open a remote CodeNomad
window directly, without leaving an empty local window behind. Existing
instances receive the launch intent; explicit folder and new-window
arguments retain their normal behavior.

Reuse the UI connection flow, including saved credentials, certificate
checks and sign-in. Reject credentials and pairing fragments in command
line URLs. Resolve saved entries by id, name and URL, with translated
errors for missing, unknown or ambiguous values. Windows Tauri refuses
arguments containing its forwarding delimiter rather than guessing their
boundaries; the help describes this limit in all ten locales.

Connect-only startup uses a hidden helper excluded from user-window
capacity, restoration, last-window decisions and state flushing. Success
disposes it; errors, timeouts or interactive prompts fall back to normal
startup without losing saved windows or the deferred Preferences restore.
Electron waits for the initial remote page load before reporting success.
Helpers close without a renderer flush; ordinary windows keep their
state-preservation safeguards.

Validation: Electron native suite (319 pass, 4 skipped), Tauri tests
(302 pass), UI connection tests, typecheck and help checks. Live isolated
Electron runs cover cold success, unreachable and unknown servers, page
failure, second-instance forwarding, Preferences restoration and backend
startup failure. Four review rounds resolved all P0-P3 findings; the final
head passed the complete CI, including all desktop builds.

Closes #1234
Slice 4a of bounded Missions reads (#1220's R4; slices 1–3 are #1229,
#1231 and #1237). **A compact map now holds one page of tasks, every row
has a size budget, and every task stays reachable through a new paged
tasks read.** The commit message has the full design.

## Change
- **Row budgets:**
  - 32 KiB per task row, 8 KiB per report row, 4 KiB per plan change.
  - Observations leave the panel map.
  - A task keeps only its newest late report, plus a count.
- A plan change's added, retired and rewired task lists become content
bodies.
- **What a map carries:**
  - the first 50 tasks of the shared display order;
- up to 20 pinned rows (pending notifications, blockages, recovery
candidates, the newest reports' tasks, briefing sources);
  - `taskPage`: an order digest, the window, totals and status counts;
  - `actorEvidence`, computed over every task.
- **New `tasks` RPC and `GET …/missions/:id/tasks`:**
  - return a window of tasks, or tasks named by key, ID or report;
  - refuse a stale order with `order-changed`;
  - for a plugin without `tasks`, page through its single-mission read.
- **UI:**
  - a page cache per mission;
- tree gaps with Show more, and graph stubs for edges to tasks not
shown;
- reader targets that aren't loaded are read by key or ID before
opening;
  - Show all for earlier results;
  - 13 strings in ten locales, and the help pages updated.
- **Unchanged:** authoritative reads and recurring passage maps stay
full.

## Payload (2,400 tasks × 20,000-character briefs, 1,224-task rewire)
| Read | Bytes |
|---|---|
| Full map | 49,431,307 |
| List | 49,220 |
| Map | 48,862 |
| Each of 48 pages | ≤ 38,780 |

Before this PR, one task with 1,997 observations weighed 4,617,922 B; it
now weighs 4,836 B. One with 100 late reports went from 173,666 B to
2,830 B.

**Next (4b):** full maps only for the selection and wanted missions,
paged summary rows and cleanups, and bounded actor-scale arrays.

## Validation
- **Server:** page traversal reaches every task exactly once, in display
order. Also covered: the `order-changed` refusal, the row and report
caps, pins, taskless reports, and the route fallback.
- **Store:** merging, reads recorded before fetching, coalescing, and
`clear` fences.
- **Browser:** tree gaps, graph stubs, Show more, re-measured rails,
Needs you for a task outside the page, a dependency loaded by key, Show
all, and reader targets read by ID.
- **Red checks:** each new test fails with its fix reverted.
- **Passing:**
  - server and UI typecheck;
  - 1,312 server tests;
  - 1,827 UI units;
  - all 41 `mission*` browser files plus 3 panel files;
  - `test:help`;
  - `test-missions-native.mjs` on isolated OpenCode 2.2.3.
First server-contract slice of 4b, following #1241. **This PR adds an
opt-in byte-bounded read; the UI still uses its existing APIs.
Panel-level boundedness is not complete yet.**

## Contract
- `panelPage` RPC and `POST /api/workspaces/:id/missions/panel-page`.
- Responses fit **64 KiB of serialized UTF-8 JSON**, envelopes and
continuations included; requests fit **16 KiB**.
- Sources: summary/cleanup hints, one compact mission/root field, or an
existing task selector.
- At most 50 exact row pieces per response. Oversized rows are sliced as
exact JSON text, never silently truncated.
- Digest-bound cursors refuse changed collections. Partial rows prove
neither absence nor mutation state.
- Directory reads return no maps; mission/task reads use the named range
only. No legacy-list/snapshot fallback.
- Existing APIs and full authoritative/internal reads are unchanged.
Future #926 metadata (`document`, `documentPending`, `requestID`)
survives serialization.

## Measurements
- 400 escaped/nested rows including a 5,000-actor row: recovered exactly
in 95 transfers, maximum 65,536 bytes.
- Real journal: 300 live missions, 300 pending cleanups, 300 task
actors.
- Directory: 9 summary + 6 cleanup transfers, no warm storage scans.
- Actors: 7 transfers, maximum 44,605 bytes, one named-range observation
per transfer.

## Validation
Eight red checks cover byte accounting, cursor integrity, source scope,
selector bounds and forbidden fan-out. Passing: typechecks; 1,498 server
tests; 1,845 UI units; 409 serial browser cases; help; plugin build;
isolated OpenCode 2.2.3 native gates. One existing environment-gated
test skipped.

## Remaining 4b work
Bounded live activity/attention for off-page actors and nonselected
missions, UI adoption with per-page caches/discovery/completion
seeding/cleanup retries, then removal of old list fan-out. Each transfer
currently serializes/hashes its source collection afresh, with linear
per-transfer CPU cost.
The native-family navigation fixture treated an expected panel-extension
catalog refresh cancellation as an application network failure. An SSE
connection requests a fresh catalog, superseding a pending read; a held
request reproduced the CI assertion on unchanged dev before cleanup.

Correlate the cancellation with its unique request identity, owning
aborted signal and actual native AbortError rejection. Keep raw request
failures recorded and retain failures for same-URL network aborts,
unrelated requests and missing or unknown identities. Application code
and navigation behavior are unchanged.

Validation: deterministic failing-before/passing-after controls, repeated
native-family browser suites, panel-extension tests, fixture checks and
typecheck. Independent review found no P0-P3 defects. Complete CI passed
on dbcc905, including the rerun of the Windows cleanup-lock failure.
Server-only **4b.2** of bounded Missions reads, following #1246. No UI
conversion or user-visible behavior change yet.

## New sources on `panelPage`
```ts
{ source: "activity", missionID, actorOffset?, actorOrder?, cursor? }
{ source: "marks", missionOffset?, missionOrder?, cursor? }
```
- Activity: one named mission range, up to 160 actor roots.
- Marks: up to 16 indexed mission contexts × 10 actors, sharing 160
roots.
- RPC returns persisted `phase: "context"`; the owning HTTP backend
validates it and observes native state outside the append lock,
returning `phase: "observed"` with `observedAt`.
- Rows carry context, honest coverage, real Form/permission requests and
native activity. Actor windows make off-page requests reachable.
- Range damage, graceful Pause/Interrupt now, retry identities and
report-owed evidence are preserved.
- Existing byte limits remain: **64 KiB per response**, **16 KiB per
request**. Continuations re-observe and refuse changed content. No
retained observation cache or automatic restart.

Internal/authoritative reads, existing UI APIs and #926 metadata stay
unchanged. Shared owed-work/task-attribution rules are reused by compact
maps and projections.

## Measurements and validation
- Warm marks across 50 missions: zero source scans.
- A 31-root off-page window: 31 root GETs, 32 child lists, 32 inbox
reads; one shared read each of active/Shells/Forms/permissions.
- 800 exact requests: 22 transfers, maximum 65,536 bytes.
- Thirteen red checks cover budgets, scope, coverage, ownership, saved
Location, positive attention, uncertainty, digest, append lock,
ordering, damage and receipt evidence.
- Passing: typechecks; 1,507 server tests; 1,845 UI units; help; plugin
build; isolated OpenCode 2.2.3 qualification. One existing
environment-gated skip. No browser runs for this opt-in server-only
surface.

## Remaining work
UI adoption with per-window provenance, parked Retry and last-good
display. Partial evidence must never become whole-mission absence or
recovery authority. Native request lists still arrive whole per
Location, and re-observation/source serialization can be expensive; busy
sources may refuse continuations repeatedly.
…1248)

The real-composer Git history test intermittently clicked Monaco's
Copy changed lines action instead of selecting text. Initial diff
computation changed hit-test geometry between coordinate measurement and
repaint; the menu stole keyboard selection and the hover-only context
widget detached during the later pointer movement.

Wait for computed diff decorations in the shared fixture interaction
before selecting text. Preserve real native pointer clicks, selection
and every revision-qualified composer assertion.

Use explicit readiness and native-pointer boundaries in the regression
instead of a frame-count delay. The control delivers the worker reply
after coordinate measurement and holds repaint through mouse-down until
pointer-up, reproducing the original menu error without forced clicks,
arbitrary sleeps or retries.

Validation: repeatable negative controls fail without readiness and pass
when only that wait is restored, including CPU throttling. Repeated full
browser suites, typecheck, fixture wiring and diff checks pass. Independent
review confirmed the geometry skew and found no P0-P3 defects. Complete
CI is green at 6584d35 after rerunning an unrelated account-selection test.
…#1217)

Setting a project subagent depth did not enable nested delegation for
OpenCode's General agent, whose built-in permission still denies the
subagent tool. Treat a project depth override as the user's explicit
request to enable delegation up to that depth.

Saving any override, including 0 and 1, writes one CodeNomad-marked allow
rule in the project's existing General config block. Keep OpenCode's
depth semantics: 0 disables delegation and 1 prevents further nesting.
The Inherit button and an empty field remove the override and marked
rules, preserving unmarked user permissions and pre-existing containers.
Explain the project rule's precedence and display OpenCode's resolved
General permission state. If a legacy config cannot safely accept the
rule, save the depth and explicitly warn that General's permission needs
manual adjustment.

Use OpenCode's winning agents/mode/agent block rather than creating a
native block that shadows legacy prompts, limits or edit/shell denials.
Keep JSONC comments and formatting, follow the winning block when config
changes and record ownership of created containers for safe removal.
No checkbox or admission/freshness/frontmatter-scanning machinery is
needed. The documentation and help in ten locales explain the behavior
and cite upstream anomalyco/opencode#60961.

Validation covers native and legacy blocks, precedence, idempotence,
marked-rule migration/removal, pre-existing empty containers, partial
permissions and the explicit warning. Server, browser, i18n, help and
typechecks pass. An isolated OpenCode 2.2.5 run verifies depth 2 nesting,
depth 1 and 0 limits, preservation of legacy General settings and
restoration after Inherit. Six review rounds resolved all actionable
findings; the rebased patches are unchanged and the complete CI is green
at d7cf2d3, including desktop builds.
…1251)

Linux process-tree capture launched per-PID helper processes and could
exhaust its existing 1.5-second deadline under load. This caused the native
service lifetime test to fail while capturing its owned backend, despite
the backend remaining alive.

Remove the repeated Linux helper-process overhead while preserving
process identity checks, fail-closed behavior and the existing deadline.
Keep other platform paths unchanged. Add regressions for the capture and
for kernel-visible process names containing newline, asterisk and closing
parenthesis; assert the actual name so Linux truncation cannot silently
remove the tested characters.

Independent review reproduced capture timing out at 1504 ms before and
completing in 86 ms after under 700 owned sleeper processes. Loaded service
lifetime tests, full Linux and Windows native suites, targeted controls
and typechecks pass. Final review has no P0-P3 findings. Complete CI is
green at fb3888d after retrying a Windows hosted runner that lost its
connection; the approved patch is unchanged by the rebase.
…stically (#1252)

The history gatekeeper performance test used a wall-clock first-yield
ceiling that failed repeatedly under CI contention despite unchanged
bounded decode work. On unchanged Linux dev, the same operation took
114 ms wall / 112 ms CPU when idle and 593 ms wall / 118 ms CPU under
controlled contention; the reported failures decoded only 50 JavaScript
bytes of the large ignored metadata.

Replace that fragile harness with deterministic real-SQLite and event-loop
progress assertions between large rows. Preserve metadata decode bounds,
technical-body coverage and the checks for incremental scan/body yields
and lazy chunk evaluation. Production code and native contracts are
unchanged. These checks qualify bounded decode and inter-row yielding,
rather than a hard latency ceiling for one synchronous SQLite row.

Validation: independent Windows and Linux runs each passed 291 checks;
six negative controls caught broken projection, missing scan/body yields
and eager chunk evaluation. Contention reproduced the old harness failure
while the replacement passed. Typecheck and complete CI are green at
9a4134d; independent review found no P0-P3 defects.
**Task-read UI adoption only**, a coherent first part of 4b.3. This does
**not** remove the old list fan-out yet.

## Change
- Selected task/attention windows and named task/report targets use
`POST /missions/panel-page` with `source: "tasks"`.
- Browser consumer bounds actual response bytes before parsing (64 KiB),
validates the envelope and immutable selector, pins
digest/length/provenance, and checks the final collection hash before
publishing complete rows. Requests fit 16 KiB.
- Secondary read budget and 30-second logical deadline. No legacy task
GET fallback, automatic cursor restart or mutation.
- Last-good rows/toolbars survive failures; changed content is distinct
and explicit Retry starts at slice zero.
- Store fencing covers queued ownership, project/client generations,
reconnect/plugin invalidation and stale publication.
- Ten-locale strings/help plus contract tests wired into CI.

## Validation
- Eleven caught red checks: byte/digest/length/header validation, stale
reads, reconnect, parked failures, changed messaging, queued ownership,
unwanted revision reads and immutable selectors.
- Fixture: 151 tasks, four logical windows, seven transfers, maximum
65,536 bytes; zero legacy task GETs/mutations.
- Typechecks, actual UI production build, 1,865 UI/contract tests, 1,520
server tests, 456 serial browser cases and 31 help tests pass.
- No server product changes; plugin/native qualification not rerun.

## Remaining 4b work
Picker summary discovery, selected/wanted maps, activity/marks and
cleanup display still use `fetchMissions`; exact cleanup reconciliation
still uses `fetchMission`. Complete-inventory completion seeding is
unchanged. Summary/cleanup windows, actor/activity windows and
partial-inventory high-water remain unfinished. Passage slice 5 still
waits for #926.

#926 scheduling/document/passage and editor callback contracts,
`document`, `documentPending` and history `requestID` remain unchanged.
Only the internal task-fetch callback gains `{projectID, current,
signal}` and failures may carry a reason.
… rights (#1253)

## Summary

@shantur made @pascalandr an administrator of the CodeNomad repository
and agreed, in a private conversation, that both maintainers now hold
the same rights and responsibilities for the project. This records it in
the governance documents, as `GOVERNANCE.md` requires for changes to
itself.

- **`GOVERNANCE.md`:** both maintainers are listed as maintainers and
administrators of the repository (Shantur also owns the NeuralNomadsAI
organization). A new paragraph states that they have the same rights and
responsibilities, and that either of them can change the repository's
settings, manage its access and act for the project with the services it
uses (code signing, package registries, funding platforms). The decision
rules are unchanged: significant decisions still need both maintainers.
- **`CODE_SIGNING.md`:** both maintainers are the project owners for the
SignPath Foundation application, so either can authorize the signing
integration and approve changes to signing responsibilities. Pascal
remains the signing operator and approver.

The `LICENSE` copyright line is not changed here; it is discussed
separately.

@shantur, a comment confirming this here would complete the record.

## Repository settings applied with the new administrator access

- Private vulnerability reporting enabled, so the **Report a
vulnerability** button that `SECURITY.md` points to works.
- Sponsorships enabled, so the **Sponsor** button reads
`.github/FUNDING.yml`.
- Homepage set to the help site, and topics added.

## Validation

- `git diff --check`; relative links unchanged.
…ce (#1254)

## Summary

The license's copyright notice read "Copyright (c) 2026 Neural Nomads".
The name could be read as a company of the same name, while no
assignment exists: each contributor keeps the copyright of what they
wrote. The year also missed the project's start (first commit
2025-10-22).

- **`LICENSE`:** "Copyright (c) 2025-2026 CodeNomad contributors". The
license itself (MIT) and its terms are unchanged; released versions keep
their notice.
- **`GOVERNANCE.md`:** one sentence: each contributor keeps the
copyright of their contributions and publishes them under the MIT
license, and the notice names them together as the CodeNomad
contributors.

- **Desktop installers:** the Electron build (`build.copyright`, which
electron-builder otherwise derives from the package author) and the
Tauri bundle (`bundle.copyright`) set "Copyright © 2025-2026 CodeNomad
contributors", which Windows shows as the file's copyright and macOS in
the app's About information.

Neural Nomads stays the name of the GitHub organization and the
publisher shown by the apps and the README.

Both maintainers agreed to this change (`GOVERNANCE.md` requires it for
license changes): @pascalandr through this pull request, @shantur in a
private conversation in which he left the license wording to Pascal.
@shantur, a comment confirming here completes the record.

## Validation

- `git diff --check`; both configuration files parse and
`bundle.copyright` is part of the Tauri 2 schema. No other file carries
the project's copyright notice (third-party notices unchanged).
…#1244)

The Mission navigation fixtures served /api/events as JSON, causing
Chromium to reject the EventSource MIME type and report an aborted
request as an application failure. Serve an owned SSE response and wait
for its readiness within the existing 120-second startup budget.

Share the exact request-identity, owning aborted signal and native
AbortError correlation used by the native-family fixture when an SSE
open supersedes a pending panel-extension catalog read. Keep raw failures
visible; unrelated, same-URL, missing, unknown or reused identities must
still fail. Preserve the real shell/native dispatcher and navigation
state assertions rather than broadly suppressing network errors.

Deterministic held-request and malformed-response controls reproduce the
original failures; delayed-start and streaming-body controls qualify the
fix. Repeated navigation, native-family and Git-history suites, fixture
checks and typechecks pass. Final review has no P0-P3 findings. Rebases
preserve the approved seven-file diff and incorporate the independent
process-capture and history-harness fixes. Complete CI is green at
1101d18.
…h native schedules (#1259)

Closes #926.

## What changes

Recurring Missions now survive OpenCode restarts (update, crash and
relaunch, reboot) without a manual **Resume**, and the scheduler offers
more than "once a day at a fixed time".

- **Native schedules.** OpenCode's own scheduler
(`experimental.schedules`, OpenCode 2.2.3+) owns the calendar; Missions
decides whether a passage may run (CAS admission, no duplicates,
Pause/Stop, errors and uncertain states stay manual). A dedicated
technical conversation with a local no-op model carries the wake, so
wakes, titles and compaction make no provider HTTP requests.
- **Richer scheduling**, in one collapsed **Scheduling** section of the
Create/Edit editor (default: once, immediately, no condition): date,
delay, interval (≥15 min), daily, chosen weekdays, up to eight times a
day, day of month, native cron; optional end date/duration and a maximum
number of launched passages; five event conditions (another schedule
succeeds, a one-time Mission completes, new local commits, a new message
in a followed conversation, explicit files change). Up to five upcoming
dates are previewed in the saved IANA zone.
- **Created paused, started with Play.** Everything is editable before
the first launch; after it, edits follow the approved matrix (future
parameters between passages, objective/notes journaled during a
passage).
- **Keep OpenCode running.** A Preferences setting supervises the shared
OpenCode service through the OS (Windows Task Scheduler with a periodic
recovery task, macOS LaunchAgent, Linux systemd user unit with
lingering, WSL from Windows). ON by default at the first Play unless OFF
was saved; OFF removes supervision without stopping OpenCode; a live
service is never killed or duplicated.
- **Existing daily schedules** keep their path and controls; no
migration.
- Help (English and nine translations) and dev-docs are updated.

## Validation

- Typechecks (4 workspaces); server Missions/host-lifetime suites; UI
unit tests 1945/1945; help 31/31 and build.
- Real isolated OpenCode services (2.2.5, minimum 2.2.3): resting
schedule resumes after service restart with no client and no Resume; 32
real passages with history/quota/phase preserved; concurrent wakes admit
once; DST and catch-up for every frequency type; forced local
auto-compaction and restart during maintenance with zero provider HTTP;
real upgrade 2.2.3 → 2.2.5.
- OS supervision on Windows, WSL, Ubuntu VM (two real reboots, healthy
before login; OFF without a session) and macOS VM (Aqua session,
crashes, OFF/adoption). On the final bundle: two real periodic Windows
recovery relaunches; WSL OFF/Retry on a live HTTP 500 service keeps the
same process.
- Windows Electron and Tauri packages run in private profiles: paused
creation, nine frequencies, preview.
- Full browser suite: 956/957 in the last tier; the failure is
`directory-browser.test.ts` (folder picker timeout), unchanged by this
branch, and that file passes 20/20 on rerun. Earlier dev-baseline runs
on the same machine also lost module loads to
`net::ERR_NO_BUFFER_SPACE`.

## Known limits (not qualified in this PR)

- macOS reboot followed by a real login, and a Windows host reboot/logon
(needs a disposable bench).
- Real screen-reader output (keyboard, ARIA and RTL checks pass).
- Linux/macOS desktop packages.
- OpenCode's background *pre*-compaction never applies to the technical
wake conversations: their local model reports zero tokens, below the
native minimum. Their automatic local compaction is qualified.

## Follow-up

Integration with native `/goal` comes in a separate PR.
…1258)

Closing every local Tauri window while a remote window remained open
discarded WebView2's local authentication cookie. Opening another local
window then reached an unusable frameless sign-in page; close and quit
waited for a state-save acknowledgement that this page could not send.

Authenticate each new local Tauri window before its first local-server
load. In both hosts, retain the last local window's saved tabs while
remote windows remain, and let host loading/sign-in/pairing pages close
without a renderer save acknowledgement. Ordinary user windows keep their
state-preservation safeguards. Remote windows are not restored as local
application windows.

Give failed Electron remote loads a host-owned recovery page with retry,
open-local-window and close actions. Authorize recovery IPC against its
registered main frame, host-issued per-document token and committed
origin. Revoke old tokens on navigation and renderer exit, issue a fresh
document after failed retries including HTTP 204, and allow explicit
reload/history recovery without reviving old tokens or creating automatic
crash loops. Keep recovery authority separate from remote server content.

Update architecture documentation and remote-access help in ten locales.
Tests cover cookie/restore/close rules and real Electron preload/IPC,
including rejected unauthorized requests, retry without document commit,
reload, history and renderer termination. The Linux fixture terminates
only its owned renderer and asserts the expected lifecycle event.

Validation: scratch-profile Tauri and Electron reproductions recover
signed-in local windows with saved state and quit cleanly; native suites,
focused UI tests, typecheck and help checks pass. Final independent review
has no P0-P3 findings. Complete CI including packaging is green at
012dfb2.
Long pasted text surrounded by a user-authored Markdown fence appeared as
two empty code blocks around a separate pasted-text disclosure. The model
already received the correct text once inside the fences; the transcript
rendered each stored display segment as a separate Markdown document.

Group fenced blocks containing pasted segments at display time, including
already-sent messages. Keep one pasted-text disclosure with the language
label, full code copy and code-only line count. Preserve ordinary prose
outside the fence and the existing behavior for pastes outside fences.
Handle backtick/tilde fences, several pasted segments, unclosed fences,
trailing newlines, CRLF and CommonMark closing-fence whitespace.

Store only code and opening-fence metadata in the grouped display section.
Apply the existing text bound and reveal behavior to code before using
the Markdown formatter hook to wrap its visible window in safe fences.
Pasted fence runs cannot terminate the displayed block, and generated
delimiters cannot be truncated into visible code. Sent text, persistence
and full copy content remain unchanged. Document the rules in COMPOSER.md.

Validation: unit cases and real composer/send/transcript browser
regressions cover exact model text, code rendering, trailing-newline
pastes, embedded fences, language, CRLF, copy and very long delimiter
runs across reveal steps. Independent review reproduced the old runtime
failure and found no remaining P0-P3 defects. Typecheck and complete CI
are green at 261456b.

Fixes #1256
## Summary

CodeNomad was accepted into SignPath Foundation's open-source program
(organization "CodeNomad [OSS]", project `CodeNomad`, GitHub.com trusted
build system, `test-signing` and `release-signing` policies with manual
approval). This wires Authenticode signing of the Windows artifacts into
the release CI. **Signing is off by default**: until the repository
variable `SIGNPATH_RELEASE_SIGNING=true` is set (once SignPath
Foundation issues the release certificate, still "CSR pending"),
releases publish exactly what they publish today.

## What Windows users get, and what is signed

Checked against the `v1.0.1-dev-20261101-fb44655c` prerelease:

- **Tauri NSIS installer** (download, WinGet package and in-app update
file) and the `codenomad-tauri.exe` it installs: both signed. Tauri
rewrites the executable while packaging it (the NSIS bundle-type marker
the updater relies on), which would break a signature applied first, so
the Tauri job becomes two-stage:
  1. `tauri build --no-bundle`;
2. `patch-bundle-type.mjs` writes the NSIS marker (same rewrite as Tauri
2.12.4, verified on a real binary);
  3. sign the executable;
  4. `tauri bundle --no-binary-patching`;
  5. sign the installer;
6. recompute the updater signature over the signed installer (`tauri
signer sign --app-version`); the existing staging check, `latest.json`
and WinGet then hash the signed file.

Unsigned builds take the same path, so every PR build exercises it.
`uninstall.exe` is generated during packaging and stays unsigned;
`node.exe` is already signed by OpenJS.
- **Electron portable ZIP:** `CodeNomad.exe` is signed; CI checks that
every other entry of the returned ZIP is unchanged.

SignPath only accepts uploaded GitHub artifacts and waits for a manual
approval on `release-signing`, so the electron-builder and Tauri
in-build signing hooks are not used. Requests go through
`signpath/github-action-submit-signing-request@v3` (composite action
`.github/actions/signpath-sign`), with artifact configurations in
`.signpath/artifact-configurations/` (zip root, `<authenticode-sign/>`,
metadata restrictions on product name `CodeNomad` and the release
version; validated against SignPath's XSD).

## When signing runs

- PR and fork builds: never signed, never fail for lack of a token.
- Stable releases: `release-signing` when
`SIGNPATH_RELEASE_SIGNING=true`; the release then fails before building
if `SIGNPATH_API_TOKEN` is missing (fail closed).
- New manual **SignPath Test Signing** workflow: signs a real build with
`test-signing` and publishes nothing. The dev prerelease gains a
`signpath_test_signing` input for an end-to-end check including the
updater signature.
- Returned files are verified: product name and version before
submission; afterwards a timestamped Authenticode signature, signer
`CN=SignPath Foundation` and `signtool verify` for releases (test
certificates accept an untrusted root).

## Docs

`CODE_SIGNING.md` describes the actual workflow (release certificate
pending); `dev-docs/TAURI_UPDATER.md`, `dev-docs/INDEX.md`, `BUILD.md`
and `docs/guides/winget-release-automation.md` follow the two-stage
Tauri build. No UI change, so no help pages.

## Validation

- actionlint 1.7.12: no new findings (the only one is the existing `if:
${{ false }}` on the disabled Linux arm64 job).
- The three artifact configurations validate against SignPath's official
XSD.
- Node tests 21/21, including signing gates and the build → sign →
package → re-sign order; `patch-bundle-type.mjs` tested.
- PowerShell checks run on the real dev artifacts: wrong versions,
unsigned files, a wrong signer and a modified DLL in the ZIP are
rejected.
- Not run: the signed path itself (needs the token and the SignPath
portal artifact configurations), and a full Tauri build locally; this
PR's CI exercises the unsigned two-stage Tauri build.

Large file: `.github/workflows/build-and-upload.yml` is now about 1,260
lines.


Final review: ZERO FINDINGS at a4ca8d2. Electron uses
shortVersionWindows before native signing; no post-sign hook remains.
Stable and prerelease native-signed ZIPs retain their timestamped
signatures (temporary untrusted root). Actual SignPath testing remains
pending and release signing stays off.
…#1263)

The Windows plugin installer rejected intact payloads on Node 24.0.0 /
libuv 1.50.0 because pathname lstat returned a zero device identifier while
the open handle reported the actual volume. Full bytes, SHA-256, length,
link count and inode matched. Replacing or deleting the file could never
repair this metadata disagreement (#1235 follow-up).

Use exact BigInt filesystem identities. When Windows pathname device
metadata is missing, independently open that name and compare both
handles' nonzero device identifiers and exact inodes. Recheck pathname
type, link count, inode and size, retain SHA-256 and EOF checks, and report
the failed invariant accurately. Keep POSIX and genuine nonzero device
mismatches strict; add no version gate or dependency.

Independent validation reproduced released-bundle installs failing 0/21
before and passing 21/21 after on Node 24.0.0. All 61 plugin tests pass on
Node 24.0.0 and 25.2.1, including negative controls for device differences,
rounded inode aliases, missing identity, links, probe substitution,
replacement, handle closure and corrupt bytes. Isolated OpenCode 2.2.5
plugin provisioning, pending-request RPC/Form checks and typechecks pass.
Review has no P0-P3 findings. Merge requested explicitly before overall CI
completion; the run currently reports failures in Mission/native database,
permission receipt and workspace ownership tests. Confirmation on the
reporting machine remains required.
Correct 85 audited strings (fr 46, es 21, de 2, tr 15, ne 1),
synchronize 15 bold help citations and align five French browser
selectors; preserve meaning, punctuation, keys and placeholders. Rebased
on dev with the OpenCode settings rewrite preserved. Five
settings.opencode entries remain outside this change; seven optional
Turkish circumflexes retain common spelling. Fresh read-only language
reviews have zero blockers. Verified after rebase: UI typecheck,
3096-key parity in all ten locales with three unchanged Hebrew singular
placeholder exceptions, 38 help-reading unit tests and 31 test:help
checks. Browser checks: 244 pass; the extra workspace-file-refresh check
fails identically on the original 65c0664 baseline (unexpected initial
host invalidation), including an isolated rerun.
…1562)

A reply could stay invisible in CodeNomad while OpenCode streamed it:
once a message's start event was missed (reconnect, busy relay, forced
reload), later events edited nothing and no read repaired the session.

## Changes

- **Self-healing transcript:** an event that targets a message or part
CodeNomad doesn't hold, or that makes the reducer throw, triggers one
coalesced read of that session (at most 3 per execution, plus one at
settlement). Sessions you aren't viewing are not fetched; their next
page reseeds instead.
- **Seeding:** every committed latest page can reseed the live reducer
when it diverged or lacks the in-progress reply, merged so streamed text
isn't lost.
- **Server relay:** a session event dropped because its location can't
be resolved, or refused for a recipient that already received that
session, now asks the recipient to reconcile. Nothing is broadcast to
non-owners.
- **Reconnect:** a failed prerequisite no longer skips the transcript
reload, and a failed reconciliation is retried (1 to 16 s).

## Validation

Reproductions fail on `dev` and pass now; each fix reverted alone fails
its tests. UI stores and lib units (1821), server workspaces and events
(383), streaming and transcript browser tests (61), both typechecks.

Not covered: a first event refused during a transient Git failure, a
lost event with nothing after it, and failed frame projections.

Fixes #1480
…used PID (#1552)

## Problem

A process keeps the numeric ID of a parent that exited, and Windows
reuses that ID (Raymond Chen, [*Why is CreateToolhelp32Snapshot
returning incorrect parent process
IDs*](https://devblogs.microsoft.com/oldnewthing/20150403-00/?p=44313)).
A tree walk over parent IDs alone adopts unrelated processes. An
application an agent launched through a launcher that exited names the
launcher's PID; once a process being stopped receives that PID, the
application and its children are terminated with it. Observed: a Houdini
session died with exit code 1 (`TerminateProcess(…, 1)`), its `cmd`
parent 0.2 s earlier, two seconds after two `powershell.exe` started.

- `processTreeFromRows` (`electron/main/process-stop.ts`) walked parent
IDs only. The native and CIM Windows captures already filter children
older than their parent, but the shared walk relied on that, and the
Linux `/proc` scan and macOS `ps` listing are not atomic.
- `taskkill /T` walks recorded parent IDs the same way (see e.g.
openai/codex#36258, #58999). It was used by the server's foreign
OpenCode `--version` probe on timeout, by
`ui/src/lib/server-events-lifecycle.test.ts` and by two Windows desktop
fixtures.

## Change

- `packages/server/src/process-tree.ts` (Node built-ins only, shared by
Electron main, the server, tests and tsx-loaded scripts):
- `processTreeRows(rootPid, rows)`: a row is a child only when it
started **no earlier** than the process holding its parent ID; unknown
start times are left out; the first row of a PID wins.
- `stopWindowsProcessTree(rootPid, spawnedBy)`: one CIM listing, the
same walk, refusal when the root ID was reused after the spawn, then
`Stop-Process` through `Process` objects whose creation time is checked
after their handle is bound.
- Electron's `processTreeFromRows` uses `processTreeRows` with Windows
creation ticks, Linux boot clock ticks and macOS `lstart` seconds
(same-second children are kept).
- The foreign probe, the UI test and both desktop fixtures use
`stopWindowsProcessTree` instead of `taskkill /T`.

Checked and unchanged: Tauri (Windows Job Object with kill-on-close,
POSIX process groups: membership inherited at creation, no walk),
Electron POSIX `kill(-pid)` in `shell-environment.ts` (process group),
Electron force termination (already checks each member's creation
identity before `TerminateProcess`).

## Tests

- `process-stop.test.ts`: a recycled-parent table on Windows, Linux and
macOS leaves the orphan and its child out of the capture. **Fails on
`dev`** (`[100, 300, 301, 200, 201]` instead of `[100, 200, 201]`),
passes here; the 34 other tests pass.
- `server/src/process-tree.test.ts`: recycled parent, a cycle through a
recycled ID, unknown start times, duplicate rows, a missing root, reused
root ID refusal, CIM row parsing, a real Windows wrapper and its
descendant stopped.
- `legacy-installation.test.ts` (foreign probe kills the wrapper's
descendant on timeout) and `server-events-lifecycle.test.ts` pass;
server, Electron and UI `tsc` pass.

## Docs

`AGENTS.md` (never `taskkill /T` or a parent-ID-only walk), the desktop
conventions reference and `OPENCODE_RUNTIME_SETUP.md`. No user-visible
behaviour, so no help change.
…leted coordinators (#1553)

## Problem

The Missions panel loads the shared OpenCode service more than its
display needs:

- every `rpc.codenomad.missions.changed` started a panel read 50 ms
later with no spacing (`lib/event-refresh-scheduler.ts`), and a running
mission journals continuously;
- each read observed every listed actor through `projectMissionActivity`
(`server/src/missions/activity.ts`): root `session.get`, the bounded
family tree (`session.list` per member until the empty page) and
`session.inbox.list` for **every** family member, 4 requests at a time,
with nothing kept between reads;
- every publication replaced all map objects
(`stores/mission-store.ts`), so keyed lists rebuilt every mission row;
- two deleted sessions were read every 6–8 s for hours, with 404. On the
live log (read-only) these were the **only** requests reaching OpenCode,
always as a sequential pair, without any panel read.

## Change

**Refresh spacing** — `createEventRefreshScheduler` takes an optional
`urgentIntervalMs`; the Missions store uses 1.5 s
(`MISSION_URGENT_REFRESH_INTERVAL_MS`) from the previous settlement.
Activity keeps its 5 s interval; activation and explicit refreshes still
read at once. Other users of the scheduler are unchanged.

**Native reads** (`missions/activity-cache.ts`, wired in
`http-server.ts` and the panel routes):
- family trees are kept per daemon client until a structural session
event (`created`, `forked`, `moved`, `deleted`, `updated`, `archived`,
`renamed`), any event-stream status change, a kept root that reads
differently, or 20 s; nothing is kept while an instance's event stream
is down;
- actor roots answered 404 are remembered (deletion is final, IDs are
never reused) and shown `missing` without another read;
- inboxes are read only for an actor that owes a report or has an open
call and that no request, run or background work already describes —
queued input decides no other state, so the projected states are
unchanged;
- actor roots, `session.active`, Shells, Forms and permissions are still
read on every observation; recovery and recurrence observations take no
cache.

**Store** — publications share every part equal to the previous state
(`lib/structural-share.ts`): only changed missions, rows and activity
entries get new objects.

**Deleted coordinators** — the 404 loop came from the notification
outbox (`MissionControl.retryPendingNotifications`): it retries a
running mission's pending coordinator notification through the bridge
claim, whose ownership check reads the coordinator session
(`server/routes/automation-plugin.ts`); a missing coordinator counted as
a retryable failure forever. Now, when a delivery fails and the session
store answers that the coordinator no longer exists, the activation
stops offering that coordinator's notifications (in memory; the journal
keeps the report pending, no business state changes).

## Measurements (fixtures, before = `origin/dev`)

| | before | after |
| --- | --- | --- |
| Native reads per refresh (6 running missions × 8 actors, 4-session
families) | 436 | 316 first, **124** next |
| — `session.list` / `session.inbox.list` per refresh | 192 / 192 | 0 /
72 (after the first) |
| Panel refreshes per minute (journal change every 300 ms, activity
every 100 ms, 400 ms reads) | 134 | **32** |
| Mission rows rebuilt per refresh with unchanged content (8 missions) |
8 | **0** |
| Publication cost per refresh (8 missions × 50 tasks × 20 actors) |
0.22 ms | 1.24 ms |

## Tests

- New, failing on `dev`: urgent interval spacing
(`event-refresh-scheduler.test.ts`), per-mission publication
(`mission-store.test.ts`), deleted coordinator (`control.test.ts`:
`failed: 1` → `failed: 0`, then no further attempt).
- New: structural sharing (`structural-share.test.ts`); lazy inboxes,
kept trees and their invalidations (structural event, activity event,
stream down/up, TTL, other client), deleted actor roots
(`activity.test.ts`). The fence test's inbox phase now uses an actor
whose inbox is read.
- Local: server Missions suites 1492/1492, UI Missions
stores/lib/components/contracts 573/573, server and UI `tsc`.

## Docs

`dev-docs/MISSIONS.md` (outbox, display demand, activity reads) and
`dev-docs/CACHE_REFRESH_CONVENTIONS.md` (live windows, panel inventory).

## Known `dev` failures

`dev` currently fails Missions runtime-contract and browser tests from
#1547/#1545 (seen on #1547 itself and #1552); those are not addressed
here.
…-fi (#1567)

## Summary

- Support page (10 locales): sponsor buttons right under the title, then
the maintainer's own text signed with his name, then other ways to help.
The funding policy section is removed. The Download page support
sentence follows.
- Ko-fi added as a second channel (`funding.json`, strict
`https://ko-fi.com/<page>` allowlist with tests, `.github/FUNDING.yml`).
Funding buttons no longer show a payee line.
- `GOVERNANCE.md`, `CODE_OF_CONDUCT.md`, `SECURITY.md`,
`CODE_SIGNING.md`, `PRIVACY.md`: Pascal André as the single maintainer
and contact; Shantur Rathore credited as creator and organization owner.

## Validation

`npm run test:help` 31/31, `npm run build:help`, the funding browser
case, `git diff --check`. The help browser suite's home tour video
assertion fails the same way on `dev`.
I add one persistent, immediate contrast control across every palette so
the interface stays easier to read outdoors.
I preserve palette identity and editable colors while strengthening
shared rendering roles and their integrations.

I verified typechecking, 118 focused units, 104 rendering regressions,
34 setup browser checks, localized help and the UI build; completed CI
has only separately documented failures reproduced on dev.

### Visible changes
- Contrast **Auto / On / Off** beside appearance mode; Auto follows the
system contrast preference, with details behind **i**.
- Corrected Base/Secondary ordering for six light palettes, visible in
normal mode too.
- Readable black/white text on filled accents and hover states.
- Stronger backgrounds, text, boundaries, focus and dimmed states while
preserving their hierarchy.
- Matching code, Markdown, ANSI, diagrams, diffs, Monaco and extension
rendering; labels and help in all ten languages.

### Known limits
- Extreme customized surfaces can remain below 7:1 by design; their
saved colors remain intact.
- Deliberately dimmed text and secondary boundaries retain their
hierarchy rather than sharing the primary-role floors.
- Windows forced colors were qualified through browser emulation.
- A previously reported Workspace refresh assertion
(`workspace-file-refresh.test.ts:67`) failed on the original base; any
recurrence will be checked against current `dev` before merging.

### Existing long files touched
`packages/ui/src/stores/preferences.tsx` (~1,700 lines),
`packages/ui/src/lib/markdown.ts` (~757),
`packages/ui/src/components/markdown.tsx` (~590),
`packages/ui/src/lib/theme-scheme.ts` (~539),
`packages/ui/src/lib/i18n/messages/*/settings.ts` (10 locales, ~700–830
each), `packages/ui/tests/browser/git-history.test.ts` (~1,352), and
`packages/ui/tests/browser/opencode-setup.test.ts` (~1,096).
I replace role-specific high-contrast rules with one sRGB channel curve
(1.3 contrast, mirrored pivots), preserving the palette's colored text
and original filled-button ink.

I keep Contrast Auto/On/Off, corrected light-palette surfaces and one
shared active-toggle tint; the result was visually approved.

I verified typechecking, 86 focused unit tests, 31 help checks across
ten languages and focused browser regressions.
@pascalandr
pascalandr marked this pull request as ready for review November 17, 2026 15:38
@pascalandr
pascalandr requested a review from a team November 17, 2026 15:38
@pascalandr

Copy link
Copy Markdown
Contributor Author

The owner approved stable 1.1.0 with unsigned Windows packages; SignPath configuration stays unchanged. The description is checked against b9aa5f3b0, including Contrast, Ko-fi, OpenCode 2.3.0 and the Windows warning. Version/release-note checks pass and the computed main-merge tree matches the candidate; publication waits for full CI.

@pascalandr
pascalandr marked this pull request as draft November 17, 2026 16:20
@pascalandr

Copy link
Copy Markdown
Contributor Author

Publication paused while the owner identifies a bug to fix and a necessary improvement. #1395 is back in draft with no auto-merge; the running validation may finish, but will not trigger publication.

…1572)

With memory enabled, General listed every entry as a full-height card:
seven entries already filled the pane, and a project can hold 200.

**Change**
- The entries move into the shared Settings disclosure **Entries**,
folded by default for the window's lifetime; the scope selector, counter
and Tidy up stay above it.
- The folded summary repeats the **New**, **Modified** and **Needs
review** badges present in the list. Rows render only while open, in a
compact divided layout. A dirty draft unfolds the list.
- The per-scope consultation frontier now advances only while the list
is open (or when it is unfolded after a read), so badges are not
acknowledged unseen.
- New `settings.memory.entries` label in all ten locales; help step
updated in ten languages, plus `dev-docs/AGENT_MEMORY.md` and the UI
README.

**Validation**
Root typecheck; agent-memory, preferences-window and preferences-startup
browser suites (45 passed), including a new folded-state check (badges
in the summary, no rows, frontier untouched until unfolded); `npm run
test:help` (31 passed); live preview with a real configuration.
I keep one live web preview per session while duplicate tabs retain
independent chat/preview choices. Switching tabs preserves the document,
URL, history, viewport and token; closing one tab keeps the survivor’s
browser alive, and saved pages load only on explicit reopening.

I preserve imported URLs/history/templates until the shared layout write
is accepted, give another occurrence its own restoration fence, and
hide/deactivate the retained guest beneath floating drawers without
detaching it. I cover the full 64-entry layout, stale-token cleanup,
surviving toolbar opening, iframe/real Electron drawer hit-testing,
Tauri visibility IPC, menus and dialogs, and correct restoration help in
all ten locales. The production package delta against `origin/dev` is
+257/−219 (net +38), excluding tests and Rust regression files.

I verified that all three new unit cases and all four browser
regressions fail against the original relevant code and pass after the
fixes. Typecheck, the exact unconditioned CI UI step (760 tests), full
UI units (2,345), Electron controller tests (24), and help (31 checks;
28 pages in ten locales) pass. Windows passed 261/262 broad browser
checks, then all 54 session/persistence checks and three focused repeats
of the one Electron timeout, with assertions unchanged. Linux under Node
24.22.2/Xvfb passed 260/262, including all preview regressions and all
54 session/persistence checks; two untouched history-navigation
prompt-menu cases still time out on repeat. The current GitHub UI steps
pass; failures in untouched pruning-presence, Windows legacy-probe
cleanup and Missions native-baseline checks remain outside this preview
fix.
…panel (#1551)

## Why

When I asked agents to set up and run missions for me, the Missions
tools exposed far less than the Missions editor and panel: no automatic
start, no scheduling, no controls over existing missions or schedules,
no access to saved configurations or Missions settings.
`mission.prepare` also refused to run outside an active mission ("Use
the Missions editor"), and `mission.inspect` with `start` silently
turned the calling conversation into the coordinator. Agents had to
drive the UI, and one backlog conversation ended up attached to a
mission by mistake. I want agents to be able to do everything I can do
in Missions.

## What changes

Every owned session of the project (ordinary roots, coordinators,
subagents, mission actors, scheduled runs) can act on every mission and
schedule of the project, including the ones I created in the editor:

- **Prepare** (`mission.prepare`): separate one-time or scheduled
missions with all editor options — title, verbatim notes, scenario, task
mode, coordinator/role agents, models and variants, `startOnCreation`,
full scheduling criteria (`launch`, with the editor's or/if/else
ordering and limits), watched conversations and an explicit existing
coordinator for schedules. The calling conversation is never modified;
the author is recorded.
- **Attach** (`mission.inspect` `start`): clearly described as "attach
this conversation as coordinator"; `missionID` with `start` is refused
before any effect.
- **Read** (`mission.inspect`): project-wide missions, tasks, results,
runs, receipts, cleanups, scenarios, saved configurations and bounded
discovery of scheduling sources.
- **Schedules** (`mission.schedule`): list/read, Play, Pause, Stop,
Resume, Run now, Check, configure and delete for unified and daily
schedules, activation preparation and the OFF diagnostic, explicit retry
of a partially applied configuration.
- **One-time missions** (`mission.control`, `mission.configure`,
`mission.delete`): Play, Resume, graceful Pause, interrupt, Stop,
read/retry of an unconfirmed control, coordinator and missing-report
recovery, status update request, objective/notes/structure edits,
deletion with or without managed conversations and cleanup retry.
- **Settings** (`mission.settings`): saved configurations (save,
replace/rename, delete, reset), Missions profile defaults per scope and
role, task mode, the delete-conversations preference, and subagent
depth.

Every tool reuses the existing business operations and admissions. A
server-produced, signed agent principal is revalidated on each control;
the public HTTP entry point still accepts only human principals, and
agents never produce authenticated human answers. Preference,
configuration and depth writes use compare-and-set on raw values.

**Recovery.** Creation results report `fresh` or `recovered`; automatic
start runs only on a fresh acknowledgement and is consumed once. Replay
identity survives source release, historical preparations are found
again, and deleted (even compacted) targets are never recreated. Exact
replays of completed schedule controls are read-only (no revision
change); Check always reconciles, and missing, partial or evicted proof
stays uncertain. Daily schedules are discovered project-wide and
controlled from their owning Location. Wire schemas stay within the
native decoder's primitives; strict validation stays in the server
codecs.

Docs: `dev-docs/MISSIONS.md`, `dev-docs/MISSIONS_RECURRING.md`, the
`codenomad-missions` skill and the Missions help page in all ten
locales.

## Validation

- Full server suite: 4,676 passed, 26 skipped (pre-existing), 0 failed
(Node 24.22.3 / npm 12.2.2); server and UI typechecks; native wire
schema conversion; help checks 31/31.
- Browser: 348 passed across 20 Missions files; the only failures are 6
tests that fail identically on `dev` (`mission-defaults-models.test.ts`
×5, `mission-editor-scheduling.test.ts:829`).
- Native scenarios on private OpenCode 2.3.0 services: 30 runs and 584
real tool calls from an ordinary root and a subagent, covering agent and
human schedules (including daily), one-time controls, recovery,
deletion, configurations, preferences and depth, exact replays without
double effects, and human controls afterwards.
- Pre-existing, unchanged on `dev`: `native-managed-owner.test.mjs:160`
expects OpenCode 2.0.24.

Large files touched: `packages/server/src/missions/control.ts` (~2,200
lines), `opencode/missions-plugin.ts` (~1,210), `server/http-server.ts`
(~2,600), `opencode/automation-plugin.ts` (~865),
`ui/src/lib/api-client.ts` (~1,010),
`ui/src/components/mission-editor.tsx` (~660), `dev-docs/MISSIONS.md`
(~1,740).
Align server, native runtime and browser tests with the current contracts. Give the scheduled mission test model enough context for the cold-start journey.
@pascalandr
pascalandr marked this pull request as ready for review November 17, 2026 21:12

@pascalandr pascalandr left a comment

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The merge tree matches the release candidate, the notes cover the final changes, and the Windows signing warning is present. The test fixes were reviewed and validated locally. The final CI is not complete; the maintainer requested release without waiting for it.

@pascalandr pascalandr assigned pascalandr and unassigned pascalandr Nov 17, 2026
@github-actions

Copy link
Copy Markdown
Contributor

PR builds are available as GitHub Actions artifacts:

https://github.com/NeuralNomadsAI/CodeNomad/actions/runs/44178231830

Artifacts expire according to the retention shown on the run.
Artifacts:

  • pr-1395-d49e499bf0413531a8b3692106af86f7fb6fc1c2-electron-macos
  • pr-1395-d49e499bf0413531a8b3692106af86f7fb6fc1c2-tauri-macos
  • pr-1395-d49e499bf0413531a8b3692106af86f7fb6fc1c2-tauri-macos-arm64
  • pr-1395-d49e499bf0413531a8b3692106af86f7fb6fc1c2-tauri-linux
  • pr-1395-d49e499bf0413531a8b3692106af86f7fb6fc1c2-electron-linux
  • pr-1395-d49e499bf0413531a8b3692106af86f7fb6fc1c2-electron-windows
  • pr-1395-d49e499bf0413531a8b3692106af86f7fb6fc1c2-tauri-windows
  • fixture-daemon-shard-1
  • pr-1395-tauri-webkit-linux-x64
  • session-pruning-plugin-macos-latest
  • session-pruning-plugin-ubuntu-latest
  • session-pruning-plugin-windows-latest

This branch was previously deployed

1 inactive deployment
github-pages — d49e499b Deployed Nov 18, 2026 by shantur via deploy #1159
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.

5 participants