Skip to content

Release v1.2.0 — Multiple servers, conversation permissions and voice - #1733

Draft
pascalandr wants to merge 191 commits into
mainfrom
dev
Draft

pascalandr wants to merge 191 commits into
mainfrom
dev

Conversation

@pascalandr

@pascalandr pascalandr commented Nov 25, 2026 •

Copy link
Copy Markdown
Contributor

CodeNomad 1.2.0 — Multiple servers, conversation permissions and voice

Open projects from several CodeNomad servers in one window, choose when an agent should ask before acting, and dictate or talk to your active conversation.

Before upgrading

Projects from several servers

Voice and conversation permissions

Browser previews and file links

Missions, conversations and desktop updates

Download CodeNomad · Full changes since 1.1.0

pascalandr and others added 30 commits November 18, 2026 17:16
Removing a plugin from the Plugins panel kept its `-id`/`id` activation
rules. With the package gone, OpenCode read the bare `id` as a package
name and installed and imported the unrelated registry package of that
name (observed with `ponytail`), and the panel showed two phantom rows.

## Changes

- **Applied order:** CodeNomad models OpenCode's plugin order (builtin
and SDK, `plugin(s)/` discovery, then Global and Project documents in
order). A bare `id` is written only after a verified definition of that
ID; otherwise enabling only deletes `-id` rules, or is refused if that
can't reach the requested state (wildcards included).
- **Removal:** removing a source deletes bare `id` rules that would lose
their definition, in its document and in the requesting location's other
documents (dependent cleanups commit first). `-id` rules are deleted
only when no other loader is possible.
- **Uncertainty:** any doubt refuses positive bare writes and keeps
`-id` rules. One resolver selects a local plugin's entrypoint (`server`
before `index`) for discovered and declared folders; declarations are
classified as package or local before identification.
- **Failed and orphan rows:** a failed package row offers Remove; a row
defined only by rules no loader can define offers Remove and has no
switches.
- **Compact arrays:** deleting the last element of a one-line `plugins`
array no longer corrupts the file.

## Validation

Regression tests for each case fail when their fix alone is reverted.
Plugin server suites (246), UI stores (58), plugin browser suites, both
typechecks, help tests. `PLUGIN_CONTROLS.md` and `integrations.md` help
in 10 locales updated.

Not covered: Project documents of projects that aren't open are not
re-checked on a Global removal; on WSL, local plugins stay unidentified
(conservative).
Proposes the bundled npm pin (`.npm-version`) of both desktop hosts from
12.2.2 to 12.2.3.

npm 12.2.3 declares `engines.node` `^22.22.2 || ^24.15.0 || >=26.0.0`,
which includes Node 24.22.3 (`.node-version`: CI and Tauri) and Node
24.22.2 integrated in Electron 45.2.3. This declaration is not a
behavioural validation: only the proposal's PR build and the
maintainer's checklist show whether CodeNomad works with this npm.

Audit of the published npm CLI and its bundled dependencies: npm 12.2.3:
26 affected package entries (0 critical, 13 high, 13 moderate, 0 low);
pinned npm 12.2.2: 26 affected package entries (0 critical, 13 high, 13
moderate, 0 low). The JSON reports are kept for seven days in the
[maintenance
report](https://github.com/NeuralNomadsAI/CodeNomad/actions/runs/44347899796).

[npm 12.2.3 release
notes](https://github.com/npm/cli/releases/tag/v12.2.3). [npm
changelog](https://github.com/npm/cli/blob/latest/CHANGELOG.md).

Before merging, check:
- the release notes of every npm version after 12.2.2 up to 12.2.3,
especially breaking changes to `install`/`uninstall --global --prefix`,
flag parsing, configuration, and the dependency lifecycle-script policy
(`allow-scripts`): OpenCode's postinstall must still run during
installation and native upgrade;
- the PR build's desktop packaging tests, packaged-resources smoke (npm
engines against each host's Node) and the first-installation fixtures
with Tauri's Node and with Electron's npm-only resources, which install
OpenCode with this npm;
- the native OpenCode install, upgrade and legacy-replacement fixtures
run locally against both packaged hosts with this npm
(`scripts/test-opencode-*-native.mjs`): the PR build runs only first
installation with the bundled npm;
- the audit findings above for applicability.

This changes only `.npm-version`; Node and Electron are unchanged. It
does not merge itself.

Review and merge manually after PR validation. GitHub holds the PR Build
Validation runs of a pull request opened with GITHUB_TOKEN for approval:
a maintainer with write access selects **Approve workflows to run** on
this PR (or closes and reopens it with their own account) to start
validation. Validate installer/upgrade behavior, rebuild and publish
CodeNomad before users receive the updated runtime.

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
…due (#1579)

## Problem

A running event-triggered Mission stopped checking its sources on Nov 13
and stayed stuck for five days (it missed #1578). Principal wake 28
passed prompt entry but its carrier turn ended before consuming it.
Native then retried run 29 every five minutes with its due time frozen
in the past, and prompt entry refused run 29 (`Mission stale or gapped
wake`, 1,600+ times) because it admits only `highWater + 1`. Recovery
could not consume run 28 either: fan-in coverage requires a future
native `nextDueAt` as its barrier, and that due time never moved.
Read-only status on the live schedule confirmed it: wake 28
`messagePresent: true, ready: false`.

## Fix

While the prepared run is native's last one (`runCount === highWater +
1`, `wakePreparing` is that run), prompt entry itself refuses every
later firing before its message exists, so that refusal is the barrier.
Coverage now accepts an overdue active calendar in exactly that case;
every other overdue calendar still reads as incomplete. #1482 does not
cover this: it replays a run native presents again, while here native
had moved past it.

## Validation

- New coverage case: the gate and its limits (no preparation, paused, a
later admitted run).
- New composed engine case reproducing the wedge: preflight becomes
ready, the wake starts the passage, high-water advances and prompt entry
then admits the next run.
- Both fail without the change. All Missions server suites pass locally,
except three that cannot load in this checkout (missing `fuzzysort`),
identical with and without the fix.
I added step names to Tauri preview errors while preserving the native
message/HRESULT in the existing alert detail, so a bare E_INVALIDARG
identifies the failing operation.
I retain the latest 32 failures in the existing native snapshot and
inspection diagnostics for the native process lifetime; preview bounds,
storage and retry behavior stay unchanged.

Verified on Windows: `cargo test --locked` (365 passed), `cargo clippy
--locked --no-deps` (passes with existing-code warnings), `npm run
typecheck`, server workspace typecheck, automation route tests (6
passed), and the exact “Test changed runnable UI behavior” CI step (760
passed).

Large touched files: `packages/tauri-app/src-tauri/src/main.rs` (3,176
lines), `packages/tauri-app/src-tauri/src/browser_controller.rs` (1,815
lines), `packages/tauri-app/src-tauri/src/embedded_view.rs` (651 lines).
Keep important conversations close with a single row menu. Pending
requests stay first, and favorites stay in their conversation tree and
sync across windows for the same folder.

Search can reveal matches hidden by session-type filters without
changing scope. Keyboard focus follows a moved row, and manually
collapsed branches stay closed through favorite updates.

Verified with isolated browser flows, UI and server typechecks, targeted
tests, and help validation in all ten locales.

Fixes #1575
)

I fixed a long journal blocking new tasks and briefings and hiding
neighboring missions in the panel. The native reader replays existing
events in ordered batches, preserving history, revision checks and
cleanup receipts.

On a private OpenCode 2.3.0 service, the panel showed the 10,020-event
mission, its neighbor and the schedule after restart. `npm run
test:long-mission-journal` also checks a new task and briefing,
unchanged original entries, replay and managed cleanup.

Follow-up: checking freshness still reads historical bodies (2.85 MB for
a warm open at 10,020 events). `node --import tsx --expose-gc
scripts/benchmark-mission-journal.mts --long` measures this separately
from the capacity fix.
… move (#1576)

A conversation moved to another project by OpenCode's native
`session_move` (for example by an agent) stayed listed and selected in
its old project tab, where every read failed with 403. The native tool
moves only the parent; its children stay behind, and the old tab kept
the moved parent to connect them.

## Changes

- **Relay:** `session.moved` reaches the owners of the old and new
locations and any tab that already received that session.
- **Old tab:** a session moved to a folder the tab doesn't own is
removed through the same path as a deletion (selection cleared,
transcript dropped). The new tab lists it. A move back lists it again.
- **Reload:** the workspace proxy's refusal for a session located
elsewhere carries `reason: "session_located_elsewhere"`. A parent read
refused for that reason counts as a missing parent; every other 403
stays an error.
- Children left behind get no special handling. The UI move is
unchanged.

## Validation

Browser tests (move to an open tab, to a folder open in no tab, reload
after the move), store, adapter, proxy and relay tests fail on `dev` and
pass now; each fix reverted alone fails its tests. Both typechecks, 551
UI units, 102 browser tests and the server suites pass.

Not covered: restoring a selected conversation that moved while
CodeNomad was closed.
Use OpenCode 2.3.2 as the minimum and recommendation. Mission calendars
use native Automations and retain migrated calendar and wake identities.

Isolated Windows tests verified automatic cold restart through archival
for a migrated one-shot and a recurrent Mission, each with one
successful passage and no duplicate start. New calendars also passed
one-shot settlement and carrier cleanup. Minimum/latest CI remains
required.
I kept long journals usable in #1583. This follow-up tracks changes in
SQLite so that reopening a qualified mission, inspecting its first
tasks, or adding work does not replay its historical text. The journal
still owns mutations and history; the derived index can be rebuilt or
removed on an offline copy without changing the events.

On the same synthetic data, warm status at 10,148 events fell from 15.45
MB of bodies transferred to zero, and adding a task from 46.34 MB to 351
bytes. In the 10,020-event panel test after reopening, the header
transfers 2.4 KB and the first task window 183 KB including
continuations, without historical bodies. Selected briefs and reports
read their original event. Initial reconstruction and uncached later
windows still replay the journal; the measured later window transfers
16.54 MB cold and zero warm. These are bytes returned by SQLite, not
disk reads.

Validation: `npm run test:long-mission-journal`, `node --import tsx
--expose-gc scripts/benchmark-mission-journal.mts --panel-io`,
`--read-budget` and `--compare 1`, private OpenCode 2.3.0, root
typecheck and server/UI builds with the lockfile. Server suite: 4,741
passed, 25 skipped, one unchanged session-pruning packaging test fails
because `npm pack --json` returns an object under npm 12.2.3.
I made each background shell a single row in Status. Click the command
to open its existing output window; hover, focus or long-press for
details. A separate trash button keeps stop/remove confirmations
distinct.

I tested narrow panels, right-to-left layout, keyboard and touch
interactions, and updated the help in all ten languages.
#1590)

CodeNomad returned HTTP 503 after waiting five seconds for a plugin
acknowledgement. OpenCode returned a complete snapshot for the same root
in 801 ms immediately afterward.

Keep catalogue activation for the authorized root and use the validated
native snapshot as proof of recovery. Ownership checks, compaction
deferral, and write operations are unchanged.

The regression failed before the fix. Targeted server tests, typecheck,
and a cold-root run on isolated OpenCode 2.3.0 passed.
Warn once per project until pending-request recovery succeeds, even when
the failed folders or error details change after reopening. Keep retries
and known requests intact.

Send failed-batch phases to the production logger so the next 503 can be
traced without logging paths or request contents. The cause of the
reported live 503s is still unconfirmed.

Both regressions failed before the fix. 61 UI tests, 47 server tests,
both typechecks, and the help build passed.
Allow a root to save itself as the recurring coordinator during its own turn. Keep ownership and source checks at save time, and require a quiet session family before dispatching each passage.

Cover creation and configuration during a live turn, busy admission refusal and reuse across two passages. Validate the server typecheck, focused Missions tests, localized help and plugin build.
Allow the active claim only while saving for the authenticated author root. Preserve idle admission and reject an inactive claim.
Observe a named remote branch through the detected forge without fetching locally. Freeze the observed tip before launching a passage.

Keep coordinator ownership and source checks when saving a self-selected root; require an idle family at dispatch. Return exact pre-write refusals so the bridge does not retain false uncertainty.
Select the current root as a recurring coordinator, return definitive
pre-write refusals, and watch a named branch directly on its remote
forge.

Verified locally: 146 focused tests, five Chromium scenarios, server and
UI typechecks, localized help, plugin build, and the actual GitHub dev
ref.
Follow-up to #1585: read npm 12 output by package name and keep support
for the npm 11 array. The test still checks the packaged entrypoints and
dependencies. Verified with npm 11.6.2 and 12.2.3.
`mission_settings` ships a top-level `oneOf` that Anthropic rejects
before it runs the model. Advertise a plain object and keep the strict
scope and action checks at execution.

The regression fails on the previous schema. All 14 focused tests,
server typecheck, and the Missions bundle build pass.

Fixes #1592.
On Windows, the installed preview downloaded and verified the update,
but cancelled shutdown before the webview acknowledged its state save.
Increase the update-only renderer deadline from one to ten seconds.

Installation still requires all acknowledgements and confirmed backend
shutdown. Ordinary quit, Windows logout, and late acknowledgement
handling are unchanged.
Choose how CodeNomad listens and speaks from one Voice page.

Keep dictation audio on the device when using a local engine, or talk to
the active agent session hands-free.

- **Preferences → Voice** separates Dictation, Playback and
Conversation. Choose System, Hex or API dictation; activate Hex in one
click.
- Classic conversation needs only configured playback.
- Gemini Live and OpenAI Realtime use a CodeNomad gateway with
server-side keys, explicit consent, session limits and manual or
automatic stops.
- Live voice sends requests straight to the agent through the normal
prompt path, with the usual permissions and questions.
- Unavailable composer commands explain why. Dictation, input tests and
live conversation share one microphone. Help is updated in all ten
languages.

Remote Tauri windows on Linux support API dictation up to 24 seconds;
live conversation is unavailable there. Real provider keys, a physical
microphone and installed packages were not tested.

Verification: server, UI and Electron type checks; targeted server, UI
unit and Chromium, Electron, Hex and Windows Tauri tests; and `npm run
test:help`.

Live conversation design draws on #762 and #759 by @darfi-gdp.
One plain-text note per session, stored in the profile under the
agent-memory project identity: worktrees of a repository share them, and
clones whose remote is the same hosted repository.

- Bridge codenomad.notes: get/set (revision compare-and-set) for the
  displayed conversation, list (project notes newest first, orphans of
  deleted sessions), delete, open, onChanged; install sentence, removal
  confirmation and help in 10 locales; native probe entry.
- Store: notes/<key>/<project>.json under a per-installation key in the
  catalogue record, so the catalogue write alone commits a removal. Every
  catalogue mutation, note write and note read takes one profile-wide
  cross-process lock (agent memory's), so backends sharing a profile stay
  consistent. Revisions keep a per-project high-water mark; inconsistent
  files fail closed.
- Routes: the host picks the session and project; writes recheck the
  project identity, the session and every fence inside the queue, and a
  started commit settles the route. list and open stay inside the project;
  open is fenced against worktree deletion.
- Channel: data-free panelExtensions.notesChanged plus session deletions
  and reconnects in any instance invalidate notes:changed; a deferred open
  dies on unmount, disconnect or native generation change.
  openHistoryMatchSession shares openListedSession with it.

Known limits are listed in the PR review.
…1600)

Extension API 4 gains three permissions so a panel such as Contribute can
open an issue or pull request in its own worktree:

- repository.workItems.read: API 3's work item pages and item pages.
- repository.worktrees.read: worktrees.list() and onChanged, the items
  whose local branch CodeNomad linked, joined to the fresh worktree
  inventory and to the displayed conversation family.
- repository.worktrees.write: worktrees.open(kind, number) only asks.
  CodeNomad shows its own confirmation naming the item and the
  repository, then creates issue-N (at the family's checkout) or pr-N
  (at the pull or merge request head the forge publishes), checks out a
  worktree for that exact branch tip and moves the whole family there.

Links live in the repository config (branch.<name>.codenomad-work-item)
and are proven by CodeNomad's own reflog creation entry, else by
ancestry; recreated, copied, renamed or case-only twin branches are
conflicts. Branches are created only if absent, never forced, and a late
change of consent or remote undoes the write without touching a branch
the user adopted. The selected remote, consent and the target are
rechecked before every host mutation; PR fetches run outside the shared
Git worker and stop with their process tree when abandoned.

Verified on Windows: server, UI unit and Chromium suites, both
typechecks, help and locale checks, and the WebView2 native probe.
Part of #500.
The palette hover test failed on every branch: its fixture still
rendered the background shell row as a focusable `.status-process-card`,
while the row now draws its hover on the inner `.status-process-command`
button. The fixture now mirrors `background-shell-row.tsx` and the test
hovers that button.

Verified locally: red on `dev` and the multi-backend base with "classic
.status-process-card: hover must remain visible", green with this
change.
…ction (#1601)

Run now with an existing, agent-selected coordinator reserved its
passage but never admitted it: the passage authority read the document
row with `Effect.runSync` outside the open SQLite transaction, which
failed and was reported as an unknown admission. The authority now reads
through the source-fence helper that uses the active transaction graph;
no check is removed.

Verified with a unit test on the transaction graph, the native product
fixture on isolated OpenCode 2.3.2 (new `--existing-coordinator`
paused-manual case: red before, two Run now passages archived in the
same conversation after), the server typecheck, the full server suite
and the CI `at,in` fixture.
Technical schedule carriers compact automatically, and each compaction
showed a "Mission schedule carrier was compacted" notice on screen and
in History. The compaction notifier now skips the reserved carrier
namespace through the existing shared predicate; ordinary conversations
still notify, and Settings help says so in all ten locales.

Verified with the compaction notification Chromium test (carrier silent,
ordinary session still notifies), the workspace-scope notice test, the
UI typecheck and the help checks.
…#1603)

A schedule reusing an existing conversation never archived its passage
when that conversation had earlier subagents in another Location (for
example a worktree): settlement required every family member to share
the coordinator directory and threw "Passage family moved" on every
check. A descendant captured in the coordinator baseline and quiet since
then now keeps its existing Location; project and parent stay checked
for every session, and passage-owned or newly active sessions must still
be in the coordinator Location.

Verified with a unit test (red before, settles after, still refuses once
the old child has new work), the settlement suites and the server
typecheck; on the real profile the stuck Dependabot schedule archived
its completed passage on the next Check with this build.
#1604)

A schedule with an agent-selected existing coordinator never started its
pending passage: each reconciliation wake re-asserted its eight-second
preflight receipt in every guard, and validating that coordinator reads
every Mission journal and document of the project, which takes longer on
a real project, so admission failed with `schedule-preflight-invalid` on
every check. The receipt still gates consuming the run (what makes an
expired dispatch safe to re-claim); once the auxiliary run is consumed
under the document exclusion, owner and passage reconciliation keep
every other guard but no longer require the receipt.

Verified with a receiver test that expires the receipt during
reconciliation (red before, green after), the wake, preflight and
code-wake suites and the server typecheck; the failure was captured on
the real profile with a temporary local log at an idle-coordinator
check.
…switches model (#1607)

Switching the coordinator conversation to another model during a
scheduled passage froze the whole schedule: every Mission tool call
rechecked the frozen coordinator profile and failed with a generic
"Scheduled Mission business unavailable", and every reconcile reran the
admission check, so finished passages could never archive. The
coordinator profile now gates only the first send (when adoption applies
it); afterwards the conversation's agent and model are its user's
choice. Task roots keep their role profile check, and the legacy
recurrence path follows the same rule.

Verified with a runtime test that switches the coordinator's model after
admission (red with "Scheduled passage root profile differs", now
selects, reports and settles), the Mission passage/business/recurrence
suites (109), the full server suite (4778 passed, 25 skipped; one
earlier run had a single unidentified failure that did not reproduce)
and the server typecheck. The real failure was captured on a live
profile.
During a scheduled passage every Mission tool refusal reached the agent
as "Scheduled Mission business unavailable", hiding deliberate refusals
such as a Debugging role missing its prerequisite. The bridge now
carries a `MissionControlError` as a bounded refusal (message and code)
and rethrows it as the direct path does; any other failure stays
generic.

Verified with a bridge test that fails without the fix (refusal keeps
its message and code, an ordinary error stays generic), the bridge suite
(17) and the server typecheck. Full server suite: 4856 pass; the 4
voice-conversation-config failures also fail on `dev` locally (profile
identity).
…1612)

Follow-up to the #1611 review: `humanDecisionRequired` appended the
innermost raw cause, which can be a system error with a path, and
scheduled passages now forward that refusal. The detail is kept only
when it is a short message made of words (every fixed gate reason) and
dropped otherwise; the advertised refusal code limit now matches the
schema.

Verified with a new unit test (red before), the decision gate, native
human answer and business bridge suites (64) and the server typecheck.
…#1768)

Opening the Missions list read every task mark of every listed Mission to colour the rows: 48 requests for 1,678 marks on a real project, of which 41 belonged to tasks that could still work or ask. A row's marks are now read only while they can change it (active or failed Mission, or one changed since this window last saw it), and the plugin lists them in attention order so the directory stops at the first window ending on a finished task already seen.

Verified with unit tests for the order and the covering rule, a browser test that counts the windows read, the status-mark, tree-parity, inventory, list-item and summary browser suites, and both typechecks.
… reads off the panel's lane (#1770)

Opening a task reader beside a Mission's task tree threw "Maximum call stack size exceeded": the reader and the tree demand task conversations at different pulses, and each demand subscribed its effect to the entries it then wrote, so the two reran each other without end. Separately, since #1763 one slow schedule read held every Missions panel read behind it on their shared lane. Demands now read the store untracked, schedule reads get their own lane, and three inventory tests that still expected the spinner #1730 removed are brought up to date.

Verified with two unit tests that fail without their fix (the loop, and a held schedule read) and the inventory, tree-parity, navigation, visibility and status-mark browser suites. The schedule-list suite keeps the failures it already has on `dev`.
…en its list from the first page (#1772)

Six schedule-list browser tests failed on `dev`. Since #1763 a click on Start waited behind any list read in flight, because every schedule read shared one request slot; since #1755 reopening the panel re-read every page loaded before, ahead of the selected schedule. The reads of one schedule return to the shared budget (only the list and current-passage reads keep the dedicated lane), and a reopened list revalidates from its first page while the cache still shows the rest at once.

Verified with the schedule-list, inventory, navigation, scheduling and recurrence browser suites, the schedule and view-IO unit tests and the UI typecheck.
…r hides the Mission just selected (#1773)

Since #1763 the Missions panel's reads waited for one request slot, so selecting another Mission while a list refresh was in flight showed nothing until that refresh answered; fourteen editor-lifetime browser tests failed on it. The Missions lane gets two slots and carries the panel reads, the schedule list and the current-passage identity, replacing the separate schedule lane of #1770, so the request budget is unchanged. Three browser tests that still expected the spinner #1730 removed are brought up to date.

Verified with the editor-lifetime, current-pages, scheduling-stability, inventory and schedule-list browser suites, the view-IO unit tests and the UI typecheck.
…ge tree (#1774)

Since #1732 a selected row mounts its task tree only while its chevron is open, and four current-passage browser tests still waited for a schedule's tree without expanding it. They expand the selected row first, and the one that was passing on another Mission's tree now names the schedule's own detail.

Verified with the current-passage browser suite (19/19).
…erged since (#1775)

Five browser tests in four files failed on `dev` because the behaviour they describe was changed on purpose without them: task reads on the Missions lane (#1763), the held creation notice replacing the Refresh saved request button (#1729), the page size kept on cursor continuations (#1763), and a task-less Mission showing its family's question on its flag as soon as it is listed (#1768). Each test now states the current behaviour.

Verified with the four browser suites (task-read-integrity, native-family, editor-profiles, editor-scheduling) and the UI typecheck.
…ead it (#1776)

Two Missions browser tests failed on `dev` for reasons outside the panel: the session fixture's client lacked the location call the file view reads since #1699, so the preview threw and stayed on "Loading..."; and the rails test under CSS zoom waited for a last task the tree does not mount until the panel scrolls to it (since #1732). The fixture gains that call, and the test brings the tree's end into view first and checks the rails there too.

Verified with the panel-geometry (twice), mission-control and reader-transcript browser suites and the UI typecheck.
…pacted deletions (#1771)

Schedules with a pending native operation or an uncompacted deletion
return HTTP 503 (\schedule-pending\) on \GET
/api/workspaces/:id/missions/:missionID/schedule\, which aborted the UI
preflight read in \createMissionScheduleControls\ before \POST
/schedule\ was ever sent. When \check\ compacted a recorded deletion
into a tombstone carrying the original delete \ equestID\,
\controlNativeMissionSchedule\ also returned \pending: true\, leaving
both the server hold and the UI unable to settle the deletion.

This PR unwraps \503 schedule-pending\ preflight responses for
recovery/interruption actions (\check\, \pause\, \stop\, \delete\) with
exact \id\ and \ evision\ checks (keeping \play\, \ esume\, \ un-now\,
and \configure\ strict), returns a non-pending tombstone receipt when
\check\ compacts a deletion, and settles qualified compacted tombstones
in both \mission-scheduled-holds\ and \mission-schedule-controls\.

Verified with \ sc --noEmit\ (server and UI), server schedule tests
(\mission-scheduled\, \
ative-mission-schedule-result\, \
ative-mission-schedule-control\, \
ative-mission-schedule-deletion\, \
ative-mission-schedule-check-replay\), and UI schedule tests
(\mission-backend-consumers\, \mission-schedules\, 125/125 passing).
Choosing a preset over manually adjusted **Message content** rows
discarded them. A preset chosen over Custom now saves those rows
(`transcriptCustomPreset`), and the popup menu and **Settings → Chat**
then offer **Custom**, which applies them again, including after a
restart. A newer Custom state replaces the saved one when a preset is
next chosen over it.

Verified: unit round trip for tool and detail rows; browser test through
the real settings service (customize, Balanced, reload, Custom from the
open list, newer Custom replaced and restored from Settings); 10
transcript-presets/status-tokens browser tests and UI typecheck pass.
Help updated in the ten locales.
…iring (#1778)

Two Missions browser tests failed intermittently because they read the task tree before it had mounted and measured its rows; they now wait for the rows and for a layout that holds across frames. The CLI shutdown wiring test, failing on every run since #1703, now matches the stdin handler as written: the native parent first, then managed session control.

Verified by running each browser test three times in a row, the server test, and the UI typecheck.
…descendants does (#1779)

Since #1753 a completed Mission no longer walks its actors' session families, so a question or permission asked by one of their descendants was attributed to nothing and the Mission's row never showed it. The display read now follows each pending request's session up to its parents first, and walks a family only when a request descends from its actor; a completed Mission with nothing pending below it still makes no `session.list` call.

Verified with a new activity test that fails without the change, the activity, family-projection, panel-activity and Missions route suites, and the server typecheck.
…bservation (#1782)

Since #1779 the display read follows each pending question or permission up to its session's parents, and it did so again at every observation, which made an inventory browser test fail on `dev`. The activity cache now keeps the parents it reads, as it does family trees, so a pending request is followed once. The browser test now asserts what it meant: no further actor window is requested for the Mission.

Verified with the activity, panel-activity and Missions route suites, the inventory browser suite and the server typecheck.
…erves (#1783)

The Missions store kept a second mode from the first panel: one list for rows and maps together, with includes, a row-list version and follow-up reads. No production code selected it, but about thirty unit tests did. `createMissionStore` now has the single mode the panel uses (a rows read, and maps adopted from the panel inventory), and the tests drive it that way through a small fixture. Three sets of tests already failing on `dev` are repaired on the way: the task-read contract tests (Missions read lane, #1763) and a file-editor lifetime test (#1699).

Verified with the Missions and backend unit tests, the task-read contract tests, ten Missions browser suites and the UI typecheck.
…ows (#1781)

Skip mounting per-message `PermissionReceipts` on user messages, queued
prompts (`pendingPrompts`) and non-assistant metadata rows in
`MessageSection`, since only assistant tool calls anchor per-message
permission receipts. This eliminates unnecessary
`/permission-receipts?messageId=...` requests and prevents spurious
"Could not load permission decisions" banners from appearing under user
or queued messages when a read fails under load, while leaving assistant
rows and session-level unanchored receipts untouched.

Verified with `npm run typecheck --workspace @codenomad/ui`,
`packages/ui/src/components/message-history-pagination.test.ts`,
`packages/ui/tests/browser/permission-receipts.test.ts` (11/11 pass,
including a new 503 regression covering user, queued and compaction
rows) and `packages/ui/tests/browser/session-rendering.test.ts` (48/48
pass).
A reachability scan from the production entry points found eleven modules that no production code and no test imports (six UI components, three UI helpers, one server helper, one Electron helper), most of them older than the move to OpenCode V2. This removes them with the 19 interface strings only they used, in the ten locales, and their entries in the architecture table, the backend operation inventory and the performance budgets.

Verified with the UI and server typechecks; the locale tests and the backend operation inventory test give the same results as on `dev`.
Missions once carried a signed "host authority" (grants and receipts in their own storage namespace, a managed-owner observer, signed intents and derived calls). The shipped plugin stopped using it and a bundle test asserted these modules stay out of it, but they remained in the tree with their tests. This removes them: about 1,400 lines of source and 1,450 of tests. `authority-protocol` keeps the parts still used, and the storage-isolation test keeps its journal half. The rule forbidding any access to the old `authority-*` namespaces stays in `MISSIONS.md`.

Verified with the server and UI typechecks and the 174 test files of `missions/`, `opencode/missions/` and `host-lifetime/`; two load-sensitive tests of that run pass when run alone.
…1786)

`missions/native-human-evidence.ts` verified a human decision from the native session log, but nothing in production imports it: the human gate runs through `opencode/missions/native-human-answer.ts`. This removes the module and its test (about 450 lines); the one test that borrowed its request type declares the shape itself, and the two places that named the file now name the timeout constant instead.

Verified with the server typecheck and the native-human-answer and contracts tests.
Two checks meant to catch unnoticed changes had been failing on `dev` for days. The server-editor label snapshots are recomputed for French and German (stale since #1629) and for Spanish and Nepali (later wording fixes). The backend operation manifest is rewritten from the scanner's output for the seventeen files that had drifted; every file already has its row in the architecture table.

The manifest is resynchronised, not re-audited: each access was reviewed, or not, in the change that added it. Verified with `backend-async-inventory.test.ts` and `codenomad-link.test.ts`.
…1789)

Missions kept an older "every day at a fixed time" schedule format beside the current schedules. Only an agent tool could still create one, yet the panel carried a second list, reader, controls and store for it. This removes that interface; the server and plugin side follows in a second PR.

The panel now lists one-time Missions and schedules only. A daily schedule stored by an earlier version no longer appears, and the release notes should say to recreate it as a schedule.

Verified with the UI typecheck, the Mission, i18n and backend unit tests, and 36 Mission browser test files.
…recovery (#1788)

Adds opt-in OpenCode `/goal` support for one-time Mission coordinators so long-running orchestration continues across turns and recovers automatically when OpenCode restarts (including unattended when CodeNomad is closed). Runtime bookkeeping lives beside the journal so mission revisions and journal capacity stay untouched, while foreign goals, user clears, and manual/stall/round-limit pauses are preserved.

Verified with `tsc --noEmit` (server + UI), `build:missions` and Vite UI production builds, `scripts/test-help.mjs` across all 10 locales, server and UI Mission/goal unit suites, `scripts/test-mission-goal-restart-native.mjs` (Probes 1-4), and `scripts/test-mission-coordinator-goal-e2e.mjs` (Steps 1-5) against real isolated OpenCode 2.4.1.

Review added a second commit: Mission changes no longer re-read the journal for the goal runtime, a recovered Mission arms /goal again, an arm queued behind the coordinator's turn is paused or cleared once adopted, and a refused /goal resume is retried. Each was reproduced by a failing test first.
Two UI store unit tests had drifted on `dev`: `backend-action-lifetime.test.ts` lacked the Solid `batch` binding introduced in `opencode-projection-frame.ts` (#1690), and `tab-view-state.test.ts` mutated the frozen `encoded.partitions` object returned by `encodeClientSnapshotV2` (#1693). Passing a passthrough `batch` stub in the AST harness and cloning `encoded.partitions` and `encoded.root` before editing them brings both suites back to green without touching production code.

Verified with `npx tsc --noEmit -p packages/ui/tsconfig.json` and both test files under `--conditions=browser` (13/13 pass).
…and plugin (#1791)

Removes the daily schedule format from the server and the Missions plugin: its HTTP routes, plugin RPCs, agent tool surface (`mission.schedule` `owner: "daily"`/`create`, `mission.inspect` `passage`), in-process clock, storage and every module left without a caller. The panel no longer listed or created these schedules (#1789), and editor schedules cover the same cases.

Release note for 1.2.0: daily schedules created with 1.0.1 or 1.1.0 are no longer read or run and have to be recreated as schedules.

The current-passage routes and RPCs stay for schedules. Tests of the code that stays (family settlement, native SQL observation, current-passage reads) now run on a schedule document through the real admission and settlement. Developer docs, the Missions skill and the ten help pages drop the daily contract.

Verified with both typechecks, the plugin build, the Mission server tests, the touched UI contract and browser tests, the help tests, and on an isolated OpenCode 2.4.1 the coordinator-goal harness and the native schedule product fixture.
…or (#1793)

PR #1788 reused `.mission-create-autostart` on the coordinator `/goal` checkbox in `MissionEditor`, making strict locators for `.mission-create-autostart` match two checkboxes and breaking three creation tests in `mission-panel-focus.test.ts`. This gives the `/goal` checkbox its own `.mission-create-coordinator-goal` class sharing the same layout rule in `mission-create.css`.

Verified with `npx tsc --noEmit -p packages/ui/tsconfig.json` and `tests/browser/mission-panel-focus.test.ts` (6/6 pass).
….4.1 (#1797)

Pins `@opencode/client`, `@opencode/schema` and `@opencode/plugin` to 2.4.1 (lockfile included; `effect` stays 4.1.0), so the code is built against the declarations of the runtime it already requires (minimum 2.4.0, recommended 2.4.1). Nothing changes for users.

The only source change: 2.4 adds a `shell` Automation action, so `matchMissionAutomation` names the `code` variant before reading its fields. CONTRIBUTING and the compatibility document state the new pins.

Verified with both typechecks, the four plugin builds, the full server suite and the interface unit and contract suites (same failing tests as `dev` on 2.3.2), six browser files, and on an isolated OpenCode 2.4.1 the coordinator-goal harness and the native schedule product fixture.
… code (#1780)

## Why

#1721 made bare prose paths clickable, but its token charset was
ASCII-only, so a path whose file name contains CJK letters
(`docs/superpowers/specs/2026-11-26-算法工作台MVP-design.md`) split into
fragments and stayed plain text. Code spans were also excluded from
conversion — and agents backtick file paths constantly, so most real
mentions, including the reports that surfaced this, never linked at all.

## User-visible change

- A bare path whose file name contains non-ASCII letters (CJK, Cyrillic,
…) becomes a link when the conversation's worktree contains the file:
the whole path converts end to end.
- A path inside inline code (`src/app.ts` in backticks) links with the
same existence gating, tooltip and click routing as plain-text paths;
fenced code blocks stay literal.
- Help pages updated in English plus the nine translations.

## Approach

- `lib/markdown-bare-paths.ts` — the token charset admits every script's
letters, marks and digits (Unicode property classes; CJK punctuation
remains a boundary). A token carrying non-ASCII letters yields an
**integral** reading (the whole token as one path, gated by
`projectLinkPath` and the plain-file-name shape with any-script stems)
plus **boundary pieces**: edge letter runs trimmed as prose, interior
runs split, each piece gated exactly as the ASCII-only grammar did.
- `components/markdown-bare-paths.ts` — the wrap pass probes a token's
integral reading first and wraps it alone when its file exists;
otherwise the pieces convert independently, preserving today's behavior
for CJK-adjacent prose (`看看src/app.ts吧` still links `src/app.ts`;
`src/app.ts和docs/x.md` still links both). `SKIP_TEXT` drops `code` so
inline code spans convert; `pre` (fenced blocks), existing links and
local-image labels stay plain.

## Edge cases

- Both token edges being letter runs is prose wrapping the token
(`看看…吧`), never one file name: the integral reading is skipped there, so
glued prose costs no extra listing.
- A missed integral reading costs at most one cached (30 s TTL)
parent-directory listing — the same bounded fail-closed class `and/or`
already pays. A separator-less integral candidate still needs a
two-character stem and a short ASCII extension.
- Email-shaped tokens with CJK accounts, scheme-shaped and UNC values
are rejected per reading and per piece.
- Inline-code anchors nest inside `<code>` and route through the
existing delegated click handler; paths containing spaces and worktree
escapes still never convert.

## Validation

- Unit (17): candidate grammar — CJK interior/edge/connector shapes,
any-script stems, CJK email/URL rejection, byte-consistent spans of
every reading — plus all pre-existing ASCII cases unchanged; the
directory-listing cache suite (12) stays green.
- Browser (4): the real component and delegated clicks — CJK integral
paths link and route, bare CJK file names link, inline-code paths link
and route, fenced blocks never convert, connector-glued pairs fall back
to two links, held-listing rerender and cache revalidation stay green.
- `tsc --noEmit` (ui) and the help structure check (31 tests) pass. One
`markdown-session-links` assertion fails identically on current `dev`
(it hardcodes an English toast string and this machine's browser locale
is Chinese) — pre-existing, untouched by this change.

---------

Co-authored-by: Pascal André <pascalandr@gmail.com>

This branch was successfully deployed

1 active deployment
github-pages — 2a8cd4d4 Deployed Nov 26, 2026 by pascalandr via deploy #1668
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.

3 participants