## 2026-11-21 - the omo SDK signs in by device code and renames a device (#14513) `src/components/omo-sdk/account/sign-in.ts` runs `loginDevice` on the SDK's clock port, stores the credential through the credential store and runs the device-service setup `runLoginSetup` runs; `devices/index.ts` adds `rename`. `service-auth/device-flow.ts` refuses with a code (`approval_expired`, `approval_denied`, ...) and its display value carries `expiresAt`. Part of #14364. ## 2026-11-20 - Keep per-device reasons for silent thread lookups (#14487) Thread reopen and monitor target resolution preserve each silent device's reason in `host_unavailable` details. The refusal names slow devices separately, and the client still waits up to 3,500 ms for each locate reply. ## 2026-11-20 - Apply thinking suffixes when switching thread models (#14482) `thread_set_model` matches against the target catalog and applies a recognized thinking suffix to the target session after the model switch. On an unsupported level, it restores the previous model and level before returning `thinking_level_unsupported`, or returns `partial_commit` if it cannot confirm restoration. A switch the target does not show as active returns `partial_commit` with `model_switch_unconfirmed`, and a target that reports no current model state refuses a suffix with `unsupported` / `model_state_unavailable`. If the requested provider has no available models on the target, `model_not_found` includes `provider_not_configured` and the available providers. ## 2026-11-20 - the local launcher names its plugin in the brand profile (#14467) `src/install/local-launcher.ts`: the generated launcher sets `SENPI_BRAND` to the brand plus `extensions: [plugin]`, the same runtime value (`OMO_PLUGIN_ROOT` or the install path) it passes with `--extension` (#14465). ## 2026-11-20 - DeepSeek V4.1 Flash receives the GPT ultrawork prompt (#14462) `ultraworkVariantFor` in `src/components/ultrawork/directive-variants.ts` returns `gpt` for a GPT id or a DeepSeek V4.1 Flash id (`isDeepseekV41FlashModel` in `@oh-my-opencode/model-core`). The senpi `deepseek-v4-1-flash` preset became a standalone copy of the gpt-6.2 core (senpi#7100), which owns reading, reporting and todo upkeep, so the default directive contradicted it the way it contradicted gpt-6.2 (#14441). The four bundles that carry `model-core` are regenerated; `omo.js` is 1,560,003 B and the budget is unchanged. ## 2026-11-20 - Ultrawork directive variants are whole prompts chosen by the receiving model (#14460) The Astra variant was an overlay: eleven marked blocks of `skills/ultrawork/SKILL.md` were swapped from `references/astra-variant.md`, so every unmarked sentence of the default still reached the model, and only ids matching `isGpt6AstraModel` received it. Now `skills/ultrawork/SKILL.md` is the default directive and `skills/ultrawork/references/gpt.md` is the GPT directive, each a complete prompt. `plugin/scripts/embed-directive.mjs` embeds one export per source (`SENPI_ULTRAWORK_DIRECTIVE`, `SENPI_GPT_ULTRAWORK_DIRECTIVE`); the marker syntax, `astra-variant.md` and `SENPI_ASTRA_ULTRAWORK_DIRECTIVE` are gone. `src/components/ultrawork/directive-variants.ts` selects by `isGptModel` of the receiving model, at arming and again at each request. The default directive is byte-identical to its previous rendering (sha256 `90065d4c043e7aefb63a83787fe2ce28a439fb913b07bc00fbb4c030d99e221b`). The GPT directive is 2,723 `o200k_base` tokens against 7,590 for the default. `omo.js` grows by 9,681 bytes (the GPT directive is embedded whole), and `bundle-budget.json` is set to the measurement plus 4 KiB. ## 2026-11-20 - Error-streak operator alerts (#14430) - `src/components/thread/run-alerts/error-streak.ts`: `runEndOf` (a settled run's outcome via `completionOutcome`, keeping only the error class, provider and model), `classifyRunError`, and `createErrorStreakDetector` (injected clock: alert at `threshold`, still-failing at most once per `realertMs`, recovered at the first normal run after an alerted streak, aborts counted beside the streak). - `src/components/thread/run-alerts/run-alerts.ts` `createRunAlerts`: fed from the thread component's `agent_end` / `agent_settled` handlers; sends to each configured thread through `registerThreadTools`' new `sendAs` (the `thread_send` wrapper) and to the webhook, in the background, each retried once. - `omo-config-core` `schema/operator-alerts.ts`: `operator_alerts.error_streak` and `resolveErrorStreakSettings`. ## 2026-11-20 - GPT-6.2 Astra profiles (#14427) The Obsessive profiles use GPT-6.2 Astra instead of the previous Astra model. The Normal profile retains its separate Sol choices. ## 2026-11-19 - engine_version on this device's thread_list rows (#14409) `live-surface.ts` `requestFrame` hands the host's `get_protocol_info` answer to an optional `onProtocol` callback (rpc_host connections), and `listEndpoint` tags each listed session with `engine_version` from it. For a terminal endpoint the version comes from the `learnTuiCommands` answer, kept per socket. `tools/thread-row.ts` copies the field onto the row. ## 2026-11-19 - The remote client on the shared address module (#14327) `components/remote` resolves device parts with the core's `resolveDevice` (`resolve.ts` `resolveRemoteDevice`) and judges a silent device with `deviceListing` (`listingIncomplete`). Removed: `sessions.ts` `resolveSessionTarget` and `targetOf`, `aliases.ts` `sessionOf`, `resolve.ts` `deviceNamed`. `attach.ts` resolves its device part before it opens; `follow` and `wait` open through it. ## 2026-11-19 - The thread SDK resolves through the address module (#14322) `thread/sdk.ts` calls `thread/address` `resolveAddress` for every address instead of its private paths, with or without a remote surface; an id this device's gateway store owns skips the lookup, and a send lists the host once. The store-only operations resolve over this device's book first and consult the account only on a local `not_found`. `tools/internals.ts` `resolveStoredSession` is deleted (its last caller moved). ## 2026-11-19 - One thread address module (#14318) New core package `packages/thread-address-core` (dependency-free; vendored by the desktop app) holds `parseAddress`, `resolveDevice`, `normalizeName`, `deviceListing`, row identity (`rowKey`, `rowAddress`, `rowName`, `mergeRows`, `listingKey`, `sameSession`) and the refusals as data. `components/thread/address/` holds `readAccount` (one status, roster and listing read) and `resolveAddress`; `control/locate.ts` loads it lazily from the thread client sidecar. `remote/seams.ts`, `remote/device-address.ts`, `remote/unknown-device.ts`, `remote/plan-create.ts`, `extension/senpi-seams.ts` and `addressing.ts` use the core instead of their own copies. ## 2026-11-19 - this device's listing reports an engine that did not answer (#14309) `tools/read-ops.ts` `listThreads` counts the endpoints that failed without being known dead (a socket that is gone or refuses is `dead`) and reports `listing: "incomplete"` with `unanswered_endpoints`. `remote/cross-device.ts` `deviceRows` reads it for this device's row. `address-book.ts` `assembleAddressBook` no longer lets the workspace disk scan's copy of a session file (no endpoint) replace the record of the endpoint that claimed it, so a timed-out engine's threads keep `live_unresponsive`. ## 2026-11-19 - thread_list partial devices and dropped counts (#14304) `remote/port/device-service.ts` `listing()` adds every device whose round state is not `answered` to `incomplete`. `disk-list.ts` returns the durable ids of the session files it did not read (`unread`). `tools/read-ops.ts` `listThreads` counts the inactive threads among them that no endpoint lists (`inactive_dropped`, only when the filter shows inactive threads). `remote/cross-device.ts` `deviceRows` puts that count on this device's row as `dropped`. ## 2026-11-19 - thread_read error text and the retry wait on thread_list rows (#14283) `tools/read-item.ts` is now the one message-to-item builder for both the live path and the session-file path of `read-ops.ts`. It appends `{type: "error", text}` (capped at 500 characters) when `stopReason` is `error`. `tools/thread-state.ts` `retryWait` turns senpi#7025's `waiting` on a running session's list_sessions row into `waiting_on`. It ignores a thread that is not running, a closed or archived one, and any wait whose shape this build does not know. `internals.ts` `summary()` and `thread-row.ts` carry the field. ## 2026-11-17 - Connector next actions on the inbound path (#13994) - `src/components/thread/gateway/relay.ts` `inbound`: the `binding_inactive` and `unsupported` refusals carry a connector next action instead of the session-facing defaults, as the default table's comment already says a connector-only refusal does. Codes, messages and details are unchanged. ## 2026-11-19 - a refused steer conflict is the same race as reply data (#14326) `remote/relay-transport.ts` `send` reads a steer conflict in both forms the receiver can answer: reply data (`data.kind: "turn_conflict"`) and a refused command (`reason: "turn_conflict"` or `"not_steerable"`). `auto` on the steer lane re-sends once on the follow-up lane for either form under the same delivery id; a second refusal is answered with its own code. An explicit steer maps the refusal through `REFUSAL_CODES`. `remote/outcome.ts` `outcomeFailure` maps both reasons to their own codes instead of the `unsupported` fallback (#14320). ## 2026-11-19 - the held admission kind (#14287) senpi 2026.11.19-2 (senpi#7014) answers `admit_external_message` and `wake` with `kind: "held"` and `holds[]` when an idle session sits under a hold a peer cannot release. `gateway/adapter.ts` `ExternalAdmissionKind` and `gateway-replies.ts` `EXTERNAL_ADMISSION_KINDS` gain `held`. `remote/relay-transport.ts` maps it, on the live admit path and on the wake path, to `queued` with `waiting_on: { kind: "hold", device }` instead of `idempotency_uncertain`; `gateway/result.ts` maps a same-device row whose `admission_kind` is `held` the same way. No new `ThreadDelivery` kind. ## 2026-11-19 - host_unavailable names the devices that answered (#14279) `tools/internals.ts` `lookupAcross`: when some devices answer "not held" and others stay silent, the `host_unavailable` failure lists the answering devices (this device first) in its message and as `details.answered`, beside `details.devices` (the silent ones), and its next action says a file on an answering device is not where that device looks (#14270). ## 2026-11-19 - thread client inlines TypeBox (#14265) `plugin/scripts/build-extension-core.mjs` builds `extensions/omo-thread-client.js` with the TypeBox loader aliases (`typebox`, `typebox/*`, `@sinclair/typebox`, `@sinclair/typebox/*`) removed from its externals, so the sidecar has no bare package import. The omo CLI (`omo-native/bin/lib/thread.js`, also behind `omo daemon`) imports it with a plain dynamic `import()` outside any engine, where senpi's loader aliases do not exist (#14204). Every other bundle keeps the aliases. In an engine the sidecar now uses its own TypeBox copy; TypeBox 1.x marks schemas with `~kind` string keys, so its schemas and the engine's are interchangeable. `build-extension.test.mjs` loads the built sidecar under Node from a plugin layout with no `node_modules`. ## 2026-11-19 - older entry cursors are stale; CLI hint names older messages (#14264) `paged-reader.ts` `isEntryCursor` recognizes the retired `t2` entry-cursor version, so `selectEntryPage` answers it `cursor_stale`; `omo-native` `thread-output.js` prints `(truncated; older messages: --cursor )`. ## 2026-11-19 - reply-route device read bounded by the call budget (#14263) `tools.ts` `thisDeviceOf` reads `accountDevices` through `withinCallBudget`; a read the budget cut is the existing `host_unavailable` refusal with `reason: "request_timeout"`. ## 2026-11-19 - a parked live-listed thread is re-asked and woken (#14262) `remote/relay-transport.ts`: a `route_unlisted` refusal of the first session command to a live-listed row re-runs the send once with the row addressed as parked: `find_session`, then the existing wake path for a session on disk (no `state === "ended"` requirement), `not_found` when absent, `not_resumable` when the device holds it on disk and this device cannot wake it; when `find_session` itself is refused, unsupported or unanswered, the send answers the first `route_unlisted` refusal as before (#14237's mapping). The retry keeps the first attempt's delivery ids. ## 2026-11-19 - refuse a blank thread_create prompt (#14261) `control/create.ts` refuses a `prompt` that is blank after trimming (`details.field: "prompt"`) before placement, alone or with a name; the schema's `minLength` counted spaces, so it passed #14063's empty-create refusal. ## 2026-11-17 - omo.modelRouting.resolve (#14025) `components/task/model-routing-rpc.ts` registers `omo.modelRouting.resolve` (no request data). It loads the session cwd's config with the task engine's own loader and answers `{ schemaVersion: 1, rows }` from `model-routing-rows.ts`: one row per builtin and configured category, then per task agent, each from `resolveCategory` / `resolveAgent` against the planner's own inputs: the register-time project cwd its live config reads, the agent table the engine composed (so a mid-session `agents` edit shows exactly what a spawn still picks), and the parent fast-tier step (`-fast` sibling unless `exclude_models` keeps it out). Retired agent aliases fold into their canonical row. The round-robin distributor is not consulted, so a read never advances a rotation, with `effective` (`provider/model` or null), `source` (`override` / `provider-fallback` / `unresolved`) and the thinking level as `variant`. A missing cwd, an unreadable config layer and a session without a model registry answer typed errors (`cwd_unavailable`, `config_invalid`, `registry_unavailable`). The consumer is the desktop app's model-routing settings. ## 2026-11-18 - Thread train 2 top: thread tool fixes and the senpi 2026.11.18-2 pin (#14225) - **Reopen a closed thread on another device from its file (#14179)** - **Never open a listing row's path (#14170)** - `src/components/thread/remote/ports.ts`: `RemoteSessionRow.path` is the session's working folder as relayd lists it (`cwd`, else `"unknown"`), never its file; the new `session_file` carries a file the device itself named. - `src/components/thread/remote/find-session.ts` `sessionFileOf`: a remote reopen opens `session_file`, else asks the device `find_session { durableSessionId }` (senpi#6429) and opens the file it names. `method_unclassified` or an unknown command is `unsupported`, `unknown` is `not_found` and `ambiguous` is `ambiguous_target`, each with `device` and `thread`; nothing is opened. - `src/components/thread/remote/plan-create.ts`: every remote reopen of a thread that is not live checks the device online and takes that file. `tools.ts` drops the old `ended`-and-no-path guard. - **The listing lags a close and a reopen** - `src/components/thread/remote/closed-rows.ts` `withClosedRows`: one ledger per sessions port. A thread these tools closed lists `ended` with the file its `unload_session` reply named (`control/relay-control.ts`) until the listing shows newer activity; a thread they reopened lists under the key its device located it by. `remote/ports.ts` gains the optional `closed` / `reopened` members. - **A reopen is ok only when the session can be reached** - `src/components/thread/control/relay-session-host.ts`: a reopen asks for and locates the reopened session's key, as a create does, instead of keeping the cached row's key; a key that does not resolve is `not_resumable`. - **A send to a thread that is not running fails fast (#14184)** - `src/components/thread/remote/relay-transport.ts` `addressOf`: a row that is not live (ended, or a cached snapshot) has its device asked `find_session` (`remote/find-session.ts` `holderView`) before any path is chosen, the wake path included: no file is `not_found`; running is located (`remote.sessions.locate`) and sent to under its current key (a held session that cannot be located is `not_resumable`); on disk takes the wake path when there is one (a port without `canWake` has none), else `not_resumable`. A device that cannot answer (an engine without `find_session`, or no reply) counts as holding it on disk: an `ended` row takes the wake path when there is one, anything else is `not_resumable`. ## 2026-11-18 - Thread-sweep release train top: thread tool fixes (#14196) - **RPC input is typed input to the thread tools, never a received delivery (#12318)** `thread/component.ts` `deliveryOf` recognises RPC input by the sender senpi stamps on it (`{ kind: "external", platform: "rpc" }`, `session-control-input-commands.js`); senpi admits RPC `prompt`/`steer`/`follow_up` input as a `session_control_delivery` message under the client's `clientMessageId`. `noteInput` treats that input as typed input (`local`) and never takes it as the run's causal `cause`, a `consumed` origin or a reply sender. dev already starts a new root for a cause no row holds (`store-ops.ts` `placeCausally`), so a bare `tui-rpc-*` id was not refused; what this adds is that a client-chosen id equal to a real delivery is never claimed, and an RPC steer in a gateway-started run does not replace its cause. A sender stamped this way on a relayed delivery only loses the delivery's privileges, never gains any. Tests: `report-origin.test.ts` "input sent over the session's RPC socket (#12317)" (the A-chain steer and the reused-id cases are RED on dev); its delivery message now carries the admission's sender as senpi's does. - **thread_create keeps a thread's own alias when reopening it (#14175)** `components/thread/remote/plan-create.ts` `planCreate` treats an alias whose holder is the thread being opened (`thread` is the alias, the holder's id, or any address the create's resolver locates to the holder, such as its relay key) as not taken, and locates that thread once for both the check and the open; `withAlias` then confirms the holder's existing claim. Any other holder is still `alias_taken` before anything is opened. Items 1-4 of #12641 are not part of this change. - **An uncertain probe is host_unavailable and leaves no receipt (#12947)** `thread/remote/relay-transport.ts`: the read-only `get_state` probe before a steer maps an `uncertain` outcome to `host_unavailable` (`probeFailure`); other probe refusals keep `outcomeFailure`. `once()` hands `send` a `sending` callback that runs right before the `admit_external_message` record is sent; a call that returns or throws before it drops its `prepared` receipt through the new store op `toolReceiptRelease` (`gateway/store-relay-ops.ts`: deletes only this instance's `prepared` row), so the next call under the same key runs again. A receipt that cannot be dropped is settled as before. Tests: `thread-remote-send.test.ts` (probe uncertain -> `host_unavailable`, no admit record, the retry probes again and steers) and `gateway/tool-receipts.test.ts` (release drops only the owner's `prepared` receipt). - **A malformed delivery starts a new group only after an answer; the same-account bound is documented at the rule (#13134)** `component.ts` `deliveryOf` answers `"malformed"` for a `session_control_delivery` without a string `delivery_id`; `noteInput` clears the group for it only after a final answer (no sender added) and leaves running work unchanged. The `noteInput` doc comment and the `AGENTS.md` `component.ts` row carry the same-account sentence from the #13044 release note. Test: `peer-reply.test.ts` "#13056 a malformed delivery starts work with nobody approved" (RED on the previous code). - **An untyped rename failure after thread_create still names the created thread (#13185)** `tools.ts` `nameCreatedThread` no longer rethrows a `setName` error that is not a control refusal: it answers `host_unavailable` (the code it already used when a located control fails with no typed code), so `thread_create` keeps `withAlias`'s rule that every failure after the create names the thread (`remote/cross-device.ts`). `contracts/results.ts` `ThreadLocalAliasNote` and the thread `AGENTS.md` document the code. `thread-local-alias-claim.test.ts` adds that case (RED before the fix) and covers a thread created on another device: with b's listing carrying the new row, exactly one `set_session_name` reaches b's relay key; with the listing behind the create, the result carries `local_name_unavailable: "not_found"` and nothing is renamed. It also folds #13283 and #13284: `nameCreatedThread` returns `{ code, reason? }`, and an untyped `setName` error keeps its message (its string form when the thrown value is not an Error) as `reason`, capped at `RENAME_REASON_MAX_CHARS` (300 code points, cut on code points so a multi-byte character is never split) with an ellipsis, because the `thread RPC request failed: ` error from `live-surface.ts` can embed a whole host reply frame and the result is also kept in the call's idempotency receipt. `thread_create` puts it on the result as `local_name_unavailable_reason`; `contracts/results.ts` documents the field and the cap. The tests throw the message the real rpc-host socket client produces, cover a thrown non-Error value, and pin the cap with a 5000-character frame and an astral character at the cut. - **fuzzyContenders floor, ended-row band and ambiguous candidate list pinned (#13190)** `addressing.ts` `fuzzyContenders` docstring: the 0.64 contender floor leaves every accepted match and runner-up `ambiguous_target` verdict unchanged, but the candidates `fuzzyMatch` lists with that verdict (up to `AMBIGUOUS_CANDIDATE_LIMIT`) no longer include a dropped ended row. Tests: `addressing.test.ts` "fuzzyContenders contender floor" (0.64 kept, 0.6383 dropped, input order on every call); `remote/route-parity.test.ts` (an ended row at 0.6522 against a live row at 0.7317 is `ambiguous_target` with no relay calls, an ended row at 0.6383 does not block the live row, and the candidate list leaves the sub-floor row out). This PR carries no generated bundle: the bundles are dev's copies, and the train top that lands it regenerates them. - **Thread endpoint enumeration has a deadline (#13231)** `live-surface.ts`: an enumeration still in flight past `HOST_ENDPOINTS_ENUMERATION_DEADLINE_MS` (30 s, the CLI's own kill bound) is abandoned; the next caller starts a fresh one and the late answer never becomes the cached view. Tests pin the bound and that a send to a published owner (`listTarget`) never waits on a running enumeration (#13009, part of #12989). - **One shared endpoint enumeration per agent dir (#13236)** `live-surface.ts`: enumerations live in a process-wide map keyed by the resolved agent dir, the legacy socket and the engine launch, and are no longer kept in each surface. The 5 s window is unchanged; the #13231 deadline is now timed on a monotonic clock (`monotonic`, default `performance.now`), so a wall-clock jump never abandons an enumeration that is about to answer. A caller still waiting on an abandoned enumeration gets its list, but its late answer never replaces a kind the newer enumeration recorded. The key is read from `env` on every call. A surface given its own `statusAll` or `registry` keeps a private map; `enumerations` lets a test share one explicitly. A unit test pins the enumerations one send starts: 1 inside a window and 2 when every step outlives it, for a first send and for a reply. - **Thread recovery hints name the eval cell (#13240)** Thread tools are eval-only since #12903, and #14070 made the thread tool descriptions name both the direct and the eval form. The recovery hints across `thread/` (`reader.ts`, `addressing.ts`, `tools.ts`, `remote/*`, `control/*`, `gateway/*`, `tools/*`, `worktree/failures.ts`) still named bare tools ("Call thread_list ..."); each now adds the eval form after the name, with arguments only where the hint gives them (`tool.thread_list({ all_scope: true })`, `tool.thread_send({ thread, message })`). `thread/eval-cell-hints.test.ts` reads the string literals of every thread source file and fails on a thread tool named without its eval form in the same sentence, on an eval form of a tool that does not exist, and on a call argument the tool's schema does not have; the parameter schemas under `contracts/` are left as they are, because the `omo thread` CLI shares them. QA scratch sandboxes chmod their agent dir to 0700 for senpi's key-dir check under umask 002; the layout lives in `scratch-layout.mjs`, so its test loads without the engine version `gateway.mjs` requires. Tracked by #13239. - **a remote create crosses the relay twice, not four times (#13889)** `components/remote/port/device-service.ts` (the thread tools' device-service port): - `endpointCommand` keeps each device's engine endpoint key from the last endpoint command and sends the next one there (`device-service-core` `endpointCommand` takes `options.endpoint` and names the key it used). Only the refusal of a kept key the device no longer lists (this device's service answers `unsupported` with no command id, or the device answers `route_unlisted`) forgets it and sends the record once more on a fresh `session.endpoints` lookup. An open the engine ran and failed, or an uncertain one, is never sent again. - `locate` answers a key the open reply already named (`located`) as is, with no attach. - `sessionCommand(..., { direct: true })` sends the record to the session through `device-service-core` `sessionCommand` (`session.command {session: "."}`), with no attach. A refusal before sending (a device service older than #393 part B answers that target `unsupported`) ran nothing, so the record then goes over an attach as before and the name is still applied. `control/relay-session-host.ts` names a created session that way. Tests: `remote/device-service.test.ts` ("relay round trips per thread op"), `remote/sessions.test.ts` (an open with a name over the conformance owner, which takes attach and endpoint commands only). - **thread_read budget ends at the newest message (#14176)** - `src/components/thread/read-budget.ts`: `takeWithinBudget` takes `from: "end"`, which fills the budget from the newest entry backward and returns the entries oldest first. - `src/components/thread/reader.ts`: tail mode fills from the end of its window and issues `t1o` cursors that page the window's older entries; page mode with a `t1` cursor still pages forward. - `src/components/thread/paged-reader.ts`: `selectEntryPage` applies the same rule to the remote paged read; its `t3` cursors name the oldest returned message and the window's first. ## 2026-11-17 - Memory sync: disable verb and offline-applied count (#14093) - **Turn sync off on this device (#14093)** - `memory-core` `src/sync/account/pairing-http.ts`: `PairingHttp.disableDeviceSync` asks the service for its typed confirmation (`POST /v1/confirm`, action `sync.disable_device`) and spends the token on `PUT /v1/devices/:id/sync`; a 4xx is `{ ok: false, code }`, anything else throws. - `memory-core` `src/sync/account/device-switch.ts`: `disableSync` (service first, then a mark under the pin directory), `turnDeviceSyncOn` (used by `enableSync`, removes the mark) and `isDeviceSyncOff`. `openAccountSession` answers the idle reason `sync_off` before it reads the pin or the network. The trust pin and local memory are not touched. - `src/components/memory/sync-rpc-contract.ts`, `sync-rpc-coordinator.ts`, `sync-rpc-registration.ts`: the `omo.memory.sync.disable` verb (`{ kind: "off" }` or a `SyncRpcProblem`; the service's refusal code goes to the log only) and the `"disable"` feature. - `src/components/memory/sync-runner.ts`: `idleTurnedOff()` closes the engines of a device that was turned off, reports each as a status change (the footer and the desktop snapshot drop its last status) and keeps their repos held but idle; an engine whose device was turned off by another process goes idle at its next status change, before the change is reported. `resumeIdle()` starts a fresh engine for every held repo that runs none; the sync RPC calls it (`resumeSync`) when `enable` ends `joined` or `first_device_created`, so Turn off then Turn on in one engine process resumes sync without a rebind. `device-session/resolver.ts` gives each session its `turnedOff` reader. `sync-status-surface.ts`: a repo that has no status any more is not announced as recovered. - `src/components/memory/desktop-sync/desktopSyncAccountPorts.ts`: the desktop channel sends one `disableDeviceSync` service op; the confirmation token stays in desktop main. A main that does not know the op fails the request and the verb answers `unavailable`. - **Offline-applied count (#14093)** - `memory-core` `src/sync/engine/engine.ts`: the engine tracks an offline gap (it starts over a journal that has synced before, or its status shows `offline`) and writes the memories the catch-up updated to the journal's `updatedWhileOffline` when a refusal-free cycle closes the gap; entries received with no gap clear it, a cycle that receives nothing keeps it. `EngineStatus.synced.updatedWhileOffline` is optional. - `src/components/memory/memory-rpc-sync.ts`: `MemoryRpcSync.appliedWhileOffline`. ## 2026-11-18 - Same-device cross-project messaging leaves the relay leg alone (#14199) - **A same-device thread in another workspace is never answered as cross-device** - `src/components/thread/addressing.ts` `resolveTarget`: with no visible name match and same-device (`transport === undefined`) out-of-workspace entries carrying the name, the scoped answer is `scope_denied` (candidates when more than one) naming `all_scope`, after the `id_prefix` step - the name-ladder mirror of the id ladder's existing branch. A name a thread on this device holds must not read as absent, or `resolveAcross`'s relay leg answers for it: on a plan without a relay, with `relay_requires_paid_plan` for a thread one `all_scope` retry away (a Discord report: OmO Desktop, two project folders, one Mac). - No change to the default workspace scope of `thread_list` (#8025 stands), none to the paid-plan refusal for addresses this device cannot hold (A5), none to delivery: the `all_scope` retry resolves the same entry and the local transport carries it, no relay round trip. - Tests: `addressing.test.ts` (the scope answer, its candidates, the id-prefix precedence, the plain `not_found`), the new `thread-free-plan-cross-workspace.test.ts` (the free-plan fixture: scoped name send answers the scope hint, all_scope delivers locally with nothing sent to any other device, the all_scope listing keeps its `remote_unavailable` notice, a configured-but-failing relay still answers `host_unavailable`), and the live driver `scripts/qa/thread-tools/free-plan-cross-workspace.mjs` (one real rpc host, two project cwds, the eval-only cells). ## 2026-11-18 - Release train 2 top: thread tool fixes (#14141) - **No hint for the removed chat-binding tools (#14042)** - `src/components/thread/tools/relay-tools.ts`, `tools.ts`: `REMOVED_RELAY_TOOL_HINTS` and its registration are removed. The relay SDK, the gateway store and the `omo thread` CLI are unchanged. - **Replies reach a remote sender whose delivery names no device (#14052)** - `src/components/thread/tools.ts` `locate`: a reply to a consumed sender without an attested device first resolves on this device as before. When that resolution is `not_found`, the reply runs `resolveAcross` instead. A row on another device is accepted only when its durable id is the sender's id, and is refused `reply_target_mismatch` otherwise. When this device's entries and the account listing together put that id on more than one device, the reply is refused `ambiguous_target` naming them, whatever order the listing returns (`unattestedSenderAmbiguity`). `tools/reply-target.ts` `replyTargetFailure` is the refusal `replyTargetMismatch` returns. Senders with an attested device (`device:/`) are unchanged. - **Thread_create's first prompt carries the creator's authority (#14058)** - `src/components/thread/gateway/types.ts`: `DeliveryEnvelope.authority` (`"creator"`), stored in the envelope JSON. - `src/components/thread/tools.ts`: only thread_create's first prompt to the thread it made sets it. - `src/components/thread/gateway/{transport,local-transport,engine,store-ops}.ts`, `remote/relay-transport.ts`: both transports carry it. - `src/components/thread/gateway/provenance.ts`: a creator delivery renders as the body, then one line naming the creator session; its display text is the body. - **Close the thread remote surface on session_shutdown (#14062)** - A thread tool call that reaches the device service (`thread_list` with `all_scope`, any cross-device read or send) opened the default remote surface's own device-service connection, and nothing closed it. Its socket is referenced, so a print-mode engine stayed alive after its last session ended (#14054). `createThreadComponent` now closes the surface it built on `session_shutdown`, next to the gateway store it already disposes there. A later call reconnects lazily. A component test spawns an engine-shaped process against the conformance fake device-service owner and asserts it exits by itself after `thread_list` and `session_shutdown`. - **Read and controls find a session another device holds but runs nowhere (#14087)** - `src/components/thread/control/locate.ts` `locateControl`: resolves with the account-wide session-id lookup (`resolveAcross(..., "exact", true)`, #13037 A4.3.3) that a send, a reply and a hand-off make. A session id that this device and the account listing both miss is probed once on each online device. The holder's `ended` row takes the existing `not_live` branch, so `thread_read`, `thread_interrupt`, `thread_rename`, `thread_set_model` and `thread_set_reasoning` answer `not_resumable`, and `thread_close` answers `{ closed: false, reason: "not_live" }`, on both legs (part of #13215). The tools never make the probe for a name or alias, or when this device's service lacks the capability. ## 2026-11-17 - thread_create survives a lost open reply (#14066) - `src/components/thread/control/session-host.ts`: `createdThreadId` derives the id a create on this device opens its thread under, from the caller and the idempotency key. - `src/components/thread/tools.ts`: thread_create opens with `durableSessionId`, reuses or reopens a thread already under that id, looks again after a failed open, and re-runs a create whose earlier run under the key failed only when the thread the key derives is on this device; a named retry is not refused by its own thread's name. ## 2026-11-17 - Release train top: thread tools, remote command deadline, paged and local thread_read (#14077) - **Thread tools: one field names a session (#14056)** - `src/components/thread/contracts/results.ts`: `ThreadResultSummary` is the model-facing row (`thread`, no endpoint internals); every result type carries `thread`. `ThreadSummary` stays the address-book shape with `thread_id`. - `src/components/thread/tools/thread-row.ts`: `threadRow` projects an address-book summary to that row; `openedResult` is `thread_create`'s flat answer. `thread_list`, `thread_create`, `thread_handoff` and the cross-device merge (`remote/cross-device.ts`, which adds `machine`) go through it. - `src/components/thread/control/port.ts`: `controlIdentity` answers `thread`. `sdk.ts`: `send` answers `thread` (`ThreadSdkSendResult`). - `src/components/thread/addressing.ts`: `ThreadCandidate` names the session `thread`; `remote/remote-ops.ts` `holderDetails` names an alias holder `{ thread, device }`; `gateway/engine.ts` `turn_conflict` details say `thread`. `contracts/results.ts`: `ThreadGatewayDeliveryFacts` has no `endpoint`. - `src/components/thread/thread-field.test.ts`: scans every verb's schema, and every value in the model-facing text of real calls, successes and refusals: a session id under any key but `thread`, or an endpoint internal anywhere, fails. - **A remote command always settles (#14041)** - `device-service-core` `src/remote-attach.ts`: `RemoteAttach.command` takes `waitMs` (default 120 s) and rejects `request_timeout` with its `command_id` when no final state arrives; it waited forever before. `src/device-service.ts` keeps `waitMs` when it drops the wake mark below the minimum. - `src/components/remote/port/device-service.ts`: `get_state` and `get_messages` pass a 30 s `waitMs`. - **Paged thread_read for threads on other devices (#14053)** - `src/components/thread/remote/transcript-tail.ts`: `readContextTail` reads the newest entries with `get_entries` (`tail`, then `before`, up to 256 entries / 512 KiB per page), keeps them per (port, device, session) under a byte bound (16 MiB per port, nothing above 4 MiB per session), and refreshes them with `since`. A device without `get_entries` reads `get_messages`; a page refused for its fields or size falls back for that read only. - `src/components/thread/remote/context-tail.ts`: projects the fetched entries along the holder's leaf with senpi's `buildSessionProjection` and decides when they determine the context's tail (root reached, 60 messages after the latest fetched compaction, or that compaction's first kept entry fetched). - `src/components/thread/remote/default-remote.ts`, `remote/ports.ts`, `remote/port/lazy-remote.ts`: the extension's remote surface carries the engine's projector (`loadProjector`); the CLI surface has none. - `src/components/thread/paged-reader.ts`: `selectEntryPage` applies the live reader's window and byte budget; entry cursors bind the leaf. - `src/components/thread/tools/read-ops.ts`: `readLive` tries the control's `readEntryPage` before `getMessages`. - `src/components/thread/read-budget.ts`: the shared byte-budget rule, moved out of `reader.ts`. - `src/components/remote/port/device-service.ts`: `get_entries` is a read-only record (failures are typed refusals). - **thread_read wait_ms on this device (#14061)** - `src/components/thread/control/wait-settled.ts`: `waitForTurnEnd`, the #13417 wait (turn end observed, deadline and abort, 3 s quiet rule), moved out of `relay-control.ts` so both legs run one body over their own watch. - `src/components/thread/live-surface.ts`: `watchSession` follows one session on the endpoint's observing `subscribe_sessions` stream (snapshot row, `session_status` deltas, mirrored `agent_start`/`turn_start`/`agent_settled`; never an attachment). While the session runs, one observing `get_state` reads `currentTurnId`, and the records held meanwhile carry it. - `src/components/thread/control/local-control.ts`: `waitSettled` over `watchSession`; `read-ops.ts` drops the `unsupported` branch; `SessionControl.waitSettled` is required. - `senpi-task` `withRpcSocket` takes `listen` (uncorrelated frames and the connection's end); the contract host answers `subscribe_sessions`. ## 2026-11-17 - thread_create reopens an exited thread; an empty create is refused (#14063) - `src/components/thread/tools.ts`: thread_create's `locate` resolves over the send address book (session files an id or name names) and runs the A4.3.3 account probe. A create with no prompt, name or alias is refused before placement. - `src/components/thread/addressing.ts`: `notFound` answers a durable-id miss without the sessionId hint. ## 2026-11-17 - dev fmt, knip, bundle-inputs and EQ.omo golden reds from #14023 and #14024 (#14026) `dev` at e060760dd2 had four reds. Three come from 10b8d36a54 (#14023) alone: `scripts/qa/bunshin-ts-eval-sdk-qa.mjs` was not formatted (`bun fmt --check`), `BUNSHIN_NODE_AGENT_ENTRY` in `src/extension/sdk-root-provisioning.ts` was an unused export (`knip:check`), and `bundle-inputs.json` lacked the two `src/components/js-kernel-guard` sources (`bundle-inputs:check`). The fourth, the stale linux-x64 EQ.omo goldens (`--compare` 0/4), comes from both #14023 (bunshin hint, `js_kernel_guard`) and #14024 (`thread_*` addressing text). The script is formatted, the constant is module-local, and `bundle-inputs.json` plus `plugin/extensions/omo.js` are regenerated on Linux (bun 1.4.4, node 24); `omo.js` is 1,499,760 B against the 1,501,843 B ceiling. The linux-x64 EQ.omo goldens (`scripts/qa/fused-equivalence-golden/linux-x64/E21-E24.json`, `baseline.json`) are re-recorded at `dev` e060760dd2 with CI's recipe (`fused-equivalence-e2e.mjs --record --repeat 2`, senpi harness 5ab795e339): with those texts recorded, `--compare` goes from 0/4 to 4/4. The darwin-arm64 goldens are not compared in CI and were already recorded at an older `dev`; they are left as they are. ## 2026-11-17 - Thread rename and close accept this session and session ids (#14024) - `src/components/thread/addressing.ts`: after the durable `thread_id`, an exact `session_ids` hit resolves as an id. Two hits are `ambiguous_target` and list the durable ids. A session-shaped miss says the query is a `sessionId` and names visible durable ids. - `src/components/thread/address-book.ts` and `remote/address-book.ts`: a routing or listing id that differs from the durable id is kept on the address entry. - `src/components/thread/tools.ts`: `thread_rename` and `thread_close` treat a missing `thread` as `self`. - `src/components/thread/control/operations.ts`: a close that ran answers `reason: "closed"` or `reason: "not_live"` next to `closed`. ## 2026-11-17 - JS cells survive process.exit and the bunshin-ts SDK path is quoted (#14023) - `src/components/js-kernel-guard/`: an eval-only prelude replaces `process.exit` for cell code. The kernel's own exit binding, captured at process start, is unchanged. A cell that exits throws `ProcessExitInCell` and the next cell still sees globals set before the call. - `src/extension/sdk-root-provisioning.ts`: the bunshin hint tells the model that bash inherits `OMO_BUNSHIN_TS_SDK_ROOT`, that the expansion must be `"$OMO_BUNSHIN_TS_SDK_ROOT"`, and that `scripts/node/bunshin-node.mjs` is the node-agent executable. ## 2026-11-17 - Session-facing relay next actions name session tools, not the shell (#13972) - `src/components/thread/gateway/relay.ts`: the `scope_denied`, `not_found`, `idempotency_uncertain` and fallback next actions now point at `thread_report` without `binding_id` (the gateway's binding) or `thread_outbox`. The relay does not know its caller there, and a session reaches all of them. `binding_conflict` and `stale_revision`, which only the gateway's or the CLI's bind/rebind/unbind return, keep the CLI wording. - `tools/relay-tools.ts`: the relay tools' `internal_error` next action likewise. - `gateway/relay.ts`: refusals whose cause or caller the code alone does not tell carry their own next action through `fromStore` overrides. A `thread_answer` whose question has left the outbox says to read `thread_outbox` for a newer question. A `not_found` from unbind or rebind, which only the gateway or the CLI calls, keeps `omo thread bindings`. A connector's `inbound` through an unknown binding is told to deliver through the binding the gateway keeps for the chat now. ## 2026-11-17 - The chat-binding tools leave the session tool list (#13942) - `src/components/thread/metadata.ts`, `contracts/params.ts`, `contracts/fields.ts`, `contracts/results.ts`, `tools/relay-tools.ts`: `thread_bind`, `thread_unbind`, `thread_rebind` and `thread_bindings` are removed, together with their schemas, result types and the session-address resolver only they used. The relay SDK (`gateway/relay.ts` `bind`/`unbind`/`rebind`/`bindings`), the store and the CLI are unchanged. - `gateway/relay.ts`: the `next_action` texts that named those tools now point at the binding the gateway keeps and at `omo thread bindings|bind`. The store receipt operation names are unchanged. - Why: the gateway owns chat routing (it writes bindings through the relay SDK as its own principal), and no session, skill or script called the tools. - `src/components/thread/tools/relay-tools.ts`: `REMOVED_RELAY_TOOL_HINTS`, registered by `registerThreadTools` (`tools.ts`) through `pi.registerRemovedToolHint` when the engine has it (`ExtensionToolHost`), the way `ulw-loop` and `task` hint their removed tools. - `gateway/relay.ts`: the `binding_inactive` next action, which a session gets back from `thread_report`, no longer tells it to bind the chat itself. - `knip.workspace.jsonc` and `script/knip-coverage-baseline.jsonc`: the `contracts/params.ts` entry no longer names the four removed param schemas. ## 2026-11-16 - thread_create's first prompt failure keeps the created thread (#13825) Review L1 of #13748 at 0571de8: `tools.ts` `firstPrompt` caught only typed refusals; a delivery that threw (gateway store or settle error, `gateway/engine.ts`) reached `execute`'s catch, so a create that had opened a thread answered `internal_error` with no thread id and its receipt settled as an error (a same-key retry answered `idempotency_uncertain`, a new-key retry opened a second thread). It now catches the throw and answers it as the result's `prompt.error` (`internal_error`, `details.thread_id`). Test: `control/thread-create-options.test.ts` "the prompt's delivery throws" (fixture `admitThrows`). ## 2026-11-16 - The bunshin SDK hint needs a device sense and carries the only-discussed guard (#13467, fixes #13446) `components/skill-pointers/index.ts`: the bunshin target's keyword `fleet` is replaced by two forms. The owner form is `(?:my|our)\s+fleets?`, and it counts only when followed by the end of the text, punctuation or a function word, so a modifier or a vehicle fleet ("our fleet management UI", "our fleet of delivery trucks") does not fire. The machine-noun form is `fleet[\s-]+(?:machines?|devices?|hosts?|nodes?|box(?:es)?)`; it allows a hyphenated host-name suffix such as `fleet-node-3`, and `hosts` before an article is read as the verb. `bunshin` and `machine mesh` are unchanged. The pointer text now opens with a conditional ("If the user of this session is asking to run work on their machines") and ends with the shared `ignoreWhenOnlyDiscussed` sentence. `skillPointer` and the conditional `companionPointer` now build from that sentence too, byte-identical to before; these pointer-text builders live in `skill-pointers/pointer-text.ts`. `Fleet status please`, and other fleet wording with no device sense, no longer inject the hint. `packages/omo-senpi/AGENTS.md` names these triggers and says a bare `fleet` does not fire. This folds in review follow-ups #13780 and #13863. ## 2026-11-16 - /remote renders enable, disable and control (#13796) `components/remote/tui/command.ts`: `sessionVerbLines` renders `{enabled}` (enable, disable) and the control state `{attached}` as sentences; anything else still falls back to its JSON. `show` adds the CLI's stderr as a warning after a successful result; `succeeded` shows a failed answer's `notice` (enable exits 3 with `{state, notice}` on stdout, omo-native `remote-bootstrap.ts`) before stderr and the exit code. Tests assert note type, count and the deadline handed to the runner instead of pinning notice wording. ## 2026-11-14 - `thread_interrupt` stops the interrupted turn's background jobs - `src/components/thread/control/interrupt.ts` (new): `interruptOver`, the one interrupt body of both legs. It sends the engine's `interrupt` record with `background: "stop"` and reads the reply into `{ interrupted, turn_id, background }`; a reply with no `background` (an engine before senpi's `interrupt { background }`) reads as `not_supported`. - `src/components/thread/control/local-control.ts` and `control/relay-control.ts`: `interrupt` is `interruptOver` over this device's endpoint (`port.interrupt`) and over the device service (`sessionCommand`) respectively; neither builds its own record or parses its own reply any more. - `src/components/thread/tools/ports.ts`, `live-surface.ts`, `lazy-live-surface.ts`: the endpoint port's `interrupt` takes the request fields and answers the engine's reply data. - `src/components/thread/contracts/results.ts`, `control/operations.ts`, `control/port.ts`: the `thread_interrupt` result carries the typed `background` (`ThreadInterruptBackground`). - Why: measured on a remote thread, the interrupted turn's auto-detached `sleep 60` kept running, its completion woke the thread about 60 s later and the thread replied anyway. ## 2026-11-16 - bunshin-ts SDK: typed fanout-run errors and resultOf naming (#13813, follow-up to #13744) `typedClient` returns the fanout run behind a proxy that types the run's own failure (`fanout on the fleet`) and every per-target error the runner made, such as a `FanoutTimeoutError` (`fanout on `), while an error the callback threw passes as thrown; the machines in its outcomes and result are typed too. `FanoutOptionsError` and `FanoutDuplicateTargetError` map to `invalid_arguments`, `FanoutTimeoutError` to `timeout`. Only device-addressed calls (`getMachine`, `listTools`, `getPolicy`, `setPolicy`) use their first argument as the device; `resultOf` reports the fleet and puts its argument in `details.request_id`. New test: `bunshin-ts-fanout-errors.test.ts` (unknown target awaited and iterated, duplicate target, invalid options, per-target timeout, a callback's own error, `resultOf`); `bunshin-ts-sdk.test.ts` checks that the relay transport's new surface is exposed and typed through the SDK entry. ## 2026-11-11 - Remote open_session rides the endpoint dialer, and borrowed connections stay open (#13761, adopting #13075) `endpointCommand` in `device-service.ts` sends an `open_session` through `dialEndpoint` (a fresh owned connection per call by default) and closes it in `finally` only when owned; every other record rides the long-lived connection; a borrowed connection (the CLI's shared one, `owned: false`) is left open for its owner. The attach that follows still rides the long-lived connection, which then carries one copy per delta. `device-service.test.ts` pins the split: the open leaves a borrowed connection open for the model set that follows. `device-service-watch.test.ts` pins the duplicate: one copy with the per-call dialer, two without it. ## 2026-11-16 - thread_create carries the launch profile and the first prompt (#13748) `contracts/create-params.ts`: `model` (exact provider/id), `reasoning`, `permission_preset`, `prompt`, `delivery`, all for a new thread only (`control/create-launch.ts` refuses them with `thread`, a `delivery` without `prompt`, a model that is not provider/id, and a `permission_preset` wider than the creator's, before anything opens). The model and level ride on the `open_session` frame as senpi's launch profile (`provider`, `modelId`, `thinkingLevel`) on both legs (`SessionOpenRequest`, `ThreadHost.openSession`), so senpi's `model_unavailable` refusal (open-session-model.ts) creates nothing; `control/open-reply.ts` `modelRefusal` maps it to `model_not_found` with `details.reason: "model_unavailable"` on the relay leg and from the local host's thrown text (worktree discarded first). `contracts/permission-presets.ts` holds senpi's preset list and `presetWithin`, the allows-no-more order (full-access > workspace > accept-edits > read-only > ask; auto only between full-access and ask; an unknown creator may ask only for ask). `tools.ts` `firstPrompt` delivers `prompt` through `deliverThrough` to the created thread itself (device + durable id, never a name lookup, #13001) under `:prompt`; a replayed create answers its stored result, so it is sent once per key. The result's `prompt` is the delivery or `{ error }`; the thread stays created. Test: `control/thread-create-options.test.ts`. `remote/device-service.ts` `attachAddressed`: a durable id (a UUID) is located first and never sent to `session.attach` (a device service refuses it `invalid_request` since relay-daemon#1350, and crashed on it before); any other address is attached as typed and located once when the attach refuses it (`session_not_found` or `invalid_request`), so every verb accepts the id `open` printed (omo#13707); the port and `omo remote attach` share it. `remote/address-book.ts` `createdDeviceRow` addresses a just-created remote session by its open reply's relay key. Tests: `remote/device-service.test.ts`. ## 2026-11-16 - bunshin-ts SDK: typed device operation failures (#13744, fixes #13406) `bunshin-ts-errors.ts` holds `BunshinSessionError` (moved from `bunshin-ts-pick-transport.ts`, still exported under the same name) with the thread tools' failure shape plus `uncertain` and `details`, and `deviceOperationError`, which classifies a rejection by its wire code (relay op-result codes 1:1, hub and relay transport codes by recovery class) or by the vendored error class name. `bunshin-ts-typed-machine.ts` wraps the lazy client and every machine it hands out (fanout callbacks, `withToken` / `withTask` / `tool()` results included); `createLazyBunshinClient` classifies a connect failure as `host_unavailable`. New test: `bunshin-ts-device-errors.test.ts` (operation x bad argument / offline / denied / transport lost, every relay code, the fs.read decode error, connect, `no_transport`). ## 2026-11-16 - Remote wake and wait (#13743) `remote/remote-watch.ts` (watch v2, from the closed #12725): `RemoteSessionsPort.watch(device, session, handlers, options)` follows a session across attach ends, device-service restarts and engine restarts (re-attach with 1 s to 30 s backoff, resync from a fresh `get_state`, re-locate by durable id), deduplicates by stream seq and turn id, and bounds its queue at 256 records. `remote/attach-pool.ts` refcounts the one attach per session and detaches it 600 s after its last holder. `remote/monitor-source.ts` serves senpi's `RpcRemoteSource` seam, registered by `remote/lazy-ops.ts` `registerRemoteMonitorTargets`. `control/relay-control.ts` `waitSettled` backs `thread_read` `wait_ms` and settles only on an observed turn end (or 3 s of no run at all); a thread on this device answers `unsupported`. `followRemote` (`omo remote send`) still ends on a gap with its reason. `device-service-core` carries optional per-record `seqs` on `session.records`. ## 2026-11-16 - /remote in the TUI (#13412) `components/remote/tui/` registers `/remote` (component `remote`, after `device-service`). Each action runs one `$OMO_BIN remote --json` process through `run-omo.ts`, the only spawn helper, imported only by `command.ts` (design v8-core r2 B5, guard G4b), and renders the typed answer: a `{kind:"error"}` result shows its message and `next_action`, an exit without JSON shows the CLI's stderr. `send` puts the text after `--`. With no absolute `OMO_BIN` the command says so and spawns nothing. **Must not break:** no device-service client or local-API connection enters the engine bundle from this component. ## 2026-11-13 - A replaced desktop account ends, and a begin that crosses a retirement owns nothing (#13327 review follow-up) - **An account that is no longer current ends.** `desktopSyncAccount.ts` `isCurrent()` ends the account (aborts its signal) when it answers false: main's describe or durable record moved on without a `retired` event. Its `retired` listener leaves the channel, and the resolver's `onEnded` ends sessions on it once; before, it stayed on the channel with a live signal until the next `retired` or the channel's end. - **Session Workers.** `workerPort.ts` counts main's `retired` events; an `operationBegin` whose reply arrives after a retirement it was sent before is refused to the Worker and its handle is never owned, so the host never forwards that dead handle to main. - The rollover test now asserts a refused describe reads signed out (`null`) on both threads exactly; on the main thread that is #13329's refusal mapping, which this follow-up merges. - **Must not break:** an account the account source has replaced must not keep listening on the channel; a handle begun for a retired account must never be owned. ## 2026-11-14 - thread tools: one answer on this device and on another one `control/locate.ts` resolves a control tool's address against the send address book (`sendAddressBook`: the session files an address names are looked up when no endpoint lists it), so the control tools and `thread_send` find the same threads; `tools/read-ops.ts` reads any not-running thread that has a session file here, not only one whose endpoint died. `control/session-host.ts` `openedThread` is the one create summary both session hosts answer. `control/local-session-host.ts` `workspaceNote` adds the out-of-workspace note to a thread this device opened. ## 2026-11-14 - thread_create: device, folder and worktree (#13393, #13408, #13400) `thread_create` on another device returns the durable id (`control/relay-session-host.ts` reads the engine's `state.sessionId`). Placement is split: `remote/plan-create.ts` (device and session) and `remote/create-folder.ts` (relative `cwd`, worktree preconditions). `worktree/` holds the worktree creation (`thread-worktree.ts`, typed reasons in `failures.ts`), the `omo.thread.worktree` extension request another device's thread_create sends (`worktree-rpc.ts`, registered with the initial skills in `create-receivers.ts`), and its client over the relay (`remote-worktree.ts`: a short-lived session in the repository folder, the request, the close ladder). `ThreadCreateParams` moved to `contracts/create-params.ts`. ## 2026-11-13 - A desktop refusal on the main-thread channel reads as signed out (#13325 follow-up) - `desktop-sync/channel.ts` rejects a `{ok: false, reason: "refused"}` reply with `DesktopSyncRefused` (desktopSyncProtocol.ts), the class a session Worker's port already used. It used to reject with `DesktopSyncUnavailable`, so on the main thread `selected-account-source.ts` rethrew a signed-out desktop's refusal instead of reading it as signed out (null), and the sync runner saw an error. - Unchanged: a broken channel (disconnect, malformed or foreign frame, unknown reply id, more than 64 in flight, closed lifetime) still rejects with `DesktopSyncUnavailable`. - **Must not break:** a refusal must not close the channel; the account source maps only `DesktopSyncRefused` to signed out. ## 2026-11-13 - An account rollover on the desktop's private channel no longer ends memory sync (#13325) - **`retired` ends the account, not the channel.** `desktop-sync/channel.ts` hands a `retired` event to its listeners and keeps the channel open; a closed stream (and a malformed or foreign frame) is still the only permanent end. - **The account owns the end.** `openDesktopSyncAccount` gives each account its own signal: the channel's signal plus main's next `retired` event, listened for before the descriptor request so an account whose describe raced its retirement ends too. Its boundary, operations, subscription and `isCurrent` use that signal, so the resolver's `onEnded` ends open sync sessions on the old account exactly once, and the selected account source's next resolve opens main's next account (or reads signed out while main refuses). - **Session Workers.** `workerPort.ts` forwards `retired` to every Worker port (other events stay scoped to the port's own handles) and forgets the port's handles, which died with the account. - **Mixed versions.** A desktop that still closes the stream on retirement leaves the engine as before (unavailable until restart). A desktop that keeps the stream and sends `retired` gets the new account on the next resolve; an engine before this change reads that `retired` as the end of the channel, as before. - **Must not break:** do not close the channel on `retired`; do not let an account outlive the channel. ## 2026-11-12 - A fuzzy handoff resolves exact names first and ranks ended remote rows with every other candidate (#13141, follows #13066) `tools/internals.ts` `resolveAcross`: for `match: "fuzzy"` the exact ladder (`resolveTarget`: id, alias, name) runs first over local entries plus every account row, ended ones included, and its hit is the answer unless it is the caller. Otherwise `fuzzyMatch` ranks one set: local entries, the account's live rows and the ended rows `fuzzyContenders` (`addressing.ts`) keeps, those scoring at least the accept floor minus the margin (0.64), the only ones that can lead or block a leader. The 500-candidate cap applies to that set. Review fix at 54e5b128ab: ended rows were compared only when local plus live answered `not_found`, so a live row at or above 0.72 beat an ended row that matched better or exactly ("release planner" went to the live "release planner notes", while exact reached the ended "release planner"). Tests (`remote/route-parity.test.ts`): "600 ended remote rows + unique local" (non-contending ended rows stay out of the cap), "live remote exact title beats a local near-match", "only an ended remote row matches" (fuzzy and exact reach it through the same relay calls), "an ended row named exactly as the query and a live near-match" (RED at 54e5b128ab: sent to dur-on-b; fuzzy and exact relay calls now `toStrictEqual`), unequal scores in both directions (RED at 54e5b128ab for the better ended row), "a live and an ended row match equally" now `ambiguous_target` with no send (54e5b128ab sent to the live row; the exact path refuses two rows sharing a name), and exact/fuzzy parity on a local exact name with a remote near-match. ## 2026-11-12 - A claim that asks for a sign-in after the create names the thread locally (#13179, follows #13112) `remote/cross-device.ts` `claimCreatedAlias` (the claim half of `withAlias`, exported through `live-surface.ts` and `remote/lazy-ops.ts`) answers `{ local: "sign_in" }` when the post-create claim answers `alias_registry_unavailable` with reason `sign_in`; `withAlias` keeps its old behaviour for an opened thread. `tools.ts` `thread_create` then names the created thread by the trimmed alias through `nameCreatedThread` (the create's `checkNameConflict` against the device's other threads, then the located control's `setName`), unless `name` was given; a refused name keeps the thread as created and adds `local_name_unavailable` with the refusing code (`contracts/results.ts` `ThreadLocalAliasNote`). `renameAlias` answers `{ local: "sign_in" }` when the claim or rename itself asks for a sign-in. The no-account create path trims the alias it uses as the name, as `thread_rename` does. Tests: `thread-local-alias-claim.test.ts` (fixture `claimDown`), the padded-alias cases, and an alias-only `thread_rename` on a relay target with no alias registry in `thread-local-alias.test.ts`. ## 2026-11-11 - An alias no account can hold becomes the thread's local name (#13112, fixes #13104) `remote/cross-device.ts` `planCreate` no longer ends `thread_create` when the alias registry answers `alias_registry_unavailable` with reason `sign_in`, the remote surface has no alias registry, or there is no remote surface. A new thread is still placed, and the plan carries `localAlias` with the reason. `tools.ts` names the thread by the alias unless `name` is given, runs the normal `name_conflict` check, skips the claim, and adds `alias_scope: "local"` and `alias_unavailable: "sign_in" | "no_registry" | "no_remote"` (`contracts/results.ts` `ThreadLocalAliasNote`). `renameAlias` answers `{ local }` without changing anything, and `thread_rename` then makes the alias the name. Opening an existing thread with an alias, and every other registry failure, are unchanged. The desktop's own sign-in path for account-wide aliases is #13105. ## 2026-11-10 - The reply allowance lasts for the work a delivery started (#13042, part of #12996) `component.ts` `noteInput`: a custom message that is no delivery (an engine-started turn) keeps `replyTo`, `replySenders`, `chainHop` and `cause`; after a final answer, a user-role message or any delivery clears them (the new delivery re-adds its own sender; nothing of the earlier group survives), and an engine-started message after the answer clears `consumed` whether or not the settle ran first; `agent_settled` no longer clears them; it still clears `consumed` (a report without `binding_id` after the run must name its thread, as before) and sets `local = false`, `answered = true`. The same-account bound is not enforceable here: a delivery's details carry sender, remote_origin and chain_count, no account fact; it rests on the engine's admission letting no cross-account agent delivery through (not verified in this change). Tests: `peer-reply.test.ts` decision table gains after_settle (kept), the engine-started turn (kept) and the person's message (ends), per leg; a new case per leg for another sender's delivery starting new work (after the answer, only that sender is approved; the earlier group's other agent is not) versus joining running work; `report-origin.test.ts` proves a report without `binding_id` must name its thread in an engine-started turn before the settle too; `component.test.ts` K8 hop case now reads hop 3, 3, 1 across settle, engine turn, person's message. The delivery text a receiver gets (`gateway/constants.ts` `GATEWAY_PEER_REPLY_SENTENCE`) now names the call it can make - `tool.thread_send({ thread: , message })` inside an eval cell - since the thread family is eval-only, like bash (#12903); the render test pins the eval form. ## 2026-11-10 - omo remote send on the one delivery pipeline (#13038, part of #13016) ## 2026-11-10 - A local send names the approval its receiver waits on (#13035, part of #13008) - A delivery queued while the receiving session waits on a question records the wait (gateway schema v11, `deliveries.wait_kind`), and `thread_send` reports it as `waiting_on` on both transports. `DeliveryWait.device` is optional. ## 2026-11-10 - thread: every delivery names its sender device (#13004) - **One reader for this device.** `remote/this-device.ts`: - `thisDeviceId(remote)` reads `remote.sessions.thisDevice()` once and keeps it per remote surface. - `stampThisDevice(provenance, remote)` adds `device`, or `device_absent` (`no_device_service` | `device_service_unavailable` | `no_device_id`) when the id cannot be read. - Every path that creates a delivery uses it: `tools/gateway-services.ts` `senderProvenance` (local and relay transports), the component's store, the SDK's store and `omo remote send` (`omo-native/remote-session-verbs.ts` `personSenderProvenance`). Decision 0027 section 3 requires every delivery to name its sender device, with the local transport stamping this device. - **No origin test.** `component.ts` drops `fromOtherDevice`, which read `details.remote_origin`. Every consumed delivery is `run.cause`. - **Unknown cause.** `gateway/store-ops.ts` `placeCausally` treats a cause no row here holds as a new root with the hop kept, instead of refusing it as `unknown_cause`. A cause row naming another target is still refused. - **#12860 pin relaxed.** A send to a published id now makes exactly one `thisDevice` read, and still no alias or listing call. - **Must not break:** - Do not add a second reader of this device. - Do not let a failed device read fail a send. - Do not reintroduce a rule that asks whether a delivery came from another device. - **Follow-up:** carrying the causal root across devices as data is #13032. ## 2026-11-10 - A send to another device answers with its delivery facts (#13033, part of #13008) - `thread_send` and `thread_handoff` to a session on another device return `delivery_id` and `effective_mode` from the relay result, and `endpoint: null`. The hand-off receipt names the thread by the relay result's `thread_id`. ## 2026-11-10 - One resolver across devices, reply by stated name, and one send result on both legs (#13000 with #13006, part of #12996) ### One send result on both legs, and a route-parity table (#13006) `tools.ts` `deliverThrough` builds one result for both transports: `delivery`, `deduplicated`, `delivery_id` and `effective_mode` on each; `message_seq` and `endpoint` only for a gateway row on this device, `device` only for another device (the remote handoff receipt carries the same facts; `contracts/results.ts` makes the handoff's `message_seq` optional, which the remote branch never had). Tests: `peer-reply.test.ts` runs the reply-allowance table once per leg (a consumed delivery with and without `remote_origin`) and asserts the two legs equal; `route-parity.test.ts` runs the send-path table (id and name, reply by id and by stated name, `reply_target_mismatch`, `ambiguous_target`, idempotent replay, result keys) against a thread on this device and one on device b; `thread-remote-fixture.ts` `surface()` exposes `permission(args)`, what `thread_send` asks the engine before it runs. ## 2026-11-09 - Thread tools are eval-only (#12907, closes #12903) `thread/metadata.ts` declares `THREAD_TOOL_EXPOSURE = "eval"` for all eighteen `thread_*` tools (`THREAD_TOOL_METADATA`, formerly `THREAD_TOOL_SEARCH_METADATA`), and `tools/internals.ts` `metadata(name)` returns only name, label, description and exposure. Senpi treats an `"eval"` definition like `bash`: it is withheld from the active tool list while an eval tool is registered, reachable from a cell through the registry with a redirect hint on a direct call, and a direct tool when no eval tool exists. Senpi's tool_search catalog indexes only `"search"` exposure, so the search-only fields (`searchText`, `searchKeywords`, `group`, `allowLazyActivation`) and the BM25 discovery tests are gone; `discovery.test.ts` became `metadata.test.ts` with an eval-exposure check. The family guideline is unchanged. `scripts/qa/thread-tools/plugin-surface.mjs` proves the exposure on a real rpc host with the built extension (direct `thread_list` and `generate_image` refused with the eval hint, js and py cells list threads, `generate_image` reached from a cell); the `lib/gateway.mjs` scenarios disable codemode in their scratch settings because they drive the gateway through the fake model's direct `QA:CALL thread_*` calls. The `plugin/extensions` and `plugin/runtime` bundles are regenerated. ## 2026-11-09 - The once-per-process transient memory sweep re-arms after 24 h (#12899) `memory/transient-sweep-once.ts` keeps a claim map (memory root -> claim time) under `Symbol.for("omo.memory.transient-sweep.claims")` instead of a set. A claim older than `TRANSIENT_RUN_MAX_AGE_MS` (24 h) re-arms, so the first open after it schedules one more deferred `sweepTransientMemoryRuns`; opens before it start nothing. `cancel()` releases a claim only if it is still its own. `index.ts` passes the component's `now` seam through. `transient-sweep-once.test.ts` checks that a claim re-arms at the 24 h bound and not before it. ## 2026-11-09 - The transient memory sweep runs once per process, off the open path (#12896) `memory/transient-sweep-once.ts` `scheduleTransientSweepOnce` claims each memory root once per process (a `globalThis` latch under `Symbol.for("omo.memory.transient-sweep.claims")`) and starts `sweepTransientMemoryRuns` on an unref'd 1 s timer, so it no longer runs inside `register()` on every session open. Once started, the sweep is still tracked by the session's in-flight work, so the shutdown drain waits on it. `session_shutdown` releases a claim whose sweep has not started yet. `transient-run-lifecycle.test.ts` counts sweeps across five opens (exactly one, none during an open) and checks that a released claim is swept by the next open. ## 2026-11-10 - Queued behind an approval on another device (#12975, part of #12886) `remote/relay-transport.ts` reads open `pendingQuestions` from the receiver's `get_state` as parked-on-approval and answers a queued admission with `waiting_on` instead of `idempotency_uncertain`; `gateway/types.ts` / `contracts/results.ts` add the optional `waiting_on` to the queued delivery shape. Test: `remote/relay-transport.test.ts`. ## 2026-11-09 - The default delivery mode steers the running turn (#12921, part of #12879) `thread/gateway/decision.ts`: the `auto` row of the 15-cell table admits a `mid_turn` target as `steer` with `expected_turn_id` = the target's own `turnEpoch` (`expect: steered`); a `mid_turn` target whose engine reports no epoch still queues (`followUp`), and idle, waiting-question, compacting and offline cells are unchanged. The local drain reads the phase and epoch from its own runtime, as before. `remote/relay-transport.ts` `send` probes `get_state` once for `auto` as it already did for `steer` and decides through the same table; the record then carries `deliverAs: "steer"` and `expectedTurnId` for a running turn. When the engine answers `turn_conflict` to an `auto` steer (the probed turn ended before the record arrived) the same `deliveryId` is re-sent as `followUp` and the reply is read as usual (started when idle, queued behind a turn that began since). A default-mode steer the receiver holds behind its user's open draft (`held_draft`) is re-sent as `followUp` too, and the sender's answer names that lane, so the draft's release can never turn it into a `turn_conflict` the sender does not see; a held re-send that still ends `turn_conflict` is logged as `relay_delivery_failed`. `contracts/params.ts` describes a binding's `inbound_mode: auto` accordingly. Tests: `gateway/decision.test.ts` (table + the two new mid-turn auto cells), `gateway/engine.test.ts` (the local 15 cells), `thread-remote-send.test.ts` (auto steers b's running turn through one `get_state`; the probe-to-record race falls back), and the drain/reconciliation suites updated for the lane the default now takes. ## 2026-11-09 - omo remote send over the transport port, one outcome mapping (#12911, part of #12879) `thread/remote/outcome.ts` holds the one mapping from a device service `CommandResult` to a `RemoteCommandOutcome` (`outcomeOf`, moved from `device-service.ts`) and from a non-ok outcome to a `ThreadToolFailure` (`outcomeFailure` and `READ_UNCERTAIN`, moved from `remote-ops.ts`); `relay-transport.ts`, `remote-controls.ts`, `remote-ops.ts`, `live-surface.ts`, `lazy-ops.ts` and omo-native's `remote-attach.ts` (the attach TUI's `command` passthrough) read it from there. `GatewaySender` gains `{ kind: "person", uid, user }` (`gateway/types.ts`; `envelope.ts` `senderFacts` keys its receipt as `person:`). `relay-transport.ts` delivers a person sender as the engine's own `prompt` record (`followUp`, or `steer` after one `get_state` against `expected_turn_id`) behind the same `deviceOnline` preflight, recorded through the same `once` receipt as a peer delivery under a key minted per invocation (a person's retry is a new send, nothing dedupes it); a person steer confirms the running turn by its numeric `currentTurnId`, as the peer path does (an engine reporting a non-numeric turn id is told the turn cannot be confirmed); `local-transport.ts` refuses a person sender (`unsupported`: a person reaches a session on this device through its TUI). `omo-native/remote-session-verbs.ts` `send` builds `createRelayTransport` over this device's gateway store and delivers through it instead of `promptRemote`. ## 2026-11-09 - One create/open/fork body over a SessionHost port; the creator's approval mode on both devices (#12891, part of #12879) `thread/control/session-host.ts` is the port `thread_create` opens sessions through: `open({ cwd?, sessionPath?, forkFrom?, name?, initialSkills?, permissionPreset? })` and `visible()`, the target device's threads a new name must not collide with. `control/local-session-host.ts` is this device's operator endpoint (`ThreadHost.openSession`, which now takes `permissionPreset` and puts it on the `open_session` frame); `control/relay-session-host.ts` is another device's engine endpoint through the device service (the former `openRemote` body: `endpointCommand open_session`, `locate` for a create or fork, `set_session_name`), answering `summary()` of the engine's reply state keyed by the listing id plus `device`. `remote/cross-device.ts` `planCreate` is placement only: it keeps every device / alias / fork refusal, names the host that opens, and answers an already-live thread as `deduplicated` on both legs (a live session in the view here; a listing row that is not `ended` there). `tools.ts` `thread_create` is one body: the skills shape check, placement, the name conflict over `host.visible()`, one `host.open` with the creator's `permissionPreset` on a create or fork (never on an open of an existing session), then `recordThreadCreator` and `withAlias`, on both legs. Deleted: `openRemote` and `RemoteOpen` (`remote/remote-ops.ts`), `openLocal` (`tools.ts`), `remote/remote-open-mode.test.ts` (its cases run on both legs in `control/session-host.test.ts`); `omo remote open` opens through the relay host. ## 2026-11-09 - One tool body per control tool over a SessionControl port (#12890, part of #12879) `thread/control/port.ts` defines the `SessionControl` port (interrupt, close, setName, getAvailableModels, setModel, getAvailableThinkingLevels, setThinkingLevel, getMessages); `control/local-control.ts` implements it over the endpoint that listed the session and `control/relay-control.ts` over the other device's `sessionCommand` records. `control/locate.ts` `locateControl` is the only place a control tool reads the device. `control/close-ladder.ts` is the one close ladder on both legs (unload with force, then an attached close and one `get_state` probe for a session with no file yet; a draining host is `host_unavailable`, any other unload refusal is typed `unsupported` naming the reason, on this device as on another). `control/operations.ts` holds the one body per tool, run by `tools.ts` and by `omo remote model|interrupt|close`. `thread_set_reasoning` gains its cross-device leg. Deleted: `remote/remote-controls.ts`, `interruptRemote`/`closeRemote`/`readRemote` from `remote/remote-ops.ts`, their `lazy-ops.ts` wrappers and the per-tool `if remote` branches in `tools.ts`. `thread_interrupt` and `thread_set_reasoning` results name `device` for a thread on another device, as the other control results already did. ## 2026-11-09 - A send to another device is the same delivery as a send on this device (#12889, part of #12879) `thread/remote/relay-transport.ts` is now a real transport: one `admit_external_message` on the target device's session (senpi#6240), carrying `gateway/provenance.ts` `renderDeliveryText` over the same envelope a same-device delivery gets (`gateway/envelope.ts` `senderFacts`, moved out of `engine.ts`; `decideDelivery` for a steer after one `get_state`), `displayText` = the provenance line + body, `sender: { kind: "agent", session_id, name? }`, `deliverAs`, `expectedTurnId`, `chainCount`. The engine's reply maps to the send contract (`started` / `steered` / `queued` with the engine's own pending count / `already_admitted` = deduplicated / `turn_conflict`); `held_draft` is retried under the same delivery id for about half an hour; an engine without the record answers typed `unsupported` naming the device, never a downgrade to a `prompt`. The `thread_send:remote` tool receipt keeps the retry promise. `remote/peer-text.ts`, `RemoteSender` and the peer half of `promptRemote` are deleted (`omo remote send` keeps a person's `prompt`). Chain continuity on both legs (K8, #12865): `component.ts` reads the engine-stamped `chain_count` of a consumed `session_control_delivery` that carries `remote_origin` (no local row, so no `cause`), `tools/ports.ts` `callerChainHop`, `OutboundDelivery.inbound_hop`, `store-ops.ts` `placeCausally` `hop = max(cause.hop, inbound_hop) + 1`. `sdk.ts` `send` resolves across the account through the same pipeline; a `cli` sender to another device is refused `unsupported` (`sender_not_allowed`) before any record (#12857). ## 2026-11-09 - One delivery pipeline with a transport port (#12887, part of #12879) `thread/gateway/transport.ts` defines the port: a resolved `DeliveryTarget` (`local` = a session this device holds, `remote` = an account listing row) and one `OutboundDelivery` shape every send becomes, carried by a `DeliveryTransport`. `gateway/local-transport.ts` wraps the gateway engine (row + receipt + inbox marker + wake); `remote/relay-transport.ts` wraps the existing remote prompt send (its `thread_send:remote` tool receipt and the caller's chain facts moved there from `tools.ts`); `gateway/pipeline.ts` routes by the target's kind and is composed once in `tools/gateway-services.ts`. `tools.ts` `deliver` resolves the address (`locate`) and hands one `OutboundDelivery` to the pipeline; `deliverThrough` shapes the result exactly as before, and `remoteOnce` / `remotePeer` are gone. Pure refactor: no result field, refusal code, receipt key or wire record changes. The remote leg becoming a real delivery (`admit_external_message`) is #12882. ## 2026-11-09 - A cross-device peer send names no device in the receiver's text (#12878, fixes #12877) `thread/remote/peer-text.ts` `peerText` renders exactly the local delivery text (`gateway/provenance.ts` `renderDeliveryText`) with the sender's own provenance and no `device` field; `remote-ops.ts` `promptRemote` no longer asks the device service for this device only to stamp it. Replies resolve the `sender_session` id through the account session list (`cross-device.ts` `crossTarget`, exact id first). `thread-remote-send.test.ts` asserts the remote From line equals the local one and the header carries no `device`. ## 2026-11-08 - A send to another device carries the sender's gateway provenance (#12858, part of #12852) `thread/remote/remote-ops.ts` `promptRemote` takes a `RemoteSender`: `{ kind: "peer" } & RemotePeer` from the thread tools (`tools.ts` `remotePeer`: caller durable id, caller name, `resolveProvenance` through `tools/gateway-services.ts` `senderProvenance`, the engine's own closure, a fresh delivery id, the cause's `root_id` and hop + 1), or `{ kind: "person", hop: 1 }` from `omo remote send` (`omo-native/remote-session-verbs.ts`), whose text is sent as before. A peer prompt's `message` is `gateway/provenance.ts` `renderDeliveryText` over the delivery the send makes, with the sender's device (`device.info`) as the new optional `Provenance.device` (`From ... / device ""`, header `device=`), and the record sets `expandPromptTemplates: false`. `renderDeliveryText` takes `RenderedDelivery` (the fields it reads, plus any of a stored row). Still open in #12852: the receiver writes the text as `role: "user"` and fires `input` hooks on it until senpi#6233 gives RPC an `admit_external_message` record. ## 2026-11-07 - A remote command on a closed session answers unknown_session (#12755, part of #12320) `thread/remote/device-service.ts` `sessionReason` maps the device service's `session_not_found` to the engine's `unknown_session` for every session-scoped refusal of the port: a failed attach for `sessionCommand` or `read`, and a command or read-only record refused before sending. Every other code is unchanged, and the attach retry inside `locate` still keys on the raw `session_not_found`. `device-service.test.ts` runs one prompt for a closed session through the local surface (contract host) and through the remote port and asserts both answer the same code; the remote fixture refuses a no-longer-live session with `unknown_session`, as the port does. ## 2026-11-05 - Ancestor enumeration is denied only when a foreign identity exists (#12301) `guard.ts` used to deny every recursive tool rooted at an ancestor of a memory area. It now lists every area in the call's denied set (lexical and canonical forms, including a transient run's own `transient-runs//agents`) through `guard-foreign-roots.ts`. Each physical area is listed once by its canonical form, so the verdict does not depend on whether a symlinked home or a case-variant path reached it. Regular files (`.DS_Store`, `desktop.ini`) are skipped because an identity root is a directory; any other entry counts as the caller's own only if it is, or contains, one of the own roots, compared lexically and never resolved, so a dangling link or a link aliasing the own root counts as foreign. A missing area is empty, and any other listing error denies. Because the host checks only the walk's root, an allowed ancestor walk is recorded by `toolCallId`; its `tool_result` re-lists the areas and replaces the whole result with the deny when a foreign root appeared or an area can no longer be listed. The hard filesystem policy still has no ancestor rule, so this soft guard alone covers ancestor enumeration until the host prunes per directory. ## 2026-11-04 - Config-watch creation targets stop at the project root (#12397) `resolveOmoConfigWatchTargetResolution` bounds the ancestor list used for creation targets with `creationAncestors()`: it stops after the first ancestor holding `.git`, and before any ancestor that contains the user config directory's parent or is the filesystem root. The walk for existing `.omo` config targets is unchanged. Measured on macOS: a session's CPU during 12 s of HOME writes went from 1.69-1.78 s to 0.03-0.04 s. ## 2026-11-02 - Import guard for the shared launch classification module (#11997) `desktop-sync/launchClassification.test.ts` bundles `launchClassification.ts` on its own and requires the module to be its only input, with no imports. The rule that the module stays free of sidecar and private-fds imports used to be a comment only; omo.js's registration half imports the module before any sidecar loads, so a later import would have pulled that code into omo.js. Test only. ## 2026-11-01 - Shared launch classification for the compiled desktop-sync test (#11997) `launchCarriedPrivateTable` moved from `device-session/account-runtime-loader.ts` (module-private) to the sidecar-free `desktop-sync/launchClassification.ts`; the loader and `desktop-sync/channel-compiled.fixture.ts` both import it, so the compiled test can no longer pass on a stale copy of the classification. The fixture header now describes the loader wiring it uses. Must not break: the module stays free of sidecar and private-fds imports, because omo.js's registration half imports it. ## 2026-10-31 - Desktop memory sync attaches on Windows over senpi's pipe pair (#11997) `components/memory/desktop-sync/channel.ts` no longer refuses win32. It attaches to the stream senpi's `takeInheritedPrivateChannel("memory-sync")` hands over on every platform; on win32 senpi builds that stream from two one-way pipes (engine fd 5 read, fd 6 write) and clears their inherit flag before adoption, so the receiver opens no descriptor, clears no flag and spawns nothing itself. A declared channel that senpi did not adopt (no stream) is `unavailable: private_channel_unavailable` on every platform, never the CLI source. Must not break: the receiver stays platform-neutral; Windows handle work belongs to senpi. `channel-compiled.test.ts` runs in the Windows Senpi compatibility job and skips the win32 pair case only while the bundled senpi predates the pair gate (senpi#5125). ## 2026-11-05 - An applied onboarding scan stays retained for understanding (#12509) `omo.onboarding.apply` used to delete the scan from the process-wide store before applying it, so `omo.onboarding.understand` on the same `scanId`, which the desktop sends right after About you's apply, answered `unavailable`. Apply now marks the held scan `applied` (checked and set before its first `await`, so racing applies still produce one success) and leaves it retained with its in-memory digests until the ten-minute TTL or the eight-scan eviction removes it; a failed or expired scan is still dropped at apply. A second apply answers `unavailable` as before. The understand refusal no longer lists "was applied" among its causes. ## 2026-11-04 - A timed-out bwrap probe is not cached (#12378) `probeBwrapUsability` used to memoize every verdict for the process lifetime, including a smoke test that hit its 3000 ms timeout. Under `auto` every later reflection child then ran unsandboxed, and under `required` every later reflection was refused. Only definitive verdicts are memoized now (exited 0, exited nonzero such as the user-namespace denial, or spawn failure). A timeout is returned to its caller and the next spawn's probe runs the smoke again. Concurrent callers still share one in-flight smoke. Because a timed-out spawn now runs unsandboxed under `auto` while the next one re-probes, the deferred (async) probe path reports per spawn: the transform's `wasSandboxed` and `warning` describe the latest spawn instead of the build-time guess, and `identity-runtime` logs `memory reflection sandbox degraded` when the state changes to a new degradation reason (and `memory reflection sandbox restored` when it recovers), never once per spawn. `required` still fails closed. A test also pins that a spawn-error verdict stays cached (the smoke never runs again). ## 2026-11-04 - The next turn releases a run Stop whose Resume was missed (#12343) When the run-pause bridge misses the Resume of a user Stop, the pause ledger stays `applied` with admission closed while the engine holds no Stop, and no later hold-change event can arrive. `EngineRunPauseBridge.releaseStale()` resumes the recorded Stop through the normal Resume path when the engine's live ledger is at or past it and holds no user Stop, and every real `before_agent_start` starts it in the background. It acts only on a Stop left `applied` with no Resume already in flight, so the ordinary Stop-then-message path keeps its own Resume, and the turn never waits on child resume turns; a failure is logged. ## 2026-11-03 - Run-paused task children resume and never stay paused forever (#12268) A user Stop pauses the background children of that run. The run's Resume now reaches them: the bridge resumes the recorded Stop whenever the resumed event's seq is at or above it, because the Stop's own `run_fence` holds raise the engine seq. A participant the released Resume could not restore is retried on a bounded schedule; one still lost after that has its paused run ended as `error` with `failure_kind: session_unavailable`, its lane slot freed and its parent notified. A paused child a live foreign host owns is never ended. The widget renders a paused child as paused with no clock, and `/task-kill` lists paused children. ## 2026-10-28 - Memory shutdown waits for in-flight memory work (#11671) `MemoryBlockCache.settled()` and `RecallCorpusCache.settled()` now cover every call from its first repository read (HEAD, the persisted-store load, the compile or corpus load) through a shared `InFlightReads` tracker, and the prompt prebuild runs its HEAD read through `MemoryBlockCache.track()`. The memory component registers its hooks through `trackMemoryHooks()`, which tracks every hook's promise (`session_shutdown` itself excepted) and every memory tool execute in one component-wide tracker (on quit the host runs the drain before it aborts a running tool); the bind-time reconcile, the registration-time transient sweep, the sync-status refresh, pressure dream requests and idle dream fires run through it too, and the shutdown drain awaits it in a `memory-work-settle` step that runs last, after the drain's own steps (`wiring-shutdown.ts`), so work that stalls cannot starve the facts enqueue, the skills-usage flush or the shutdown evaluators. To keep `omo.js` inside its byte budget, the dream conversation selection (`dream-selector.ts`) moves out of the entry bundle into the memory commands sidecar (`extensions/omo-memory-commands.js`), which a dream fire loads through the shared commands loader only when it selects conversations. ## 2026-11-02 - Finished team members leave the task widget (#12160) The below-editor task widget now shows only running or parked work. A team member that completes its turn leaves the widget even while its handle stays resident, instead of lingering as a `process completed` row until the team shuts down. `/tasks` still lists it, `task_send` still revives it, and its row returns while it runs again. Task lifecycle, residency and messaging are unchanged. ## 2026-10-31 - Isolate memory-hook startup from supervisor imports (#11957) Load supervisor-only dependencies after selecting supervisor mode, and load child bootstrap code only for its mode. Keep the existing checker, entry point, process ownership and deadlines. An import-boundary regression and real Senpi hook proof cover valid writes, duplicate-key rejection and provenance rejection. ## 2026-10-31 - Reduce trusted command-fixture setup cost (#11954) Install the real memory hooks after the fixture's initial seed commit rather than before it. Keep normal hook installation and validation for commands under test, with a real-git regression proving later invalid writes remain rejected. This is only the fixture part of #10696; actual hook-startup latency is tracked separately in #11953. ## 2026-10-30 - Ordered post-turn memory journal delivery (#11935) Separate required read-only journal delivery from the two-second maintenance observer. Combine live and durable answer IDs, and run full snapshot builds outside the journal publication queue. Publish journal updates immediately, rebase late full results on newer journal accounting, and use an explicitly unknown non-journal state before the first full snapshot. Transcript read failures retain durable counters. ## 2026-10-30 - Allocate model distribution turns at spawn (#11905) The task child planner owns independent category and agent cursors and passes them only into spawn-time resolution, leaving inspection and session continuations unchanged. ## 2026-10-30 - Deterministic stale-lock recovery fixture (#11604) Derive the fixture's hard and grace deadlines from one clock sample, matching the production ledger contract. Exercise recovery with an advancing clock and verify that in-flight diagnostic contention and errors stay before the mark. ## 2026-10-28 - Job widget author on the quick category and task widget sources The task component reads senpi's job-widget exports off the loaded `@code-yeongyu/senpi` module (`job-widget-host.ts`, feature-detected: `setJobWidgetAuthorResolver`, `registerJobWidgetSource` + `TextTap`) and wires nothing on a senpi without them. `job-widget-author.ts` installs one process-wide author route that resolves `quick` through `resolveCategory` against the asking session's model registry, using the omo.json of the session whose cwd matches; an unknown cwd or an unresolvable `quick` answers `undefined`, so senpi falls back to the session model. Each registering session holds the route until its `session_shutdown`; the last release withdraws it. `job-widget-sources.ts` registers a `task` job for each running background task (`notify_on_terminal`) of the current session: id = task id, brief `task` = the spawn prompt (capped at 4 KiB) and `intent` = the description, one `tools` TextTap fed `\n» \n\n` per finished child tool call (the last 64 KiB of each result), `notify()` per call, `settle()` on a terminal status, and `dispose()` on record removal, a session change, a revived run, or `session_shutdown`. A child `bash` call with `run_in_background: true` sets the job's `watch` hint through `update()` to `background command: ` (secret shapes redacted with omo's mirror of senpi's `sensitive-output` patterns plus flag, `sk-`, AKIA and JWT shapes, then cut to 300 characters); the newest background command wins and a finished one leaves the hint in place. Without one, senpi's request policy authors no task widget. ## 2026-10-29 - Preserve feedback refusal sections (#11830) Validate the service's secret-detection section id against the feedback section list and carry it through the existing submit result. Missing or malformed detail keeps the existing refusal shape. ## 2026-10-29 - Wire the task host generation view into the task engine (#11783) The task engine passes the lifecycle a read-only view of the endpoint's generations and handover-parked entries, and the steering destruction port carries the lifecycle's host-session cancel, so a cancel can tell a child still running on a draining generation from one that ended. ## 2026-10-30 - Darwin `/home` account homes count as real profiles (#11878) `telemetry/omo-native-session.ts` `isInsideTempDir` now also compares a trigger-path HOME's own lexical parent with the users dirs, so `/home/` (which resolves to `/System/Volumes/Data/home/`) is a real profile. `automount-trap.test-support.ts` exempts the `os.tmpdir()` subtree, so the trap only fires on real `/home` and `/net` resolution. `install-identity.test.ts` adds a table test for HOME under `/home`, `/Users` and the resolved `/System/Volumes/Data/home` path. ## 2026-10-28 - Load the memory name-listing renderer lazily (#11559) memory-core imports its `` renderer through `#memory-external-projection`, which maps to its own source everywhere except the plugin manifest, where it maps to `extensions/omo-recall-store.js`. `DEFAULT_EXTERNAL_PROJECTION_LIMITS` stays in the entry. Refs #11557. ## 2026-10-28 - Never resolve a macOS automount trigger on the host loop (#11546) `@oh-my-opencode/utils/path-containment` gains `isDarwinAutomountTriggerPath(path, { platform, homeDir })`. It is true only on darwin, for `/home`, `/net` and anything below them, and never for the user's own home subtree. It is decided from the string alone, before any syscall. `telemetry/omo-native-session.ts` `isInsideTempDir` compares trigger candidates (and a HOME whose parent is one) lexically. The predicate also matches the firmlinked `/System/Volumes/Data/home|net` spellings, case-insensitively. The class sweep applies the same rule to format-on-mutation, `skill_loaded` (`omo-native-tools.ts`), the memory read classifier, the memory guard and policy guard roots, kibitzer `resolveWorkspacePath`, project memory read grants and sandbox `canonicalPath`. `automount-trap.test-support.ts` forces darwin and traps every resolving fs entry, so each site's table test fails if it ever resolves a trigger. ## 2026-10-26 - Feedback identity follows native telemetry consent Use the shared native enablement decision before collecting install and session hashes. Keep the existing feedback-specific opt-out and configuration checks, and leave ordinary report sections available when hashes are suppressed. Refs #10937, item 1; the tracking issue's other follow-ups remain open. ## 2026-10-29 - Desktop private sync channel receiver (#11750) `components/memory/desktop-sync/channel.ts` adds `attachDesktopSyncChannel(stream)`, the memory component's receiver for the desktop's private sync duplex (claimed through `takeInheritedPrivateChannel("memory-sync")`). It bootstraps once (the reply names the child capability every later request carries), writes each request synchronously before returning its promise, keeps at most 64 requests in flight, settles each reply once, and retires the channel on disconnect, a malformed or foreign frame, another child's event or `retired`, rejecting every waiter with one fixed, body-free error. A bootstrap main never answers is unavailable after 10 s (a contract bound) and a late reply is discarded. A missing stream or a refused or invalid bootstrap is `private_channel_unavailable`, never a CLI account fallback; Windows is `platform_not_supported`. `framing.ts` (LF JSON, canonical `$omoSyncBytes` base64url, 92 MiB frame bound) and `protocol.ts` (strict zod schemas matching the desktop wire contract) are local, so the plugin does not import the unpublished desktop package. Registration in `memory/index.ts` belongs to the account-source change. ## 2026-10-28 - getBuiltinSkillsRoot honours OMO_BUNDLED_SKILLS_DIR (#11631) `getBuiltinSkillsRoot()` resolves a valid `OMO_BUNDLED_SKILLS_DIR` through `resolveBundledSkillsOverride`, the resolver the bundled-skills loader uses, so `skill-pointers`, `onboarding`, `init-deep-advisor` and the `skill_loaded` telemetry root name the tree skills actually load from; the returned root still ends in a path separator. The resolver moved unchanged to the leaf module `bundled-skills/override.ts` (node builtins only), re-exported from `bundled-skills/index.ts`, so the telemetry helper and the advisor bundle do not pull the component's config loading. An invalid value is still reported once per process and falls back to the plugin-relative root; `onboarding` and the telemetry component pass their component logger so that one report reaches the component log whichever registers first. Telemetry still exports only the allowlisted skill name, never the directory. ## 2026-10-28 - Distinguish runner argv from nested command pairs Do not credit a test merely mentioned in an echo argument inside an eval cell. Preserve real command kinds, offsets and supported test receipts. Refs #10802, runner-argv blocker only; the other tracking and replay follow-ups remain open. ## 2026-10-27 - Preserve ordinary thread attachment refusal identity Keep the host's two session identity refusal codes on ordinary mutation errors. Preserve the existing authentication, draining and typed release/UI reply paths. Refs #10944 item 5 only; the tracking issue's other follow-ups remain open. ## 2026-10-27 - Recover failed facts parking without a restart Keep migration retryable when a hot-to-parked move fails after the failure ledger is durable. Preserve the original error, ledger, bytes and healthy queued work; restore the existing cache after successful movement. Refs #11091, post-ledger movement only; batching, orphan cleanup and claim revalidation remain open. ## 2026-10-27 - OTLP projection and startup privacy follow-ups (#11431) Project the actual client field names against the pinned collector types, derive summary cost from USD, and purge the previous run's OTLP spool when startup is opted out. Cleanup uses the existing recovery sidecar, not the exporter. Reject unlisted events and unsupported platforms before importing OTLP, retry failed startup after the same 60-second backoff as PostHog, dispose late transports, and keep PostHog acknowledgement timing independent of OTLP lifecycle bounds. ## 2026-10-27 - OTLP model ids fall back to custom (#11428) `pinned-model-ids.ts` holds the pin's model enum (omo-telemetry 13c6e61b, 44 values) and `pinnedModelId`. The projection applies it to the 15 keys that share that enum and to the ranked `omo.m*_model` keys (`none` kept). The turn span applies it to its three model attributes. The list lives in its own module, so the turn span in the main bundle does not pull in the projection tables. Update the list together with the pin. ## 2026-10-26 - model-profile outcomes leave the conversation (#11365) `components/model-profile/index.ts` records every outcome with `pi.appendEntry(, { content, details }, { startupBookkeeping: true })` instead of `pi.sendMessage`. senpi's `convertToLlm` turns every custom message into user text in the next provider request (its context-exclusion predicate is false for every type), so the notice reached the model, and one sent while the first prompt streamed was delivered as a steer. The three custom types and their `details` are unchanged; only the entry kind moved from `custom_message` to `custom`. An outcome that leaves the profile unapplied also goes to `ctx.ui.notify`: `warning` for a chosen profile that no available model serves, an unknown profile name or a stored login that failed, `info` when the unset default falls back to the session's own model. `notice.ts` names the next step per host (rpc: Provider authentication settings or the composer; headless: `/login` or `--model`). A clean apply is recorded and logged only. Must not break: no profile outcome may go through `pi.sendMessage`; `index.test.ts` runs senpi's own `convertToLlm` over the component's conversation output for every outcome kind. Live proof: `scripts/qa/model-profile-e2e.mjs` checks `notice_not_in_conversation` and `notice_not_in_request` (the mock provider records whether the request it received carried a profile notice). ## 2026-10-26 - Align project-memory grants with raw file reads (#11339) Suffix-classified external file tools no longer receive a grant for a different file when a symlink is followed by `..`. Built-in resolved reads remain supported, and the missing-note exception is limited to ENOENT with plain missing segments: a missing path such as `missing/../note.md`, `a/./b` or `a//b` is not granted. Real filesystem tests cover grants, the soft guard, temporary HOME detection, and native case aliases. A missing remainder under a file is refused on every platform (Windows reports ENOENT there, not ENOTDIR), and the temporary-HOME check judges HOME the way the install id is written (lexically resolved), so a HOME like `/link/../home` that writes inside the temp root counts as temporary, and a lexical HOME that does not exist yet counts as temporary too (telemetry stays off). ## 2026-10-26 - Admit sessions before host reconciliation (#11335) The task event bridge restores local pause and transition state, attaches RPC and workpools, then lets the existing durable recovery chain finish asynchronously. Its abort signal fences the recovery tail on a newer start, switch or shutdown. The lifecycle carries its own disposal and shutdown generation through host probes, admission and revival; stale probe completions cannot claim newer ownership, and late respawn handles use fenced suspension. Endpoint groups reconcile independently while the shared admission lease still enforces per-session capacity. Deterministic regressions cover blocked probes, disposal, shutdown, newer same-process claims, independent hosts and late handles. ## 2026-10-27 - The local launcher sends the OmO logo (#11445) `install/local-launcher.ts` imports the same `OMO_BRAND_LOGO` from omo-native, so a sibling-store install brands the sign-in result page like the published launcher; `plugin/scripts/install.mjs` and `bundle-inputs.json` are regenerated. ## 2026-10-25 - Close research fidelity gate findings (#11310) Source-backed facts fail verification when their own snapshot metadata or body cannot be checked, with the cause in the message, while facts on healthy sources keep their checks. Grouped derived values verify exactly as fill writes them. Conversion originals remain bound to their operand rows under one bracket grammar: a conversion shown without its original, with a non-numeric or nested bracket, with a dash separator, or with a second original (a bare figure in the operand's dimension right after it) is a mismatch, while another filled fact, prose with a figure, or a range after it is not, and a correct original passes in any bracket style or fullwidth form in HTML and Markdown. The V, A, and D claim prefixes preserve their marks through fill and Markdown projection. Packaged research skills use the shared runtime and the corrected format guidance. ## 2026-10-26 - Optional lazy OTLP dual-send (#11413) An optional second telemetry transport, inactive by default and consent-gated; it never blocks the existing sink. ## 2026-10-26 - Cover restored Stop admission through the real manager (#11401) The restart regression reconstructs pause custody over a shared state directory, releases the restored Stop, injects a child restore failure, and verifies that real manager admission changes from held to started. It then verifies a successful child retry using the durable acknowledgement without a live hold observer. A native-session regression also quits, disposes and reopens the same persisted JSONL, sends a real person prompt through AgentSession, and verifies the actual manager admits a new task. The native engine's input release is the person-reachable action; `/resume` remains the session picker. ## 2026-10-26 - Recovery guidance distinguishes prose from commands (#11390) Missing-runtime notices describe an incomplete installation without spelling a retired CLI command. A host missing the computer-use API now names the registered `omo update` command. The command audit allowlist stays unchanged; owner tests pin the update command emitted by `/computer` and the npm/Bun reinstall commands passed through `OMO_REINSTALL_COMMAND`. ## 2026-10-25 - Optional shared bundled skills directory (#11332) Every bundled skill consumer (resources discovery, the task skill loader, and the bare skill commands) uses one resolver for `OMO_BUNDLED_SKILLS_DIR`. The override replaces only `plugin/skills`; `plugin/skills-conditional` remains relative to the plugin. Absent or empty is unchanged. An invalid `OMO_BUNDLED_SKILLS_DIR` (relative, missing, not a directory, unreadable) now logs ONE error naming the variable and falls back to the plugin-relative bundled skills, plus one session notice; the report is once per process across both extension bundles. An explicit `skillsDir` option wins over a valid override. ## 2026-10-25 - Report hosted child availability as parent status (#11317) Deliver debounced unresponsive, close-pending, and recovered-running status through stable per-child coordinator keys without sending false terminal completions. Use the parent streaming batch window for status delivery. ## 2026-10-25 - memory sync defers a pass while the keychain waits for approval (#11264) `device-session/account-source.ts` turns the credential store's `KeychainApprovalPendingError` (a session read past its 5 s deadline in `service-auth/keystore.ts`) into `SyncSessionDeferredError` (`sync-session-deferred.ts`, matched by its code because the account sidecar carries its own copy of the class), and `signedOut()` answers false while the keychain waits, so a pending keychain never reads as signed out. `sync-runner.ts` logs the store's message, leaves the repo idle (status `null`, so the `memory` tool's status read returns at once), and launches the pass again after `deferredRetryMs` (15 s initially, doubling to a 5-minute cap, with one warning per escalation) while the same sessions still hold the repo. Settled answers are never cached. A write or clear invalidates the pending-read entry, and an old read settling afterward cannot restore it. Native writes retain their existing unbounded behavior; safe write deadlines need the single credential-owner design tracked in #11262. Must not break: a retry joins the process's one parked keychain read instead of starting another, so it adds no prompt; a pass that resolves the session normally schedules no retry. ## 2026-10-25 - Supervisor slot event waits (#11288) The slot harness observes TCP starts, filesystem transitions and supervisor exits against one deadline with time reserved for cleanup. Filesystem waits retain the macOS event-loss re-check. Regressions exercise a real supervisor exiting before TCP start and simulated Windows admission rename contention exhausting the existing retry budget. The simulation establishes a possible failure path, not the cause of the historical Windows CI failures. ## 2026-10-25 - Remove automatic engine crash telemetry The session-start component no longer reads, claims or sends earlier process crash records. Retire the legacy crash capture entry point and its reviewed writer site. Recording-transport coverage requires zero crash events while normal session telemetry continues. Preserve operational crash files and user-initiated reports. No replacement signal or local bundle regeneration is included. ## 2026-10-20 - git-master adds the sisyphus-dev-ai co-author trailer by default (#10713) `components/git-master/directive.ts` builds the attribution directive whenever `git_master.include_co_authored_by` (default `true` again, no longer a no-op) or `commit_footer` is on. Its commit example is `git -c trailer.ifexists=addIfDifferent commit -m ... --trailer "Co-authored-by: sisyphus-dev-ai "`, under the `git_env_prefix` from #10613, so git keeps one copy when the message already carries the trailer. A squash joins messages without `--trailer`, so the directive asks for one `--amend` rewrite afterwards. `skill-content.ts` runs the shared template rewrite with `include_co_authored_by: false`, because the directive carries attribution, and both channels (the `read` hook and `task-skill-loader.ts`) append the directive only when the text does not already contain ``. `scripts/qa/git-master-attribution-e2e.mjs` now expects the trailer exactly once by default, and adds an `include_co_authored_by: false` run that expects none. ## 2026-10-19 - desktop-toolkit component: the session's channel to toolkits the app hosts for its thread `src/components/desktop-toolkit/` registers the eval-only tool `omo_desktop_toolkit` (`{op:"acquire", toolkit}`). It answers `unavailable` at once unless the opener listed the toolkit in `open_session.context.omo_toolkits` (comma-separated) and the host has `pi.rpc`; otherwise it emits `omo.toolkit.request {requestId, toolkit}` and waits up to 15 s for the app's `extension_request omo.toolkit.grant {requestId, grant | refusal}`. A grant must be `{endpoint: http://127.0.0.1:/..., tokenFile: }` with no userinfo or query; anything else settles as `invalid_grant`. A late or foreign `requestId` is refused (`accepted:false`). Registered right after `browser-bridge`. Why: sisyphuslabs/omo-desktop-app#3292. The token stays in a 0600 file because an eval cell's tool results stream to the desktop as `tool_execution_end` and the desktop logs them. Must not break: never return a token in this tool's result; keep the per-session pending map (two sessions must not settle each other's request). Live proof: `scripts/qa/desktop-toolkit-rpc-e2e.mjs` (granted / not-offered / app-silent). ## 2026-10-21 - Gateway, onboarding and task-host hooks allow prompt previews (#10356) All three before-agent-start handlers register as preview-safe. Gateway previews read committed operating rules through a read-only connection without starting a worker, registering migrations, or changing warning and activation latches. Onboarding previews compute the same addition, migration inventory included, without claiming the completion marker, changing widgets, consuming the forced-tour flag, or starting the background session-history read. Task-host previews return without capturing runtime context, registering a store, or warming or launching a host. AST and composed-extension audits cover literal and dynamic registrations; component tests cover semantic and durable state preservation, and a real-engine test checks prefix readiness. The onboarding preview decides whether onboarding would start with the same rule as the real claim, read without writing (`isOnboardingClaimable`, default `claimableWithOwner`): a claim whose owner has died counts as claimable, so the preview adds what the real turn adds after taking it over. The real-engine prefix test awaits the session's MCP startup connects (`whenAttachSettled`) before the preview and before it removes its temp HOME. Binding the session, not the preview, starts the bundled ast-grep server, and senpi's quit returns before such a connect settles (code-yeongyu/senpi#3911). The test also asserts that the preview leaves every MCP server's state, generation and pid unchanged. ## 2026-10-20 - Project memory follows successful file touches (#10044) Port project-scoped memory onto the current session binder and persisted recall store. A successful `read`, `edit` or `write` in a child project with an existing auto-identity repository grants read-only access to its notes and appends a paths-and-descriptions nudge once per project, re-armed after accepted compaction. The resolver follows directory links in non-git workspaces, maps linked worktrees with the bound `auto_identity` mode and pinned absolute memory root, and refuses links that would widen scope to an ancestor, home or the memory root. Grants are canonical, exclude `.git` and `system/` case-insensitively on every platform, and are revoked on shutdown and binding release. Kibitzer recall and its read-only memory tool rank the own corpus and up to three recently touched projects separately. Projects receive up to half the seats, rounded up, in touch order; unused seats go to the other side. The shared `RecallCorpusCache` loads every project repository through the existing lazy term-store runtime. Ranking uses the original store-backed arrays; only candidate paths, transcript filtering and read presentation use `@project//`. A project store save failure logs through the same warning path as the own corpus and never fails recall. Readable project sources survive pending-nudge persistence. A project note whose file path the transcript already names (the model reads it there, not at its `@project/` key) is not recalled again. The tool-result path never blocks on the filesystem: the switches are read once per session, the session-tree scan and every real-path, link and git-layout probe go through `fs/promises` into a per-session memo, and a further touch in an already-resolved directory reads neither configuration nor the filesystem. `memory.project_scope.nudge` and `.recall` default on and can be set separately on the root memory block or its harness/profile layers, not per agent; a change takes effect in the next session. The existing auto-identity feature, sync-runner acquisition, generated adapter bundles and bundle budgets are not duplicated or changed. ## 2026-10-21 - Sender workspace and project on gateway deliveries (#10794) `renderDeliveryText` starts with the sender's workspace/project and optional lane/session. Resolution uses the sender runtime's environment, then git-origin owner and configured path prefixes from `provenance.workspaces` in the normal profile-selected config. Tool arguments cannot supply provenance. For a bound external chat or the CLI, the sender is the connector process, so the provenance is that process's workspace and project, not the human author's (the author stays in the binding header). Schema v8 requires provenance on new delivery inserts without rewriting historical envelopes; old rows remain readable and render `From (provenance not recorded)`. Older writers that omit provenance must upgrade before inserting into a v8 store. Legacy mailbox imports have no recoverable sender context and are explicitly `unclassified / legacy-mailbox`. ## 2026-10-19 - The feedback core is a lazy sidecar, so omo.js stays inside its byte budget (#10546) `/feedback`, `/bug` and the `omo.feedback.prepare` / `omo.feedback.submit` RPCs run only when someone sends a report, so their core (host collection, draft building, the draft store and the upload) now ships as `extensions/omo-feedback.js` behind `#omo-feedback-runtime`, imported on the first report. The entry bundle keeps the component registration, the session tracking, the two command and two RPC shells and the redactor check; the TUI flow behind `/feedback` and `/bug` (the description prompt, the notice, "See exactly what is sent" and the result message) runs from the sidecar too; a host without `pi.redactForUpload` still answers `unavailable` without loading anything. Results, errors, idempotency keys and `OMO_DISABLE_FEEDBACK` behave as before. If the sidecar cannot load, the RPC rejects and the command shows an error naming the missing artifact; a failed import is not cached, so the next report retries. This replaces a byte-budget raise: the feature had added ~14.5 KB to omo.js, and the budget is raised only for code that runs on every turn. ## 2026-10-19 - In-app feedback and bug reports: one core for `/feedback` and the desktop (#10543) `components/feedback` is the only report path. The TUI (`/feedback`, `/bug`) and the desktop (`omo.feedback.prepare` / `omo.feedback.submit` extension RPC) build the same draft and send it the same way; the desktop's own log, crash and identity sections enter through `prepare`, so they pass the same redactor. Redaction is senpi's `pi.redactForUpload` (senpi #3674), the function `/share` uses; a host without it answers `unavailable` and nothing is sent unredacted. Product decisions: collect as much identity and debug information as possible, one Submit with a plain notice (no checklist), memory and custom extension entries never collected, config values under `headers`/`env`/secret-named keys and URL userinfo blanked structurally before text redaction. No new consent flag: telemetry consent and opt-outs gate only the install and session hashes; `OMO_DISABLE_FEEDBACK` keeps the report on disk (0600). Do not add a second redactor or a desktop-only report path here. `omo.feedback.submit` also takes an `idempotencyKey` the caller kept from a send whose answer was lost (format `feedback-`; anything else is ignored). The desktop keeps that key on disk, so Try again after an app or session restart prepares a fresh draft and sends it under the same key: the intake replays the first receipt for the same body, and answers 409 `conflict` for a different body, which the engine reports as `already-sent` instead of a failure. Only a caller-kept key turns a 409 into `already-sent`; without one a 409 stays a refusal. ## 2026-10-20 - A failed onboarding scan is retried instead of being kept for the whole process (#10481) The TUI onboarding's once-per-process memos (the setup scan behind the first onboarding turn, the understanding scan `onboarding_understand` reads, an injected migration inventory, and the background session-history summary) kept a failed run as their answer, so one transient failure made onboarding report "the scan did not run" for the rest of the process. They now keep only a success: callers that arrive while a run is in flight still share it, a rejected run answers `undefined` to them (onboarding stays fail-open) and is dropped, and the next call starts a fresh run. ## 2026-10-20 - The TUI onboarding reads session history for understanding only when it runs (#10481) After merging #10505, the first onboarding turn awaits only `omo setup`'s sources (`runTuiOnboardingScan(environment, { sessions: false })`): its context carries the setup rows, the migration inventory and a value summary that states no session count, because that scan read none. The session digests and project roots `onboarding_understand` needs come from a second scan of the same runtime, with sessions, that starts only when that tool runs after consent, once per process; recent sessions still reach the turn through #10505's bounded background history summary. The understanding RPC handlers now come from #10505's `createOnboardingUnderstandingHandlers` (this PR's duplicate `understand-handlers.ts` is gone), and the sidecar loader checks this PR's exports through the same `RUNTIME_EXPORTS` list. ## 2026-10-19 - A dead onboarding claim taken over by three or more processes at once has exactly one winner (#10481) The dead-claim takeover moved the marker aside and, when what it moved was a fresh claim, linked it back; between the two steps the marker was absent, so a third claimant's exclusive write won as well and the failed link then deleted the first winner's claim (two windows plus a CLI at first run could all onboard, and `omo.onboarding.state.get` read not in progress meanwhile). A takeover now first creates, exclusively, a lock named by a hash of the exact claim it judged dead (`onboarding-completed.takeover.`, holding its own claim record), re-reads the marker, and renames its staged claim over the marker only when the marker still holds those bytes. A lock whose holder died is passed by locking that holder's record in turn, by the same owner rule. No claim is ever moved aside, so a live claim is never removed or replaced and the marker is never absent. A deterministic test releases real worker-thread claimants into every step of two others' takeover (three and five claimants) and asserts one winner and an unbroken marker. ## 2026-10-19 - An onboarding claim left by a dead process no longer reports in progress forever (#10481) The onboarding claim marker (`onboarding-completed`) now records its owner: `{claimedAt, version: 2, owner: {pid, processStart}, nonce}`, with `processStart` from memory-core `getProcessStartIdentity`. `omo.onboarding.state.get` reports `inProgress: true` only while that owner still runs: a claim whose pid is gone, or whose pid now runs with a different start identity of the same scheme (pid reuse), reads as not in progress, and the next TUI prompt takes it over (under a takeover lock for exactly the claim judged dead, so of any number of concurrent claimants exactly one wins). A live owner, or one whose liveness cannot be proven (an unreadable identity, identities from different readers), still holds the claim. Rule for claim markers written by older builds, which carry `claimedAt` but no `owner`: they hold the claim for 24 hours from `claimedAt`, then count as abandoned and can be taken over; markers without `claimedAt` still mean completed. `complete` stays write-once and was never blocked by a claim. The owner-recording claim and the state reader ship in the onboarding-scan sidecar (`claim-owner.ts`), loaded only when a claim is attempted on an install without a recorded completion; if the sidecar cannot load, the TUI falls back to the plain ownerless claim. `isOnboardingComplete` (the welcome widget's check) is still marker existence. ## 2026-10-19 - A busy memory-write lock no longer drops an onboarding batch's recovery (#10481) When a retry of an interrupted `omo.memory.facts.apply` batch (same `batchId`) found the `memory-write` lock busy for all three attempts, it answered "busy" but deleted the batch's recovery envelope, so maintenance could no longer finish the batch and a later retry re-planned from scratch. The apply now keeps the envelope whenever it ends without a terminal outcome (a throw or an exhausted lock) and the ledger on disk carries a planned recovery, clearing its owner so the facts maintenance reconcile or the next retry finishes it; only a committed or `parent_dirty` outcome, or an apply that never planned, removes it. ## 2026-10-18 - Reviewed onboarding facts reach memory through the facts extractor's apply (#10481) `extension_request omo.memory.facts.apply {records}` writes memory-core `record_fact` records for the bound memory session through the facts extractor's own apply (`applyFactsWithRetries`): each record is validated by `parseFactsExtractionRecord`, the batch takes the `memory-write` lock with the same three attempts, person facts route to `system/human.md` and people cards, and the result is one commit with the `Generated-By: facts-extractor` and `Omo-Facts-Batch` trailers. It answers `{outcome: "committed", sha, affectedPaths, batchId}`, `{outcome: "no_facts"}`, `{outcome: "parent_dirty"}`, or `{kind: "invalid" | "unavailable", reason}`; an invalid record writes nothing. `omo.onboarding.state.get` / `.complete` / `.reset` read and set the one onboarding completion marker (`onboarding/state.ts`) as `{completed, completedAt}`, so finishing onboarding on the desktop stops the TUI from asking again and the reverse. The TUI onboarding now runs the shared scan once, on its first onboarding turn, and puts its result in the first-prompt context: one row per found item and a value summary computed from the scan. Two new tools carry the memory step: `onboarding_understand {consent: true}` runs the `omo.onboarding.understand` runtime on the session's model and returns candidate facts without saving anything, and `onboarding_memory_apply {understand_id, selected}` writes only the selected candidates through the same applier as `omo.memory.facts.apply`. The onboarding skill shows the candidates, asks which to keep, and writes nothing the user did not choose. ## 2026-10-19 - The first onboarding prompt no longer waits on the session-history scan (#10480) Review HIGH on #10505: the TUI onboarding's migration inventory called `runOnboardingScan`, which since #10478/#10479 also ran the full session-history scan (every recent transcript, up to 5000 per source, digests included), and the first onboarding prompt awaited it. That took 10.8 s on a machine with real history, and the component and lifecycle tests timed out. The inventory path now passes `sessions: false` and runs only `omo setup`'s sources; the `omo.onboarding.scan` RPC is unchanged. Session history moved to a bounded background step: after a claim, `onboardingHistorySummary` (in the lazy `omo-onboarding-scan.js`) summarizes the newest 12 recent sessions (`ONBOARDING_HISTORY_MAX_SESSIONS`, 14-day window `ONBOARDING_HISTORY_WINDOW_MS`) under a 10 s budget (`ONBOARDING_HISTORY_BUDGET_MS`). Discovery lists the Claude Code project directories and the Codex sessions tree and stats each transcript to order them newest-first; it opens no transcript. At most 12 transcripts are then opened, newest first, and a transcript that turns out unusable (excluded project, unparsable, duplicate session) still spends one of those 12, so the summary can hold fewer. The budget is an `AbortSignal` threaded through every filesystem call of discovery and reading (`session-history/newest-sessions.ts`): when it fires, pending calls reject at once, no further call reaches the filesystem, and the summary carries what was read by then. On the 3000+3000 fixture home it opened 12 transcripts (was 6012: the shared discovery read every transcript's head for its cwd) and stat-ed 6014 files. Its one-line summary reaches the context as a hidden `omo-onboarding:history` message delivered with `deliverAs: "nextTurn"`. A scan that hangs, fails or finds nothing sends nothing, and the prompt is unaffected. Against a fixture home with 3000 Claude Code and 3000 Codex transcripts, the first prompt took 2166 ms before this change and 4 ms after. The onboarding tests now scan an empty temporary home and never read the real `~/.claude` or `~/.codex`. omo.js: 1,549,371 bytes (was 1,549,374). ## 2026-10-19 - Onboarding understanding and the apply tail load lazily, so omo.js fits its byte budget (#10480) #10480 had put the `omo.onboarding.understand` / `.skip` / `.stop` handler bodies into the eagerly loaded `omo.js`, which grew it to 1,553,004 bytes against the 1,550,000 budget in `bundle-size.test.ts` (dev: 1,549,814). Those bodies now ship in the existing lazy `extensions/omo-onboarding-scan.js` sidecar: `scan-runtime.ts` exports `createOnboardingUnderstandingHandlers` (from `understand-component.ts`, which also reads the retained scan for understanding), and the shell registers the three method names and loads the handlers on the first understanding call, once per shell, keeping no failed load. The apply handler's work after its expiry check (stale-target and credential-store checks, the writers, `authTargetOf` / `writeAuthThrough`) moves into the same sidecar as `applyRetainedScan`; it already ran only after the runtime loaded. `omo.js` is 1,549,374 bytes. No new generated file. Behavior is unchanged except that a malformed understanding request on an install whose runtime cannot load now answers `unavailable` with the load reason instead of `invalid`. ## 2026-10-19 - An apply's own credentials write no longer makes its provider stage stale (#10496) ## 2026-10-19 - Stage the shared DAG infrastructure retry runtime (#10605) Regenerated `plugin/extensions/omo-task.js` with `bun run build:senpi-plugin`. The bundled task engine now carries the shared scheduler's two bounded infrastructure retries, durable backoff metadata, and retry diagnostics. TUI and desktop continue to use that same engine; no adapter-specific retry path was added. Manual prompt overrides keep their pre-amendment eligibility check. The protocol field audit reads the extracted `event-types.ts` union so its overflow-payload equality assertion continues to inspect the shipped contract. ## 2026-10-19 - git-master applies git_env_prefix again (#10613) The OpenCode plugin put `git_master.git_env_prefix` (default `GIT_MASTER=1`) in front of every git command git-master ran, so a user's own git hooks could tell the skill was acting. Native dropped it. `components/git-master/skill-content.ts` now runs the same rewrite as the plugin (`injectGitMasterConfig` from `skills-loader-core`, footer off) on the skill text: a mandatory "GIT COMMAND PREFIX" section, plus the prefix on every `git` line in the skill's bash blocks. It covers both ways the skill arrives: the `read` result of `*/git-master/SKILL.md` (first text part rewritten, footer directive still appended as its own part) and `load_skills` in `task-skill-loader.ts`. The prefix always takes the bash form, because senpi's bash tool runs bash (Git Bash on Windows) whatever the user's login shell is; a csh `setenv` or PowerShell `$env:` form would be lost there. The section goes after the skill's YAML frontmatter, and the opt-in footer's example commit uses the prefix too. `git_env_prefix: ""` turns it off; with the footer also off the skill passes through untouched. `scripts/qa/git-master-attribution-e2e.mjs` gains the prefix checks and a prefix-off scenario. Review #10496 round 2: `applyOnboardingScan` passes the written-path set from `applySetupStages` into its stale guard, so an apply's own credentials write no longer makes its provider stage stale. Covered by the every-stage apply test with a custom-provider key (scan-component.test.ts), which failed before the fix with `kind: "stale"`. The engine-store path (AuthStorage.modify) makes no auth.json backup, unlike the CLI writer; it only adds providers that are absent and never edits an existing entry. ## 2026-10-18 - Onboarding "understanding you" over session digests (#10480) `omo.onboarding.understand {scanId, model, consent: true}` runs the existing facts extractor (`launchFactsInProcess` and its `record_fact` tool) over a finished scan's session digests and each project's AGENTS.md, one step per project (single-session projects are read together in one step), on the model the caller passes. It answers `{understandId}` and pushes `omo.onboarding.understand.event` frames: `step_started` / `step_done` / `step_failed` with a step label such as "Read 12 recent sessions in omo", `fact`, `budget`, and a final `done` carrying the candidates; every frame carries `bytesRead`, `toolCalls` and `elapsedMs`. Without `consent: true` the request is refused. Budgets: 24 `record_fact` calls, 240 KB read, 90 s total, 15 s per step, at most 12 candidates, each backed by at least two source sessions; at a cap the run ends with what it has. A failed model call retries once, then ends with `done {fallback: "scan_only"}`. `omo.onboarding.understand.skip {understandId, project}` and `.stop {understandId}` cancel the running step. Candidates are returned only: nothing is written to memory, and each step's scratch run directory is removed. The facts launch path gained two opt-in inputs for this (a pre-serialized payload and a tool-call cap); the background facts extractor is unchanged. ## 2026-10-18 - The onboarding scan streams projects and sessions (#10478, #10479) `omo.onboarding.scan` now ends with two more sources, `projects` and `sessions`, read by the engine session-history module (`scanSessionHistory`) after `omo setup`'s sources and before the final `done`. A project item is `{id: , kind: "project", state: "found" | "imported", detail: }`; a session item is `{id: <sessionKey>, kind: "session", state: "found", detail: <title>, project: <cwd>}`. Each source's `source_done` carries `{found, read, cap: 5000}` (the per-source transcript cap), and the session digests are stored under the scan id in the engine state dir for the understanding stage. The path stays programmatic: no model is read and no socket is opened. ## 2026-10-18 - Onboarding apply refuses stale targets; the migration scan goes lazy (#10496) Review #10496 on #10478, in one delta. `omo.onboarding.apply` re-reads every requested stage's targets and compares content hashes against what the scan read: a change since the scan answers `{kind:"stale", reason, paths}` and writes nothing (a mid-apply change refuses that stage via `SetupStaleError`), and a retained scan older than ten minutes answers stale with the expiry reason. Credential additions now ride the engine's own store: the shell captures `modelRegistry.authStorage` at `session_start` and writes through its `modify` under the store's proper-lockfile lock, so a token refresh that lands mid-apply merges rather than reverts, and with no store the apply refuses instead of an unlocked overwrite (`omo setup` keeps its direct writer and is unchanged). The TUI migration inventory now loads lazily - once, only after an onboarding claim succeeds, never in `register()` - so every session that never onboards stops paying the scan's ~200 ms of startup. The onboarding skill keeps a hand-read fallback for harnesses the scan does not detect (Claude Code `~/.claude` files, Codex `config.toml`) while the inventory stays the source of truth for what it covers; the scan-failure `done` event documents its `reason`; a model-choice write failure warns through the apply reply's `notices` instead of `process.stdout`; and the one-implementation guard is now a behavior test (the injected inventory sentence equals the shared scan's own output) instead of a source grep. ## 2026-10-18 - `omo.onboarding.scan` / `omo.onboarding.apply` RPC (#10478) The new `onboarding-scan` component serves `omo setup`'s detection over the engine RPC. `extension_request omo.onboarding.scan {includeCustomProviders?}` answers `{scanId}` and then pushes `omo.onboarding.scan.event` frames: `source_started`, one `item` per row, `source_done` with `counts` (or `source_failed` with `reason`) per source, and a final `done`. `omo.onboarding.apply {scanId, stages}` runs the same writers `omo setup` runs for the named stages, once per scan. Custom providers stay off unless requested. The path reads no model and opens no socket, and `scan-component.test.ts` fails if it does. The implementation (`scan-runtime.ts`, which imports `omo-native/bin/lib/setup-stream.js`) ships as `extensions/omo-onboarding-scan.js` and is imported on the first request, so `omo.js` carries only the registration shell. The TUI onboarding's migration help now reads the same stream: the `onboarding` component runs the scan once at registration and appends a one-line `Migration inventory` (sign-ins, custom providers, skills, MCP - ids and states, never a key) to its injected context and forced-tour bootstrap, and the onboarding skill's migration lane starts from that inventory and `omo setup --dry-run` instead of telling the agent to read other agents' config files by hand (#10478). A failed scan fails open: onboarding runs without an inventory. ## 2026-10-18 - Session-history tests hold on Windows (#10479) Three session-history tests failed on the Windows CI runner and nowhere else. The case-variant test now expects one project on win32, where `normalizeProjectPathForComparison` folds case on purpose because Windows paths are case-insensitive. The relative-cwd test no longer derives its path with `relative(resolve(), workspace)`, which returned an absolute `C:\...` path when the checkout and temp dir sat on different drives; it records a literal relative cwd and maps it (and its resolved form) to a real temp directory through the injected `stat`, so only the absolute-path guard in `project-paths.ts` can drop it, on every platform. The owner-only mode assertions (0o700 / 0o600) run only off Windows, which has no POSIX permission bits. No production code changed. ## 2026-10-18 - Agent-session discovery moves into the engine (#10479) Project and session discovery from Claude Code (`CLAUDE_CONFIG_DIR` or `~/.claude`), Codex (`CODEX_HOME` or `~/.codex`) and omo CLI session histories now lives once in the engine, under `src/components/onboarding/session-history/` (package export `./onboarding/session-history`), ported from the desktop server's `AgentSessionScanner` with its caps unchanged: newest-first, 5,000 transcripts per source, 20,000 discovery and metadata operations, 64 MiB and 100,000 metadata records per source, and the importer's 100 transcripts, 4 GiB and 100,000 records per call. The recent-session window stays 30 days by default and is a parameter (`recentWindowMs`). `scanSessionHistory` yields the onboarding scan event shape (`source_started` / `item` / `source_done` / `source_failed` with `counts: {found, read, cap}`) for the `projects` and `sessions` sources, and writes one digest per session (first request, tools used, files changed, outcome, at most 4 KB) to `<state dir>/onboarding/scans/<scanId>/digests.jsonl` (0700/0600); events carry only the digest size. Discovery reads files only: no model call and no network I/O. The desktop scanner's tests are ported as parity tests; the RPC registration is #10478. ## 2026-10-14 - Preserve planning requests across same-process session transitions The task skill-invocation tracker hands authenticated request, invocation and plan-artifact records to replacement trackers keyed by session ID. Reload, new, resume and fork transitions retain the prior session's evidence; quit and unknown shutdown reasons discard it. Extension-injected inputs still cannot authorize review, and ulw-execute still forbids review. The adoption marker is cleared on shutdown so returning through the same tracker also restores evidence. The new same-tracker regression failed before this correction; focused tracker tests and adapter typecheck passed afterward. This is an in-process handoff, not persistence across application restarts. The handoff store lives in its own module, `skill-invocation-handoff.ts`. A generation takes a record when it adopts it, and the store keeps at most 256 sessions (oldest first out), so sessions the user left and never revisited cannot pile up in a long-running host. A forked child gets a new session id and does not inherit the parent's approval; only returning to the parent restores it. The reload case was proven on a real senpi 2026.10.13 RPC host: with `reload` between two plan-reviewer spawns, this build allowed the second spawn in 2 of 2 runs while dev denied it in 2 of 2 (senpi keeps the extension module across a reload, so the module-level store is shared). ## 2026-10-17 - `omo --help` no longer runs the OpenCode config migration (#10428) Thanks to @bluet for the report and the clean reproduction, and to @twotnguyen for #10433, which first routed `--help` around the extension. Senpi loads every extension to list their flags for `--help`, and it builds the runtime for `--list-models` and `--list-tips` before exiting, so `config-startup` ran the legacy migration on those launches and moved `~/.config/opencode/oh-my-openagent.json` into `~/.omo/migration-backup-*` before the user ever started a session. A 4.19.x OpenCode plugin then ran on its defaults. The migration guide says the move happens the first time omo starts a session. `config-startup` now skips its migration and config notices when the engine was started only for `--help`/`-h`, `--list-models` or `--list-tips` (`metadata-launch.ts`). The argv walk mirrors senpi's `cli/args.js`: an option's value is never read as an option (`--name -h` still starts a session), a `--multi-session`/`--listen` host always migrates, and arguments after `--` are message text. Every launch that can start a session migrates as before. `metadata-launch.test.ts` runs the real migration over a temp home for each case and checks the legacy file's bytes and mtime on metadata launches. ## 2026-10-12 - Thread QA rides the neutral senpi qa-shared helpers (#10033) The thread-tools harness and runner no longer import senpi's app-server-named QA library. `scripts/qa/thread-tools/lib/harness.mjs` resolves `scripts/qa-shared/lib/{env,fake-model,cleanup}.mjs` from the senpi checkout (the prerequisite extraction in senpi #3177) and `run-all.mjs`'s legacy precondition checks the same path, so the suite keeps its coverage instead of silently skipping once the old helper location is removed. The ulw-loop delegation guidance and `docs/reference/mass-ulw-protocol.md` stop naming the retired protocol; the DAG widget's non-TUI suppression test uses the rpc mode fixture. No behavior changes: the harness still drives the real `--mode rpc --multi-session` host. ## 2026-10-12 - Git worktrees can share the main checkout's memory (#9659) `memory.agent: "auto"` hashed the session directory, so every git worktree of a repository got its own, empty memory. The new `memory.auto_identity` key (`"path"` by default, so nothing changes unless it is set) accepts `"git"`: memory-core `identity/git-layout.ts` walks up to the nearest `.git` entry and, when it is a linked worktree's `gitdir:` pointer whose admin directory has a `commondir`, maps the session directory onto the same relative path under the main working tree. The main working tree is used only when git records it: the parent of a common dir named `.git`, `core.worktree`, or the common dir itself for a `core.bare` repository. The admin dir's `gitdir` back-pointer must name this checkout's `.git` (compared by real path, so a worktree opened through a symlink still maps), which rejects forged or stale pointers. The main checkout therefore keeps the identity it already had and every worktree joins it. A `.git` directory, a pointer without `commondir` (submodules), a `--separate-git-dir` clone without `core.worktree`, or any unreadable or malformed file keeps the path-derived id; nothing spawns `git`. memory-core exports `resolveAutoIdentity(cwd, env, mode, probe?)` as the one entry point for the auto identity; `bindSession` and the side panel use it for an auto agent, and `identity-adoption.ts` is unchanged, so a session already bound to its per-worktree identity is rebound to that record rather than failing closed. ## 2026-10-11 - The control confirm drops its redundant time floor (#9967) `control-confirm.ts` no longer refuses a confirm under 3 s of budget: the service facade already throws before asking when under 8 s of run time is left, so the component check never fired in production. The near-duplicate "RPC-mode confirm frame never answered" test is removed; "a client that never answers" keeps that contract. ## 2026-10-11 - The browser skill rides on every ulw-research invocation (#9958) The skill-pointers companion list for `ulw-research` was `ultimate-browsing` alone, and its instruction asked to arm "every browsing lane or member" with `load_skills` - a team member carries no `load_skills`, and `ultimate-browsing` routes plain page reading to headless extraction, so a research run that loaded the companion still read its sources through fetch. `browser` is now the first companion: its pointer tells the orchestrator to read the `browser` skill in the same turn as `ulw-research`, arm every web lane with `load_skills: ["browser"]`, and name that `SKILL.md` in every web member brief. The `ultimate-browsing` companion stays for the hosts the user's browser cannot open and no longer mentions members. The companion rides behind the keyword, `/skill:ulw-research`, expanded-block and queued paths like the existing one, is skipped only when the input already carries the `browser` skill, and the `skill-pointers-e2e` scenarios assert the hidden `omo-browser:skill-pointer` message on the live engine. ## 2026-10-11 - The computer-use component confirms and revokes the foreground-control grant (#9651 B5b) `components/computer-use/control-confirm.ts` is the human confirm behind `desktop.control.acquire`. It shows upstream's title "Allow foreground computer control?" with the model's reason and the revocation rules. A headless context (`hasUI === false` or no `ui.confirm`) never prompts, and a refusal, an abort or a client that never answers means no grant. The confirm is bounded at 45 s, under the default 60 s run budget, and is capped further by the time a shorter run has left. With under 8 s of the run left (the 5 s kept for the grant and the action, plus 3 s to answer), `acquire` throws with that reason instead of asking, and the confirm itself declines to prompt with under 3 s as a backstop. An unanswered confirm therefore reports `{ active: false }` rather than a run timeout. The timeout is also handed to `ui.confirm`, so senpi's rpc dialog clears its pending request and a desktop client can show the deadline. `registration-support.ts` `wireComputerControlEvents` revokes the grant on `agent_end` and on `session_shutdown` (before `session.close`), and so does a failed or interrupted run. A revoke is sent only while a grant this host asked for may be live, so a turn without one adds no no-op event to the engine's audit. The revoke is written to the engine's serial queue without the run waiting for it, so a failed run still settles at its own deadline. `scripts/qa/computer-control-rpc-e2e.mjs` proves this through senpi's real `--mode rpc` on the engine's fake backend: - `no-answer`: the confirm never gets an answer, and no `control.grant` reaches the engine. - `declined`: no grant. - `approved`: the grant is audited, and the end of the turn revokes it. This is the positive control. ## 2026-10-11 - The engine probe names both waits and loses a dead phase (#9742 follow-up) The computer-use engine probe's timeout phase names where the handshake stopped. Its `spawned, requests not yet sent` phase could never be reported: the timer is armed inside the Promise executor and both `stdin.write` calls ran synchronously later in that same executor, so by the time any timer callback could fire the requests were always already sent; a write that threw would reject the promise outright and still never surface the phase. The branch and the `requestsSent` flag are gone. The neither-reply label now reads `requests sent, awaiting engine.hello and capabilities`, which is what the probe actually waits for. The phase tests assert the exact timeout message instead of a substring, a new in-process test covers the reachable-but-untested out-of-order engine that answers `capabilities` before `engine.hello`, and the `omo-computer-use` bundle is regenerated. ## 2026-10-10 - Bindings take whatsapp as a native platform name A WhatsApp connector binds its chats through the session-gateway store, but the binding contract refused the platform: `bindings.ts` `BINDING_PLATFORMS`, the `thread_bind` tool schema (`contracts/params.ts`), and the store's `bindings.platform` CHECK all stopped at `custom`. The first admitted WhatsApp message would have been refused by core's thread store. `whatsapp` is now a binding platform in all three spellings. Because SQLite cannot widen a CHECK in place, schema v7 rebuilds the `bindings` table with the widened list, carrying every column over verbatim and recreating `bindings_one_active_thread` and `bindings_session` before the old table drops. The rebuild runs with foreign keys off so an extension table referencing `bindings` is neither cascade-deleted nor able to block the migration, and the AUTOINCREMENT high-water mark is carried over so a deleted newest row's key is never reused. Before the version bump commits, `migrate()` runs `PRAGMA foreign_key_check` from TypeScript and throws (rolling back to v6) if the step introduced a violation referencing `bindings`; the `foreign_keys` pragma is restored to its prior value afterwards. A store migrated from v6 keeps its live bindings and accepts a `whatsapp` bind (`store-v7-whatsapp.test.ts`); the tool schema takes the native name and the store keeps it (`bindings.test.ts`). ## 2026-10-09 - A suspended background child's row stops spinning and counting (#9350) The live task widget (`components/task/status-row-format.ts` `formatLiveBackgroundRow`) took its spinner frame and elapsed time from the current clock for every row. A parked child therefore read `⠹ ... · suspended · 354m 31s`: it looked like it was working, its time kept climbing, and the row said neither why it stopped nor what the user could do. It also checked residency only, so a child a host parked with a `suspension_reason` while still marked resident rendered as `running`. The row now uses the side panel's rule for a child that has not finished (`suspension_reason`, or any residency other than `resident`); a finished child, which is `evicted` or `disposed`, keeps its own status in `/tasks` and the widget. A suspended row shows a still `‖` mark instead of a spinner and no running time: the record has no park timestamp (`updated_at` moves with every revival attempt), and a climbing timer is what made it look alive. It names the cause (`parent session restarted` when no reason is recorded, otherwise the recorded reason in words; `revival deferred: <reason>` carries the deferral reason), then what actually brings it back and the user's one action, decided from the same facts the engine uses: `resumes on session restart` for most parked children, `... or a message` only for a running daemon-hosted child at `rpc_detached` (the one kind `task_send` revives), `resumes on a message` for such a child evicted while idle, `will not resume` for a host version mismatch, and for a deferred revival the engine's own outlook for its reason (for example `retried a few times, then marked lost`). Each is followed by `/task-kill to cancel`. Nothing watches for the cause to clear, so the row promises no more than that. `senpi-task` now exports `deferralOutlookFor` for this. On a narrow line it keeps only `/task-kill to cancel`, and a parked row gives its width to the child's name before its route. `status-ui.ts` no longer schedules the 250 ms repaint when every shown background child is parked, so a widget of suspended rows paints once. ## 2026-10-08 - task_cancel can release a finished child's residency (#9785) `components/task/engine.ts` forwards the lifecycle's new `parkTerminalResident` through the manager's destruction port. With it, `task_cancel` on a finished child that is still resident stops the child and parks the record, instead of answering "No change." The registry adapter (`residency-registry.ts`) now answers `ownsRecord`: a record is this engine's when its parent session is the engine's current session. Without that answer a handle-less record is never parked, so a sibling session's child in the same daemon is left alone. The engine side is described in `packages/senpi-task/changes.md`. ## 2026-10-08 - Gating questions are asked with `required: true` even when the model omits it (#9774) senpi's `required: true` on `ask_user_question` turns a timed-out, dismissed or unavailable answer into "No answer: do not take the action it gates. Keep that action pending and end the turn." The flag is opt-in per call, and in live QA `zai/glm-5.3` never set it (0 of 6 gate calls; #9775), so its unanswered ulw-plan gate still read "continue on your best judgment". The new `question-gates` component (`src/components/question-gates/`) enforces it from the plugin. One `tool_call` handler on `ask_user_question` and `request_user_input` sets `required: true` in place before senpi's tool runs; the agent loop passes the same arguments object to the hook and to `execute`. Gates are detected from the call itself: - **Primary:** a question header equal to one the skills now pin: `Approval` for the ulw-plan approval gate; `Authorize` for the final authorization block and for mass-ulw's scope, spend and irreversible decisions; `승인` / `권한` in Korean sessions. The match is exact, so Korean forks such as `권한 모델` are not gates. Every pinned header fits senpi's 12-character header limit: a longer one (`Authorization` is 13) is rejected by senpi before the hook runs. - **Fallback:** an option label starting with `approve` / `authorize`. Question text is never read, so a fork that only mentions approving something stays unflagged and still falls back to its recommended default. The flag is never set to false. Each forced call writes one `debug` line naming the tool, the header and the matched rule, with no question text. A gate state rule (a ulw-plan draft at `status: awaiting-approval`) was rejected: in run t4 the model asked the gate while its draft still said `drafting`. Known limit: senpi persists the arguments the model sent, so a gate question still pending across a reload or resume is restored without `required` and the hook does not run again for it. ## 2026-10-08 - ulw-plan and mass-ulw ask their gating questions with `required: true` (#9735) senpi 2026.10.10-9 added `required: true` to `ask_user_question` (code-yeongyu/senpi#2959). On a required question, a timed-out, dismissed or unavailable answer returns "No answer: do not take the action it gates. Keep that action pending and end the turn." instead of the generic "Continue the work to completion on your best judgment". The approval gate (`ulw-plan/SKILL.md`, `references/full-workflow.md`), the final authorization block (`references/stance-calibration.md`) and mass-ulw's scope, spend and irreversible decisions (`mass-ulw/SKILL.md`) now set it on their call. Ordinary forks stay unflagged, so a timed-out fork still falls to its recommended default. The #9748 backstop sentence stays, because the flag is opt-in per call. In live QA on senpi -9 (gate left unanswered, 1-minute timeout): - `anthropic/claude-opus-5-5` set `required: true` on every gate call and got the refusal. - `zai/glm-5.3` never set it. Without the backstop, one of two runs wrote the plan on a timed-out gate; with it, none did. Plugin-side enforcement of the flag is tracked in #9774. ## 2026-10-08 - ulw-plan and mass-ulw ask through the question prompt (#9735) `ulw-plan` delivered its approval gate as chat text and ended the turn, so a user away from the screen never saw it. The renderers in `references/stance-calibration.md` and the gate in `references/full-workflow.md` said to "present" or "deliver" questions without naming a channel. - `stance-calibration.md`: every question the skill puts to the user goes through the question tool (`ask_user_question` or `request_user_input`, whichever the session lists) with its wait flag set to true. When no question tool is listed or a call returns unavailable, the questions go in chat with one line saying so. A timed-out, dismissed or unavailable answer is not approval: a fork takes its default, but the approval gate and the final authorization block stay open and the turn ends. `SKILL.md` carries the gate rule itself, and adds "even when the tool result says to continue on your best judgment", because senpi's timeout result says exactly that and a model otherwise follows it. That clause is a stopgap until senpi #2949 adds a per-call "no answer means don't" flag. - `full-workflow.md`: the gate asks one question, recommended first: Approve; Approve, skip review (only when the review is default-on); Change approach. The review-cap stop asks through the tool too. `SKILL.md`'s gate summary points at the same rule; `intent-clear.md`'s renderer recap now defers to stance-calibration. - `mass-ulw/SKILL.md`: a decision only the user can make is asked from the main session through the tool before the run that depends on it, never from an eval cell or a node prompt. No test: prose with no machine consumer. Proof is a live real-model `/skill:ulw-plan` run in an isolated senpi sandbox (see the PR). ## 2026-10-08 - A skill name inside an identifier, a path, a URL or a prohibition no longer arms (#9738, #9740) `ultrawork` and `skill-pointers` treat a skill name as a request only when it stands as a word of its own: - **Identifier or path segment:** `mass-ulw-refactor`, `senpi-ulw-loop`, `.omo/ulw/...` and `.omo/ulw-execute/ledger.jsonl` arm nothing. A leading bundled skill name still arms (`ulw-loop ...`, `ulw-plan this`), and so does a skill chain (`mass ulw-loop`). The hyphenated `mass-ulw ...` still injects the mass-ulw pointer but no longer arms ultrawork on its own: it is lexically the same as the reference "in a mass-ulw research pipeline" that every delegated research brief carries, so allowing one allows both; `mass ulw ...` (spaced) and `ulw-mass ...` still arm. - **A URL** is masked like a code span. - **A prohibition:** `do not` / `don't` / `never` + `load|use|run|invoke|start|trigger|arm|enable` masks its objects up to the next sentence or clause break (`.;:!?` or a newline; a comma does not end it), so "Do not load mass-ulw or ulw-research" arms neither. A request that starts a new sentence still arms ("Don't use tmux. ulw this"), and so does a negation outside that verb list ("do not stop until done, ulw"). - **Delegated sessions:** `skill-pointers` now applies the same `readSessionRole` rule `ultrawork` got in #9602, so a task child, DAG child or team member never gets a pointer from its own brief. Telemetry records the new suppression reasons `identifier_reference` and `negated_mention`. Measured: upstream's replay of 83 stored delegated briefs went from 83/83 to 0/83 ultrawork arms (47 identifier, 36 negated). Over 14 days of local root sessions the identifier rule removes about 926 arms, nearly all automated text naming lanes and paths; the 8 typed requests that open with a skill name still arm. Tests: `ultrawork-references.test.ts` and the new `skill-pointers-suppression.test.ts` cases fail on `dev`; removing the identifier guard, the negation mask, the URL mask, the pointer's trailing guard, its chain allowance or its delegated-session guard each fails them again. Live: `scripts/qa/skill-pointers-e2e.mjs` gains identifier-reference, negated-mention, lead-relay and request-after-prohibition scenarios. ## 2026-10-05 - A relayed report or a quoted mention no longer arms ultrawork or skill pointers (#9600) `skill-pointers/strip-quoted-regions.ts`, the masking that both `ultrawork` and `skill-pointers` run before they look for a keyword, now also hides text that is someone else's: - **A relayed message:** one that opens with a sender header is masked whole. The header is a bracketed tag such as `[REPORT]` or `[a -> b]`, or `Name (id), recipient:` / `Name (id) to recipient:`. A report pasted into a root session that describes a bug and so mentions `ulw`, `mass ulw` or a skill name used to arm the directive and inject pointers there. - **A Markdown block-quote line** (`> ...`). - **A span inside straight or curly double quotes** on one line. Typed asks keep arming: the keyword at the end of a Korean sentence, `mass ulw research ...`, a short mid-message `..., ulw, and ...`, and a leading `ulw <task>`. Measured over two weeks of local sessions, a third of all arms were relayed reports. A first-or-last-word rule or a slash-only rule would instead have dropped most typed arms, because mid-message is the most common typed form. Live: `scripts/qa/skill-pointers-e2e.mjs` gains a relayed-report, a quoted-mention and a Korean sentence-ending scenario. It now judges only the session transcript, because the engine's runtime snapshot under the agent dir ships docs containing `<ultrawork-mode>`, which made every whole-dir check pass or fail regardless of the session. Tests: `ultrawork-arming.test.ts` (relayed and quoted inputs do not arm; four typed forms still arm) and `skill-pointers-suppression.test.ts` (relayed and quoted mentions inject no pointer). Both fail on `dev`, and removing any one of the three masks fails them again. ## 2026-10-06 - The slash picker lists each bundled skill once (#9648) `components/skill-commands/autocomplete.ts`: the top-level `/` list showed every bundled skill twice, as its bare alias (#9042) and its `skill:<name>` row. The alias now takes the `skill:<name>` row's place, so each skill is one row and senpi's ranking of everything else is unchanged; an alias whose skill row is not on the page is still offered at the end. A bare `/` is left as senpi lists it (senpi lists no `skill:` rows there). Typing `/skill:` still lists every skill under its `skill:` name. A skill whose bare name a same-named template or command shadows keeps its `skill:<name>` row, the only way left to reach it. Submitting either form is unchanged: the bare form is still rewritten to the `/skill:` form and recorded as a human invocation. ## 2026-10-05 - Live fallback QA covers process children and a turn near compaction (#9582) `scripts/qa/task-runtime-fallback-e2e.mjs`: - `limit-after-tool` now requires the tool call before the in-session hop on every process runner. The child-process `N/A` is gone now that a process child carries its own chain. - New scenario `limit-near-compaction`: the same tool-then-limit turn, but the tool-call response reports a context past the compaction threshold of a 128K window (114K input; senpi refuses to start a session under its start minimum, about 52K here and more where more tools load). The engine's pre-retry compaction therefore runs on the spent model first, and the child must still end on its fallback model with the settings file byte-identical. - The driver runs on Windows too: the process table comes from the CIM process list instead of `ps`/`pgrep`, and `senpi` resolves through PATHEXT. `task-runtime-fallback-mock-provider.ts` serves the new model. `task-runtime-fallback-e2e.windows.test.ts` runs the child-process runner through `user-fallback`, `limit-after-tool` and `limit-near-compaction` on Windows, where every task child is a process child. ## 2026-10-07 - A bundled visualize skill for inline HTML pages (#9700) Agents can show a self-contained HTML page inline in a thread (senpi `show_html_page`, the desktop `html_preview` / `html_render`), but nothing told them how to make the page good. - `skills/visualize/SKILL.md`: a short router. Figures come from `data-scientist` (DuckDB or Polars, every number traceable to its query, chart choice from its `references/visualization.md`) and design from `frontend`. The skill itself owns only what is particular to an inline page: no network, the host's theme tokens, fluid width, a figure that reads with scripts off, designed empty states, fallbacks for pages opened outside the app, axis labels kept out of a stretched SVG, and render-and-look in both themes at 390 px and the reply width before showing. - Registered as a native senpi skill: `plugin/scripts/native-skill-sources.mjs` (+ test), `skills-sync.test.ts` (expected and native names), telemetry `BUILTIN_SKILL_NAMES`, and the skills AGENTS.md tables. ## 2026-10-07 - Lost background revival notifies the parent after session start (#9498) `components/task/completion-bridge.ts` observes the nonterminal-to-`lost` edge inside a store mutation, as well as normal terminal transitions. Bounded revival retries can exhaust after startup notification recovery has returned; the old transition-only bridge would persist `lost` without waking the parent until another session start. The normal notifier still owns epoch deduplication and delivery. Mutating an already-lost record never sends another notification. `completion-bridge.test.ts` starts a background child and applies the real reconciliation loss reducer twice through the observing store. The parent gets exactly one lost notification; the pre-fix bridge sends none. ## 2026-10-07 - Memory maintenance runs write receipts, unrecoverable runs are quarantined, and recovery is kill-tested (#9689) Reflection and dream runs recorded their outcome only in per-run files, and startup reconciliation had three dead ends: invalid terminal timestamps threw a `TypeError` on every pass, an unreadable ledger kept the reservation forever, and a supervisor that died after its child committed a valid tip failed the run and deleted the worktree. - `packages/memory-core/src/receipts/`: `receipts.jsonl` under the identity's runtime dir, appended under its own `receipts` lock. `appendMemoryReceiptOnce` dedupes by `(kind, runId, event, generation)` or `(facts, batchId, event)`. `readMemoryReceipts` returns newest first and counts a partial trailing line. `maybeKillAt(point)` SIGKILLs the process when `OMO_MEMORY_KILL_POINT` names the point (TerminateProcess on win32); it is a test seam only. - `components/memory/receipts-port.ts`: `emitMemoryReceipt` writes after the durable artifact and only warns on failure. Emitters cover `launched` (first attempt), settlement (`merged`/`no_changes`/`failed`), abandonment, quarantine, recovery, and every facts terminal write. `final.json` and `abandoned.json` carry `generation`. - `worker/run-receipt-backfill.ts`: the reconciliation scan rebuilds a missing receipt from `final.json`, `abandoned.json` or `quarantined.json`. A sentinel's own kind, trigger, origin and generation win, so a pre-ledger sentinel needs no ledger. - `worker/run-reconciliation-prelaunch.ts` (moved out of `run-reconciliation.ts`): under a launcher proven dead on this host, four cases quarantine the run: - invalid generation timestamps; - an unreadable ledger with no terminal artifact; - a run dir past the launch window with no prelaunch file; - a terminal claim that cannot be read (`RunTerminalClaimUnrecoverableError`). memory-core `reflection/quarantine.ts` writes `reservation.quarantined.json`, then `quarantined.json`. The reservation is released, and no run file is moved or deleted. A launch interrupted before its ledger keeps its run dir. Its worktree is discarded, and a pre-ledger `abandoned.json` (`launch_interrupted`, identity fields copied from the held reservation) is made durable before release; before this, the run dir was `rm`-ed. - `worker/run-finalization.ts` `recoverUnpublishedWorktreeTip`: when the supervisor exited without an outcome, a tip that passes `validateCompletion` is published as a success marked `recoveredFromWorktree`, followed by a `recovered` receipt, and then takes the normal merge path. The launcher (`SUPERVISOR_EXIT_PREFIX` errors only) and `reconcileDeadSupervisor` (child dead or absent) both use it. Reconciliation settling another process's matching outcome also writes `recovered` first. - Kill points: `runner-execution.ts` (after-reserve, after-worktree), `create-run-worktree.ts` (after-prelaunch), `memory-run-supervisor.ts` (after-child-exit), `run-finalization-git.ts` (after-validate, after-merge), `run-finalization-settlement.ts` (before-receipt). - `commands/doctor-receipts.ts`: the `receipts` and `quarantined-runs` checks and their `--json` fields. `abandoned-runs` skips `launch_interrupted`. - Tests: - `run-crash-recovery.e2e.test.ts`: a driver child (`__fixtures__/crash-driver.ts`, explicit env) runs the real runner, supervisor and mock model child, is killed at each point, then reconciles in a second child. 11/11 pass, also with the kill point set in the test process's env, and 0/11 on the pre-change source. - `run-quarantine.test.ts`: 9 cases, including a live-launcher control and a finished-run control. - `run-receipts.test.ts`, `facts-receipts.test.ts`, the memory-core receipts tests, and the doctor cases. ## 2026-10-07 - The memory file list in the prompt is bounded by recency, count and bytes (#9687) The compiled memory block ends with `<external_projection>`, which named every memory file outside `system/` in name order with no limit. A real long-lived corpus measured 3,281 files and 157,834 bytes (about 39K tokens) on every turn, with 1,962 names on one line. - `components/memory/prompt.ts`: the handler passes the identity's projection limits into `MemoryBlockCache.compile`. `wiring-static.ts` reads them from the memory settings; `projection-limits.ts` merges a per-agent `agents.<name>.projection` over the base. - `commands/doctor-projection.ts`: `/doctor` gains a `projection` line with the names shown and omitted and the byte size against the limits. It is `warn` when names are omitted or no listing fits the byte budget. `doctor-runtime.ts` adds it after `tokens`. - Tests: - `prompt.test.ts`: a per-directory limit of 1 shows one name and counts the other two. - `doctor.test.ts`: the in-limits, omitted and overflow lines. ## 2026-10-07 - The Windows task e2e waits for the child's completion instead of reading once (#9481) `scripts/qa/task-rpc-e2e.mjs` checked `completion_push_arrives` by reading the task records once, right after scenario A's parent session returned. On a slow Windows runner the child's completion write can land just after that read, so the check failed with "no completion recorded" while every other check passed (#9222, #9331 twice, #9529, #9655). - `scripts/qa/task-rpc-e2e-scenarios.mjs`: new `waitForProcessCompletion(stateDir, timeoutMs = 60 s)`. It waits for a process-mode record to reach `completed` through the existing `waitForRecord` (file watchers plus a 250 ms re-read, with a read after the watchers start so a write in between is not missed). Past the deadline it returns the process tasks' last statuses. - The driver uses it, and the FAIL reason and facts now carry the last observed status. - `task-rpc-e2e-scenarios.test.mjs`: - a record that is still `running` when the check starts and turns `completed` right after: the old single read reports no completion, and the wait reports it; - a child that never completes: the wait fails at its deadline with `lastStatuses: ["running"]`. ## 2026-10-06 - The memory nudge no longer walks the whole memory history on every prompt, and the memory repo gets packed (#9667) Every prompt's `before_agent_start` asked git whether this session had saved memory yet, with `git log --grep` over the identity's entire history. Commits set `gc.auto=0`, so the repo was never packed. A long-lived identity measured 11,821 commits and 41,588 loose objects (632 MiB) next to a 3.6 MiB pack. The query took up to 2.2 s per prompt on an idle machine and passed the 30 s git timeout under memory pressure, and the timeout then escaped the extension as a raw `Extension omo.js error: git log ... timed out after 30000ms` stack in the TUI. - `components/memory/nudge-wiring.ts`: each session keeps the HEAD it last checked and the turn of its newest save. The first check reads only commits since the session began (its header, else its oldest entry, minus one hour), stops after 20 matches and has a 5 s git cap. Every later check reads only `<checked HEAD>..HEAD`. On that same repo the check takes 17-23 ms, against 0.33-2.2 s before. - `components/memory/prompt.ts`: a failed or timed-out notice input (the nudge count or the soul notice) gives that turn no such notice and is reported through `onNoticeInputFailed`, which `wiring-static.ts` sends to the component logger as a warning. Nothing is thrown into the extension, so nothing reaches the TUI. - `components/memory/memory-maintenance.ts` (new), scheduled from `afterBind` in `wiring.ts`: 30 s after a session binds, one background pass per identity. The pass holds the identity's new `memory-maintenance` lock (`memory-core` `memoryMaintenanceLockPath`), and a session that finds it held skips rather than waits, so many sessions sharing one repo produce one runner. The 12 h stamp (`omo.maintenanceAt` in the repo's own config) is read and written under that lock. The pass is also skipped below 2,000 loose objects or when the repo does not exist yet. The timer is unref'd, and session shutdown calls `dispose()`, which cancels a pending pass and stops a running git (SIGTERM through a new `signal` on the git exec, surfaced as `GitAbortedError`). Failures are logged, never raised. `gc.auto=0` stays, so no commit is held up by a repack. - `memory-core` `GitMemoryRepo`: `log()` takes `since` and `timeoutMs`. New `maintain()` runs git's `loose-objects` maintenance task, then `prune-packed`. Both only remove an object that a pack also holds, so concurrent commits are safe. (`incremental-repack` fails on a repo without a multi-pack-index and is not used.) On a copy of the repo above: 41,596 loose objects to 0 in 29.7 s, one 38.9 MiB pack, `git fsck --connectivity-only` clean. Tests: - `prompt.test.ts`: a nudge timeout leaves the turn with its memory block and no nudge, and reports the failure once. A failed soul notice keeps the nudge. Both fail before this change. - `nudge-wiring.test.ts`: a resumed session's save from an earlier run still resets the count, and a save buried among 50 commits of another session is seen by the next check. - `memory-maintenance.test.ts`: a repo full of loose objects is packed with every commit still readable. A commit made while a pass runs survives. A second process within the interval does not run again. Ten sessions starting together pack once. A lock held by another process means a quiet skip. A session that exits before its pass runs leaves the repo untouched. A loose object no commit references yet (a writer mid-commit) survives the pass. A repo that does not exist yet is a quiet no-op. ## 2026-10-06 - A delivered message tells the receiver who sent it (#9660) The gateway drain now hands the receiving session the sender and the message as written, apart from the provenance header: - `deliverySender` in `gateway/provenance.ts` builds the sender: `agent` with the sending session's id and its name at send time, `command_line` for `omo thread send`, or `external` with the platform and author. - `drain.ts` passes it with `display_text` to `admitExternalMessage`. - `thread_send` and `thread_handoff` give the gateway the caller's current session name (`callerName`, from `pi.getSessionName`). Without it, a live run labelled the message only "Sent by another agent", because the drain had nothing but the session id. The model still reads the `[OMO_GATEWAY v=1 ...]` header. senpi's terminal renders the sender as "Sent by another agent · <name>" or "Sent from the command line" (senpi#2819); a senpi without that support ignores the two fields. Tests (`engine.test.ts`): - a named and an unnamed session sender; - a command-line sender. Dropping the sender, or naming a session by its id, fails them. ## 2026-10-06 - The thread tools switch a terminal session's model and level and interrupt its turn (#9660) `thread_set_model`, `thread_set_reasoning` and `thread_interrupt` failed with `unsupported` against every terminal session, which is most live sessions. The client refused every command outside a fixed read-mostly list, and the terminal endpoint did not take them either. **What changed** - `live-surface.ts` asks a terminal once for `get_protocol_info` and remembers the `commands` it lists. A command the terminal lists is sent; any other is still refused as `unsupported` before a connection opens. A terminal on an older engine lists none and keeps the old behavior. Its refusal now says the terminal runs an engine from before terminal session controls, and how to get them. - `thread_list` rows carry `controls`, from `endpoint-controls.ts`: what a caller can do to that thread (`send`, `read`, `rename`, `set_model`, `set_reasoning`, `interrupt`). A host takes all six; an older terminal takes the first three. **Tests** (`live-surface-tui.test.ts`, against a terminal endpoint that answers as senpi's does): - a model switch, a supported and an unsupported level, an unknown model, an interrupt mid-turn and one on an idle session; - each row's `controls`, next to an older terminal and a host; - reverting to the fixed command list fails the test. ## 2026-10-05 - An idle gateway store no longer keeps its worker thread alive Every session that touches the gateway store (each terminal with a control endpoint, and every sender) started one store worker thread and kept it until the session ended. A measured idle worker retains 2.94 MB: an empty Bun worker plus the bundled store code and SQLite. That put the terminal control endpoint's idle cost at about 4.1 MB against the 3 MB budget. `store.ts` now retires the worker after `GATEWAY_STORE_IDLE_RETIRE_MS` (60 s) with no store call in flight. The worker is detached first, so a call made from that moment starts a fresh worker instead of posting to the closing one. Only then is its database closed and the thread terminated. A call holds the worker from its entry to its settle, the open included, so a worker with a request in flight never retires and no request is failed or replayed by a retire. The next call pays one open, about 12 ms, and the fresh worker gets the extension registrations restored as after a crash. Tests (`store-idle-retire.test.ts`; the last one in `component.test.ts`): - after the idle interval the worker thread exits, and the next write lands on a fresh worker that keeps the registrations; - writes made before, during and after a retire each commit exactly once, in the order they were made. A retire that terminates without detaching first fails this; - a peer's send to a session whose worker retired is `started` and applied; - `dispose()` called while a worker is retiring resolves only after that worker has exited, so a caller that removes the agent directory next never races an open database handle; - an unreadable legacy mailbox is retried at every store open, and now that the store reopens after each idle minute, its warning is logged once per session rather than at each reopen. ## 2026-10-04 - Package-local test runs get the hermetic home (#9578) `bunfig.toml` preloads `../senpi-task/test-support/warm-lazy-runtime.ts`, so `bun test` from inside `packages/omo-senpi` gets the same hermetic home, agent dir and warmed lazy barrels as a repo-root run. Before, a package-local run had no preload at all: it used the real home and failed 17 entry-renderer tests on the unwarmed pi-tui barrel. ## 2026-10-04 - ulw-plan no longer names a delegation category that does not exist (#9561) The `ulw-plan` skill's delegation-router row listed a `git` category that no edition ships (`SKILL.md`), and its reference copy (`references/full-workflow.md`) also still listed `deep`, which was split into `deep-low` and `deep-high`. A plan that followed either name sent `task(category: ...)` to a category the user's session does not have. Both rows now list exactly the built-in categories. ## 2026-10-04 - A runtime advisory no longer makes a failed reflection child look like a provider outage (#9553) On Windows every failed memory reflection child was recorded as "refused by its provider", and automatic reflection parked for hours. `worker/model-miss.ts` `providerFailureDetail` took the first stderr line as the provider's answer. On a Bun host on win32 that line is Bun's `child reaper unavailable under Bun on win32: ...` advisory, printed once per terminated worker thread before anything the child says. The shared retryable-error classifier matches the bare word `unavailable`, so any failure became `provider_unavailable`, the real cause was hidden, and every candidate in the chain was marked as refused. The detail is now the first line that is not an advisory: a runtime reporting on its own host (`... under Bun/Node/Deno ...`), or a line that announces itself with a log-level prefix (`note:`, `info:`, `warning:`, ...). The first real line still decides, which matters because senpi prints the provider's answer first and a stack (`Error: ...`) may follow it. Tests (`model-miss.test.ts`, the exact advisory text): - advisory then an unrelated error: the child's own failure; - advisory then a real 429: a provider outage named by the provider's line; - advisory alone: no outage; - an unknown `note:` advisory saying "temporarily unavailable" then a real error: the error decides; - a provider sentence then a stack `Error:` line: the provider's sentence decides. **Known limit:** an advisory with neither a runtime marker nor a log-level prefix, and nothing after it, is still taken as the detail. There is no better line to report then. ## 2026-10-04 - Live QA: a task child's fallback after a tool call, and the user's settings untouched (#9512) `scripts/qa/task-runtime-fallback-e2e.mjs` gains a `limit-after-tool` scenario. The child's primary model makes a real `bash` tool call, then hits a usage limit on the request carrying the tool result, so the fallback has to happen inside the running turn. Every scenario now also records a sha256 of the sandbox `settings.json` before and after the run, and `limit-after-tool` fails unless they match. On the host-session runner the scenario requires the tool call (`tool_execution`) before the in-session hop (`retry_fallback_applied`), and the record's model to end on the fallback. On the per-child process runner the tool check reads `N/A`, because that runner cannot carry a per-session chain and falls back at the manager level instead. `task-runtime-fallback-mock-provider.ts` serves the `limit-after-tool` model. ## 2026-10-05 - A store extension can declare a session op its component calls but the model never sees A session-callable op gave the model a tool (`ext_<extension>_<toolName>`). Some ops take a session id the session's own component already knows, while it assembles its prompt: a digest cursor write, a membership read. Declaring them session-callable would have handed the model tools it must not have. Leaving them public would have let any caller forge the session id. `SessionCallableOp` now has an internal form, `{ op, internal: true, parameters, targetArg?, description? }`. The caller is stamped and the public `extensionCall` refuses it with `caller_not_allowed`, exactly as for a tool op. It is reachable only through `extensionSessionAwait` with the caller the component knows, and `sessionCallableOps` leaves it out, so no tool is ever built for it. Registration refuses an internal entry that declares `toolName`, `await` or `wake`. Tests: - a session that declares a tool op and an internal op gets only the tool op's tool; - the public `extensionCall` refuses an internal op, and the op never runs; - `extensionSessionAwait` runs it with the engine caller stamped, and refuses a forged caller field; - an internal entry with `toolName`, `await`, `wake` or `internal: false` is refused, and the same entry without it registers. ## 2026-10-03 - Ultrawork routing item 4 carries a size test before it fans out (#9499) - `skills/ultrawork/SKILL.md` "Finding things" item 4: "Architecture / flow / blast radius across more files than one wave can read -> parallel explore agents armed with ast-grep, then synthesize; outside-repo research (library/API/docs/web) -> librarian. Run them in background; keep working." replaces the arrow table that sent every architecture question and every "unfamiliar layout" to background agents with no size test. `src/components/ultrawork/generated-directive.ts` is regenerated by `plugin/scripts/embed-directive.mjs` (22 words shorter; no forbidden harness tokens). ## 2026-10-01 - Legacy state lookup requires persisted state - The task-engine fixture writes a legacy-state marker before composing the engine. Fresh and explicitly configured stores retain their existing behavior; empty directories left by an observer no longer redirect new runtime state into the project. ## 2026-10-01 - Computer permission events reach the root session from every caller (omo-desktop-app#1437) - Observe typed engine permission denials before direct tools, computer actions or JavaScript/Python eval can serialize them. Emit `omo.computer.permission_required` on the root session's RPC connection with its own session ID. - Forward process and daemon child denials through task ownership, including nested and shared in-process task owners. Deduplicate each permission at the root, preserving the latch across reloads and resetting it for a new root session. - A session-journal write failure cannot prevent the permission event or replace the caller's original denial; failed marker persistence is reported through the component logger. - Keep emitted permissions in a process-lifetime, root-keyed latch so a failed marker write followed by extension reload cannot emit the same permission again. Fresh root sessions remain independent. - Keep the latch Map private behind a frozen, versioned claim facade installed as an immutable global property. Ignore incompatible retained state and preserve the native denial with a module-local fallback when that slot cannot be replaced. - Real-session tests exercise direct, code-mode and child callers against a protocol-speaking engine fixture. Transport tests reject malformed and foreign-session records without delivering them to existing agent-event listeners. ## 2026-10-01 - In-process task children honor the caller's settings (#9353) - `components/task/runtime-context.ts` captures the parent session's project-trust decision, and `engine-runners.ts` passes it to every in-process child, so the child's settings include the project layer exactly when the parent's do. `plugin/extensions/omo-task.js` regenerated on linux/amd64 (node 24, bun 1.4.2) for the senpi-task change. ## 2026-10-01 - Windows RPC kills tolerate repeated Bun startup advisories (#9228) - The task bundle treats any number of known Bun child-reaper advisory lines as advisory-only stderr for Windows code-1/no-signal exits. Any different stderr line remains a crash diagnostic. ## 2026-10-01 - Windows task-child parity regression (#9274, #6709) - The parity regression now reloads the in-process child loader beside the process child's builtin loader policy and pins equal platform-specific builtin names plus `web_search`, avoiding Windows CLI cold starts while the existing surface tests retain shared-parent and session-default coverage. ## 2026-09-30 - Task children keep senpi builtin tools in the default in-process mode (#9274, #6709) - The task extension bundle now gives in-process children senpi's builtin-only extension surface while continuing to suppress the parent's path-loaded extensions. The parent tool-capture wrapper stops after omo component registration, so builtin factories senpi loads later are not re-injected as raw custom tools. A mock-provider integration test compares the actual in-process and process child tool payloads and requires `web_search`. - `plugin/extensions/omo.js` and `omo-task.js` regenerated on linux/amd64 (node 24, bun 1.4.2) for the senpi-task change; the extension freshness checks pass. ## 2026-10-01 - Geeky lanes: Astra at high, GPT-6.1 Sol Fast leads Geeky · Normal (#9372) - `src/components/model-profile/builtin-profiles.ts`: `geeky-heavy` runs `gpt-6-astra` at `high` (was `xhigh`). `geeky-normal` leads with `gpt-6.1-sol-fast` (medium, `chatgpt-subscription|openai`), then plain `gpt-6.1-sol` (medium, same lanes), then the unchanged `gpt-5.6-sol` (medium, all four GPT lanes). Plain 6.1 Sol stays behind the Fast tier so a registry without `gpt-6.1-sol-fast` still lands on 6.1 Sol rather than dropping to 5.6 Sol. - `scripts/qa/model-profile-e2e-scenarios.mjs`: both geeky-heavy scenarios expect thinking `high`; new `geeky-normal-sol-fast` serves 5.6 Sol, 6.1 Sol and 6.1 Sol Fast and expects the Fast tier at medium. - Tests: `index.test.ts` starts a session on each geeky-normal registry shape (Fast served -> Fast medium; Fast absent -> plain 6.1 Sol medium) and geeky-heavy (Astra high); removing the Fast rung fails the Fast case. ## 2026-10-01 - session gateway review round 9: recovery bound across overlapping calls (#9222) - `tools.ts`: the 4,096-key receipt-recovery bound also holds across calls whose admissions overlap. The capacity check counted only the keys already kept, so with one slot left two calls under new keys both passed it before either admission answered, and when both replies were lost the surface kept 4,097 keys. A call now takes its slot before its admission is awaited: the check counts every distinct key whose admission is in flight together with the kept keys, and the slot is released when the store answers or passes to the key's recovery entry when the reply is lost. Overlapping calls under one key share one slot, and a kept key still recovers at capacity without evicting another. - `tools/relay-tools.ts`: a replayed completion report whose stored receipt has no `arm_seq` (written by the revision before it existed) no longer arms the tracker with `undefined`, which became a NaN settle watermark and left the completion pending. Only an integer `arm_seq` is taken; an armed receipt without one arms with the session's newest durable arm (`store.latestCompletionArm`), and when the session has none the replay answers `idempotency_uncertain` instead of an `armed` result that would write nothing. ## 2026-10-01 - session gateway review round 8: receipt batch per call, completion arms per run, recovery-key bound (#9222) - `gateway/store-retention.ts` / `store-relay-ops.ts` / `store-ops.ts`: a call that reuses an expired key deletes at most one batch of receipts in total. The receipt check deletes the expired receipt under the call's own key, and the sweep that follows deleted a full batch besides, so a peer tool call, keyed relay mutation or keyed send could remove `RETENTION_SWEEP_BATCH + 1` receipts. The key's deletion now counts against the sweep's receipt batch, and a batch used up that way still makes the next sweep due at once. - `gateway/completion.ts` / `store-relay-ops.ts`: a settling run owns the completion arms up to the newest `arm_seq` the session knew of when it settled (`emitCompletions` `through_arm_seq`, replacing the `armed_through` time). The time cutoff assigned an arm made in the same millisecond as an earlier run's settle to that earlier run, so with an outstanding first write and an equal clock reading the two runs collapsed into one completion with the second text and the first outcome. A later run's arm always has a higher sequence number, so each run's completion lands with its own text and outcome, in run order. `thread_report` now hands the tracker the arm's `arm_seq` (kept out of the tool and SDK results), and a durable arm picked up at startup or on a wake arms with the newest stored sequence (`store.latestCompletionArm`). - `tools.ts`: the keys a tool surface keeps for recovering a receipt whose admission reply was lost are bounded. Each key is kept until the receipt it may have left expires (admission time + the 30-day receipt retention), at most `RECEIPT_RECOVERY_MAX_KEYS` (4,096) at once, and disposing the surface clears them; the set grew by one key per failed admission for the surface's lifetime. When it is full, a call under a new key is refused `overloaded` (`details.budget: "receipt_recovery"`) before its admission and runs nothing, so no key that may still need recovering is dropped; a retry of a kept key still recovers. ## 2026-10-01 - session gateway review round 7: receipt retention, completion arms, replay after unbind, lost receipt replies (#9222) - `gateway/store-relay-ops.ts` `toolReceiptBegin`: a peer tool call's receipt admission runs the bounded retention sweep when one is due, as an enqueue, relay mutation or outbox read does. Since round 6 narrowed the receipt check to its own key, traffic made only of peer tool calls (`thread_list`, `thread_read`, `thread_rename`, ...) never swept, so their expired receipts were kept indefinitely; each admission now deletes at most one batch. - `gateway/schema.ts` / `store-relay-ops.ts`: every completion arm is its own `completion_arms` row (`arm_seq`). The table kept one row per session and binding, so when a run settled while its completion write was held and the next run armed the same binding again, the replacement destroyed the earlier run's arm and only the later completion was ever written. Each write now consumes the arms made by its run's settle, so both completions land on the binding in run order with their own text and outcome; two arms of one binding within a run still make one row, the newest text. - `gateway/relay.ts` `inbound` / `gateway/store-ops.ts`: a connector event retried after its binding closed is answered through the same receipt classification a retried send uses (`recoverDelivery` over `classifyReceipt`). The closed binding's replay read only completed receipts, so an event the session had applied while both receipt writes failed (the receipt stays `prepared`) was refused `binding_inactive` after an unbind; it now replays the delivered outcome from the durable row and completes the receipt, an undecided one stays `idempotency_in_progress`, and a new or edited event is still `binding_inactive`. `store.completedDelivery` became `store.deliveryReceipt`. - `tools.ts`: a receipted thread tool retried after its receipt admission failed without a reply runs the call. The store worker can commit the `prepared` receipt and exit before replying, and every retry of the same key from this process then read that row as `idempotency_in_progress` until it expired, though nothing had run. The facade notes such a key, and a retry that finds this instance's prepared row while no invocation of the facade runs the key takes it up and runs the call once; a call still running under the key keeps the retry `idempotency_in_progress`. ## 2026-10-01 - session gateway review round 6: receipts, questions, retention, bindings snapshot, causes, session facts, identifiers (#9222) - `tools.ts`: a receipted thread tool whose receipt the store cannot admit answers as data instead of throwing: `overloaded` when another process holds the store's write lock past the wait bound, `internal_error` for any other store failure. Nothing has run at that point, so a retry runs the call once. - `component.ts` / `gateway/registration.ts`: a session waiting on a question is in phase `waiting_question`, so a steer into it is refused `not_steerable` as the delivery table says. The phase holds from the `tool_execution_start` of an ask_user call that waits for its answer (`ask_user_question` with `waitForAnswer`, `request_user_input` with `wait_for_answer`) to that call's `tool_execution_end`; `auto` and `follow_up` still queue behind it. The phase was never reported, so such a steer was admitted into the blocked turn. A question that does not wait blocks nothing. - `gateway/store-ops.ts`: a retried send whose delivery the target already decided (admitted, applied or refused) replays that outcome and completes the receipt even when this process began the receipt. When both receipt writes of the first call failed (for example at the lock-wait bound), the receipt stayed `prepared` under this store, and every retry answered `idempotency_in_progress` until the receipt expired; an undecided row is still in progress. - `gateway/store-retention.ts`: expired receipts are deleted a batch (`RETENTION_SWEEP_BATCH`) at a time like every other table, and a full batch makes the next sweep due at once. The sweep, and the receipt check of every keyed call (`enqueue`, a relay mutation, `toolReceiptBegin`), used to delete every expired receipt in one statement, so a store reopened after a long idle cleared its whole backlog inside one write transaction; a receipt check now clears only the expired receipt under its own key. - `gateway/store-ops.ts`: a send continues the causal chain of the delivery its run consumed while that delivery's row is still `admitting`, which is the state the row keeps when the runtime took the message but its outcome write gave up at the lock-wait bound. Such a send was refused `invalid_arguments` (`unknown_cause`) until the drain's retry recorded the outcome; a delivery that is only queued, or addressed to another session, is still refused. - `session-facts.ts` `readSessionFacts`: the tail window drops its first line only when the window cut it (the byte before the window is not a newline). A rename line starting exactly at the tail window's first byte was dropped, so the session listed with `name: null`. - `gateway/bindings.ts`: a binding identifier carrying a C1 control (U+0080-U+009F, NEL included) or a Unicode line or paragraph separator (U+2028, U+2029) is refused `invalid_arguments`, like a C0 control. NEL passed the check and reached the `actor=` provenance header raw, since the header's whitespace class does not cover it. - `gateway/schema.ts`: `bindings` gets an `INTEGER PRIMARY KEY AUTOINCREMENT` key (`seq`, the rowid) with `binding_id` kept `UNIQUE`; schema v1 is unreleased, so the table is defined that way from the start. The `thread_bindings` snapshot watermarks on the rowid, which SQLite reused after retention deleted the newest binding, so a binding made later could appear in a later page of an older snapshot. - `gateway/relay.ts` `inbound`: a connector that retries an event the session already took gets the stored result back (`deduplicated: true`) even after the binding was unbound or expired; only a new event, or the same id with other content, is refused `binding_inactive`. The inactive check ran before the receipt replay, so a connector that lost the ACK was told a delivered message was refused. `store.completedDelivery` is the plain read behind it. - `gateway/legacy-mailbox.ts`: only the legacy host's exact turn id spelling (`turn-N`, no leading zeros) becomes a migrated steer's epoch. Bare digits (`1`) and leading-zero ids (`turn-01`) were read as that turn too and steered into it; they now stay without an epoch and are refused `turn_conflict`. ## 2026-10-01 - session gateway review round 5: legacy steers, degraded legacy host, causes, outbox acks, registration, completions (#9222) - `gateway/legacy-mailbox.ts`: a legacy `steer` keeps its `expected_turn_id`. The host's `turn-N` id becomes the gateway turn epoch `N`, so a migrated steer for the turn the target is still running steers into it and one for an earlier turn is refused `turn_conflict`; the import used to store no epoch, which refused every migrated steer. - `live-surface.ts`: the legacy endpoint keeps the session files `host status --all` reports for it, as dev did. When the legacy host stops answering, its threads are listed from disk as `resumable` with an `error_note` and read from their JSONL, instead of disappearing from `thread_list`. - `component.ts`: a run's causal cause (`RunContext.cause`, sent as `cause_delivery_id`) is the newest delivery whose message the model consumed (the engine's `message_start`, the same edge `RunContext.consumed` reads), not the newest one admitted. While thread B's message waited behind A's run, a `thread_send` from A's run continued B's causal chain, charging B's hop, cycle and budget guards; it now continues A's, and a send after the engine drains B's follow-up continues B's. The registrant's `onAdmitted` hook, which only fed the cause, is gone. - `store-relay-ops.ts` `ackOutbox`: a newer cursor must name one of the binding's own outbox rows. Cursors are global across bindings, and the check used to compare only with the binding's newest cursor, so acking binding A with binding B's cursor marked A's unread rows below it acked. Such a cursor is now `cursor_invalid` and acks nothing. - `gateway/registration.ts`: the session's incarnation is recorded before its control endpoint is registered, and a failure to record it fails the registration (`{ status: "failed" }`, logged) with no endpoint exposed. The endpoint used to go live first, so its first drain could run under the previous runtime's incarnation, and a failed record was only logged while the registration still succeeded, which left earlier reply tokens valid after a restart. - `gateway/completion.ts`: every settled run's completion is written with that run's outcome. A run that settled while an earlier run's write was outstanding used to be dropped, so only the earlier outcome was recorded; it now waits and is written after it. Each write passes the time its run settled (`emitCompletions` `armed_through`) and consumes only the arms made by then, so a delayed or retried write no longer takes a later run's arm with the earlier outcome. ## 2026-10-01 - session gateway review round 3: store recovery, legacy mailbox import, retention, binding defaults (#9222) - `gateway/store.ts`: a failed open is no longer cached. The worker of a rejected `init` is terminated and the open is cleared, and a worker exit clears it too, so the next call starts a fresh worker (in-flight requests fail and are not replayed). Pending requests are tied to the worker they were posted to, so a dying worker never fails its successor's open. `store.test.ts` holds `BEGIN IMMEDIATE` through the first open and terminates a live worker. - `component.ts`: production passes `legacyMailboxDirectories: [<thread state dir>/mailbox]`, and `session_start` imports that pre-gateway `thread_send` mailbox once when a `mailbox.jsonl`/`mailbox.json` is on disk (a session without one still creates no database). `store-ops.ts` `migrateLegacyMailboxes` reports an item whose target is not a durable id (`legacy_mailbox_skipped`, logged, and recorded in the directory's `gateway_meta` row) and still marks the directory migrated, because no later open can deliver it; a mailbox that cannot be read is logged and left unmarked, so the next start retries. - `gateway/process-identity.ts`: a claimant's start time is recorded as `epoch:<seconds>`, read from `ps -o lstart=` run with `LC_ALL=C` and `TZ=UTC`, so a host started without a locale and a terminal in `fr_FR.UTF-8` (or another time zone) agree on a live process instead of judging it dead and re-queueing its admitted rows. A start time without the prefix (written by a pre-release build of the gateway, in that process's locale) cannot be compared, so it counts as live while its pid exists, like an unreadable one. `process-identity.test.ts` records and checks in two processes with different locales and time zones. - `gateway/store-retention.ts` (new): a bounded retention sweep for the tables nothing pruned. Delivered and refused deliveries 30 days after their last change (not while a receipt points at one), causal edges and roots once the root expired, rate buckets idle for a full refill, closed bindings 30 days old with no outbox row, completion arm or open delivery, their `outbox_cursors`, and `session_meta` rows nothing references. At most 256 rows per table per sweep, hourly unless the last sweep hit the bound; it runs at the end of an enqueue, a relay mutation or an outbox read, so opening a current store still takes no write lock. Retention periods: `docs/reference/omo-thread.md` "Retention". - `thread_report` without `binding_id`: the default is the binding of the messages the session's CURRENT answer is for (`component.ts` `RunContext.consumed`: the deliveries whose `session_control_delivery` message entered the model's context since its last final answer, read from the engine's `message_start`; cleared at `agent_settled`), carried into the report as `origin_delivery_ids`. It used to be the binding of the newest admitted delivery, so a message from thread B queued mid-run took thread A's report or completion; and a run origin fixed at admission would have sent B's own answer to A, because senpi drains a queued follow-up after the final answer and before `agent_settled`. That drain, or a prompt typed in the terminal after the answer, starts a new group. Messages from two bound threads in one answer (a steer at a tool boundary, or `followUpMode: "all"`) are `invalid_arguments` naming both `binding_ids`. A bound message answered together with a prompt typed in the terminal (a local steer into thread A's run, or the reverse; `RunContext.local`, carried as `origin_local_input`) has two possible origins and is `invalid_arguments` naming the session's active outbound `binding_ids`, where it used to go to A, but only while the session has an outbound binding other than A. With A as its only outbound binding, both inputs can only be answered in A, so the report and the completion go to A: a thread user who answers a non-blocking ask_user question mid-run (senpi steers the answer in as a `user` message, the same shape as a typed prompt) no longer blocks A's implicit report. Without a bound message (a prompt the user typed, `omo thread report`) the session's only active outbound binding is used, and several are `invalid_arguments` naming their `binding_ids`. `report-origin.test.ts` drives two threads through the SDK and the real `thread_report` tool, with the engine's event order (`agent_end`, then the follow-up's `agent_start` and `message_start`, no `agent_settled` between). - `sdk.ts` `bind`/`rebind`/`report`/`bindings --session` and the relay tools that name another session resolve it through `tools/internals.ts` `resolveStoredSession` (the offline host view plus `sendAddressBook`), as a send does: with nothing running they no longer fail `host_unavailable` (exit 3, or 5 on a stale socket), and a session known only from its session file resolves by id or name. `offline-address.test.ts` covers the SDK and the tool. - Bindings take `notion` and `feishu` as native platform names (`schema.ts` CHECK, `bindings.ts` `BINDING_PLATFORMS`, the `thread_bind` param union), decided before release because widening a column CHECK later needs a table rebuild. - `schema.ts` v2: the outbox `question_state` CHECK admits `pending|answered|expired|cancelled`. `expired` and `cancelled` are reserved for question closure (a follow-up writes them from the session's terminal question outcome); nothing writes them here. Widened now because a CHECK change after release needs a table rebuild. - `schema.ts`: the outbox `event_kind` CHECK also admits `question_closed`, reserved for question closure (a follow-up writes it when the session's question ends without an answer through the thread); nothing writes it here. The CHECK sits inline in `CREATE TABLE outbox`, so it is widened before release, not rebuilt after. - `registration.ts` records the session's incarnation only after senpi registered its control endpoint, and every wake's drain waits for that record. A session senpi answers `unsupported` for (a Windows terminal answers `unsupported_platform`) used to create `gateway/gateway.sqlite`, `gateway/inbox/` and a `session_meta` row first; it now does no gateway I/O. `component.test.ts` and `inbox-drain.test.ts` cover the unsupported start and the wake order. - `store-ops.ts` `requeueReleased` (with its `store.ts` method and worker op) is deleted: nothing called it. A released session's dropped deliveries come back through the `session_released` transcript check in `reconcile` on the next owner's side; a second path from `omo daemon adopt` would act from another process without that check. - `store-relay-ops.ts`: `readOutbox` and `listBindings` put `ORDER BY ... LIMIT` in the SQL (bindings read one row past the page to know whether another follows) instead of loading every matching row and slicing. `relay.test.ts` pages an outbox; the bindings snapshot-cursor test already pages bindings. - `tools/ports.ts` `ThreadToolSurfaceOptions.store` is required and `tools/gateway-services.ts` lost its fallback, which opened a second, separate database under `stateDirectory` when a caller passed no store. The legacy `session-control-qa.mjs` scenario opens its stores explicitly and disposes them at teardown. - `live-surface.ts` `releaseReply`: a `release_session` reply counts as released only when it also names a `session_path` string; without one it is `release_failed`, so `omo daemon adopt` never relaunches with `--session undefined`. - Docs (`docs/reference/omo-thread.md`, `thread/AGENTS.md`): `omo thread` creates and resumes no session (a connector opens one through the host API and binds it); a completion row carries the armed text, not the model's reply; the per-author rate bucket trusts the connector's author id and stays bounded by the target backlog. ## 2026-09-30 - thread activity round 2: strict records, one freshness policy, public ordering (#9222) - `session-facts.ts`: the already-capped final record is now validated with `JSON.parse` before its top-level `timestamp` is trusted. Missing values, invalid literals/escapes, malformed nested values and trailing commas all produce unknown activity. - `address-book.ts`: degraded/resumable session rows take `updated_at` from `readSessionFacts`, the same bounded freshness policy used by live fallback facts and host-status enrichment. Full-file parsing remains only for name/title metadata. - `tools/read-ops.ts`: the final combined public list follows the sorted address book, so known activity is newest-first, unknown activity is last, and equal timestamps use ascending durable ids. - Tests cover malformed JSON classes, host-status/degraded-list agreement on one partial file, and mixed live/dead public ordering. ## 2026-09-30 - thread facts: a bounded final-line timestamp or unknown activity (#9222 gate G1) - `session-facts.ts`: `readSessionFacts` still reads bounded windows, then scans backwards at most 256 KiB to locate the final complete JSONL entry and validates that capped record before extracting its top-level `timestamp`. A partial, malformed or larger final line yields `updated_at: null`; it never publishes an older entry as newest. - Thread summaries now allow nullable `updated_at`. Address-book ordering keeps known timestamps newest-first and places unknown activity last. Disk summaries no longer substitute file mtime for an entry timestamp. - Tests cover the 160 KiB final-entry regression, truncated and over-cap final lines, normal files, bounded read volume, null sorting, and the omo-native host-status path. ## 2026-09-30 - thread gateway: binding authors, a per-message mode, the outbox wake marker (#9143, review of #9222) - `gateway/author.ts` (new): `normalizeAuthor` checks an `ExternalAuthor` (`platform_user_id`, `display`, optional `user_id`). Each field must be non-empty and at most 256 characters, and a C0/C1 control, DEL or U+2028/U+2029 is `invalid_arguments`. `ExternalOrigin.author` (optional) keeps it on the delivery's envelope JSON, so the deliveries table did not change. - `relay.inbound` takes `author` and `mode`. `mode` defaults to the binding's `inbound_mode`, and `auto` on a `follow_up` binding is refused `invalid_arguments` with `{binding_id, mode, inbound_mode}`, never downgraded; `steer` is refused. `relay.answer` takes `author` and returns `answered_by`. - `provenance.ts` renders `author=` / `author_id=` / `author_user_id=` as JSON strings with `[`/`]` escaped, after `actor=`, so the body cannot forge or close header fields. - `engine.ts`: a binding sender with an author keys the pair rate bucket by `binding:<id>#author:<platform user id>` (`EnqueueRequest.rate_principal`, read by `store-ops.ts` `takePairToken`); without an author it stays `binding:<id>`. The author joins the receipt's args hash. - Schema v4 (additive): `outbox.answered_by TEXT`, NULL on older rows. Claim, confirm and mark-prior-delivered write it, and release clears it. `OutboxRow.answered_by` exposes it. - `store-relay-ops.ts` `insertOutbox` rewrites `<agent dir>/gateway/outbox.marker` (temp file + rename, inside the insert's transaction) with `{binding_id, cursor, written_at}`. `paths.ts` `gatewayOutboxMarkerPath`. - `sdk.ts`: `send({binding_id, author, mode})`; an author without a binding, a binding `steer` or a binding `expected_turn_id` is `invalid_arguments`. `answer({..., author})`. - `extension/thread-sdk.ts` also exports `readSessionFacts`, which `omo host status --all` uses for `last_activity_at`. - Tests: `gateway/relay-author-mode.test.ts`, the v3 -> v4 migration in `gateway/store.test.ts`, two `sdk.test.ts` cases. `relay-answer-kinds.test.ts` `downgradeToV2` also drops the v4 column, so its "v2 store" is a real v2 store. ## 2026-09-30 - thread gateway: one clock per store, and cross-process tests that do not wait on fs.watch (#9143) - `gateway/store.ts`: `GatewayStore` exposes `now`, the clock its rows are stamped and expired against (the `now` option, else `Date.now`). `createInboxDrain`, `createGatewayEngine`, `createGatewayRelay`, `createGatewayServices`, the thread tools and the thread SDK default to `store.now` instead of reading `Date.now` themselves, and the component's completion writes use `store.now()`. Before, a drain or engine built on a store with an injected clock stamped and expired rows by the wall clock, so the two clocks disagreed: on 2026-09-30 the harness rows (stamped 2026-09-29 by the injected clock) read as expired to a drain built without `now`, and three tests failed on every run (`store.test.ts` release_session requeue, `engine.test.ts` lost_ack_and_durable_recovery, `claim-reconciliation.test.ts` "dropped it unwritten"). Production passes no clock, so `store.now` is `Date.now` there and nothing observable changes. `gateway/store-clock.test.ts` puts the store's clock in 2020 and fails on the old defaults whatever the wall clock reads. - `gateway/cross-process.test.ts`: the tests learned the delivery id from an `fs.watch` event on the inbox directory. On macOS that watch drops events under load (a probe missed 9 of 60 creates made right after `watch()` and 27 of 60 made by a child process), and the test then waited for an event that never came. The store writes the marker before either commit hook runs, so each test now reads it from the directory once the sender has died or printed `PAUSED`. No retries and no longer timeouts. ## 2026-09-30 - claude-code: acquire before the auth check, from the provisioned runtime, with progress (#9276) - `src/components/claude-code/index.ts`: the component now also runs on `input`, which senpi's `prompt()` emits before `checkAuth` (`emitInput`, then `checkAuth`, then `emitBeforeAgentStart`), so a prompt from a `claude login`-only user downloads the executable before the ambient auth probe needs it. `before_agent_start` stays for turns an extension starts (they skip `input`), registered `previewSafe` and skipping the prompt-cache preview. The pin and cache root come from `claudeCodeRuntimeDir` (`OMO_PACKAGE_DIR`, else `dirname(execPath)`), since the compiled launcher pins the provisioned runtime there while `execPath` can still be the downloaded binary. A progress status (`omo-claude-code`: `Downloading Claude Code <version>: N% of M MB`, every 10%) shows while the tarball streams (`acquire.ts` `onProgress`). New `applyCachedClaudeCode` lets the compiled launcher point the engine at an already-downloaded copy before it starts. - Limit: on the launch that downloads, the startup ambient probe may already have cached "not signed in" for 30 s (`availability.ts` `AMBIENT_STATUS_TTL_MS`); the next prompt after that window, and every later launch, resolve it. ## 2026-09-30 - model-profile e2e: lane-beats-recommended-models proves a real recommended-models switch (#9238) - `scripts/qa/model-profile-e2e-scenarios.mjs`: `lane-beats-recommended-models` serves `mock-1`, `glm-5.3` and `gpt-6-astra` on `chatgpt-subscription` + `opencode-go`, so no provider serves its engine provider default (`gpt-6.1-sol`, `kimi-k3`). The session starts first-available on off-ladder `mock-1`, senpi's recommended-models builtin switches to `chatgpt-subscription/gpt-6-astra`, and Daily · Normal still wins with `opencode-go/glm-5.3` max. The old fixture's only `gpt-6-sol` entry was the engine's initial provider-default record, which senpi#2393 moved to `gpt-6.1-sol`; the builtin never switched there. `gpt-6-astra` keeps its ladder rung across senpi#2394's Sol-slot move. - `scripts/qa/model-profile-e2e.mjs`: that scenario's checks skip the initial-model record. `started_off_recommended_ladder` requires the first `model_change` to be `mock-1`, and `recommended_models_switched_first` requires the builtin's `chatgpt-subscription/gpt-6-astra` change to come after it and before the lane's `opencode-go/glm-5.3`. ## 2026-09-30 - model-profile: Recommended leads its GPT-6 Sol slot with gpt-6.1-sol medium, gpt-6-sol behind it (senpi#2394) - `src/components/model-profile/builtin-profiles.ts`: `recommended` replaces its `gpt-6-sol` (medium) rung with `gpt-6.1-sol` (medium) on `GPT_6_1_PROVIDERS` (`chatgpt-subscription|openai`), immediately followed by `gpt-6-sol` (medium) on the shared `GPT_PROVIDERS` ranking, so Copilot and OpenCode Zen, which do not serve 6.1 Sol, still resolve GPT-6 Sol. senpi#2394 makes the same switch in `RECOMMENDED_DEFAULT_MODELS`; OmO keeps the extra `gpt-6-sol` rung, and the header comment says so. The lanes are unchanged. Telemetry already carries `gpt-6.1-sol` (#9214). - Tests: `builtin-profiles.test.ts` pins the seven-rung chain and the providers of both Sol rungs; `resolve.test.ts` resolves `chatgpt-subscription/gpt-6.1-sol` medium when the subscription serves it next to `gpt-6-sol`, and `github-copilot/gpt-6-sol` medium on a Copilot-only registry; `index.test.ts` applies both at session start. `scripts/qa/model-profile-e2e-scenarios.mjs` adds `unset-gpt-6-1-sol` and `unset-copilot-gpt-6-sol`. - Docs: the Recommended ladder in `docs/guide/agent-model-matching.md`, `docs/guide/overview.md`, `docs/guide/installation.md` and `docs/reference/omo-json.md`. - `plugin/extensions/` bundles regenerated on linux/amd64 (node 24, bun 1.4.2) for the chain change. ## 2026-09-30 - lsp: post-edit install nudges stay inside projects and appear once per server (#9223) - `components/lsp/post-edit-outcome.ts` (moved out of `index.ts`) turns a daemon `not_installed` availability into the structured post-edit outcome, carrying `serverId`, `installDecisionTool` and a recorded decision. - `components/lsp/index.ts` `handlePostEditDiagnosticsToolResult` classifies each edited file against the session cwd and the engine-resolved agent dir (`resolveSessionAgentDir`, else `resolveAgentHome`): files outside a project, in the agent dir, or in a temp dir get no nudge, and each server is nudged once per session (reset on compaction). - `plugin/extensions/omo.js` regenerated on linux for the change above. ## 2026-09-30 - memory/kibitzer: connected-first sidecar model order (#9216) - `components/memory/kibitzer/sidecar-connected-order.ts` (new) `orderKibitzerCandidatesByConnection`: with a known, non-empty availability list the first connected candidate leads and unconnected ones trail; none connected returns the providers to connect. - `components/memory/kibitzer/sidecar-model.ts` `resolveKibitzerSidecarModel` applies it to category-sourced resolutions and returns `category_unavailable` when nothing is connected. The `task` tool path is untouched. - `plugin/extensions/omo.js` regenerated on linux/amd64 (node 24, bun 1.4.2) for the change above; `build-extension.mjs --check` and `build-install.mjs --check` pass on the regenerated tree. ## 2026-09-30 - model-profile: Geeky · Normal leads with gpt-6.1-sol medium; telemetry knows the 6.1 Sol ids (#9214) - `src/components/model-profile/builtin-profiles.ts`: `geeky-normal` is `gpt-6.1-sol` (medium) on `chatgpt-subscription|openai` (the new `GPT_6_1_PROVIDERS`: Copilot and OpenCode Zen do not serve 6.1 Sol, and every builtin rung must name a pair the product knows), then `gpt-5.6-sol` (medium) on the shared `GPT_PROVIDERS` ranking. The `recommended` row and every other profile are unchanged. - `src/components/telemetry/model-vocabulary.ts`: `gpt-6.1-sol` and `gpt-6.1-sol-fast` join the `chatgpt-subscription`, `openai` and `openai-codex` vocabularies and `gpt-6.1-sol` the `vercel` one, so the new deep-low rungs export as themselves instead of `custom`; `docs/reference/senpi-telemetry.md` is regenerated from the schemas. - Tests: `builtin-profiles.test.ts` pins the two-rung chain, `resolve.test.ts` resolves `chatgpt-subscription/gpt-6.1-sol` medium when the subscription serves both, and `index.test.ts` applies it at session start; the Copilot-only and GPT-6-only cases still resolve 5.6 Sol and report unavailable. `scripts/qa/model-profile-e2e-scenarios.mjs` `geeky-normal-sol` serves `gpt-6.1-sol` next to `gpt-5.6-sol` and expects 6.1 Sol. - `plugin/extensions/omo.js`, `omo-task.js`, `omo-init-deep-advisor.js` regenerated on linux/amd64 (node 24, bun 1.4.2) for the chain, profile and vocabulary changes; `omo-member.js`, `memory-run-supervisor.mjs` and `omo-computer-use.js` rebuilt byte-identical, so they are unchanged. ## 2026-09-30 - A refused takeover of a question closed elsewhere is delivered with no answer text, not the dead claimant's (#9143) Gate note N5 on the answer path: an answer that takes over an abandoned claim and is refused with `unknown_extension_ui_request` or `unknown_request` means the session no longer knows the request, which also happens when it was answered locally, timed out or was cancelled. `relay.ts` used to record the dead claimant's text as the delivered answer for all three "no longer waits" codes and say "the session already took an earlier answer". Now only `question_already_resolved` keeps that; for the two `unknown_*` codes the row is marked delivered with a NULL answer (`markPriorDelivered` with `{ answer: null, answered_at: <claim> }`) and the result is `already_answered` with "The session no longer waits for this question (answered or closed elsewhere) (<code>)". A later answer to that row reads the same wording (`claimAnswer` renders a delivered NULL-answer row with `CLOSED_ELSEWHERE`); a row delivered with text still reads "This question was already answered." `relay-answer-closed-elsewhere.test.ts` covers both `unknown_*` codes and the `question_already_resolved` counterpart (one frame, row state and answer text, both messages); keeping the dead answer for `unknown_*`, dropping it for `question_already_resolved`, or reverting the later-answer wording each fails 2 or 3 of the 25 answer-path cases. `docs/reference/omo-thread.md` describes the two outcomes. ## 2026-09-30 - thread_send and thread_handoff always deliver through the session gateway; the mailbox and file receipts are gone (#9143) With senpi 2026.9.29-4 adopted (wake, admitExternalMessage, terminal control endpoints), the send switch flipped and then went away: `THREAD_SENDS_THROUGH_GATEWAY`, the `sendThroughGateway` option, the mailbox branch and the terminal-unsupported guard in `tools.ts` `deliver` are deleted, and so are `mailbox.ts`, `mailbox-journal.ts`, `mailbox-journal-codec.ts`, the mailbox-era file receipts in `receipts.ts` and their tests. A send is now always a durable gateway row with its own receipt: a terminal target is queued for its own inbox and woken instead of answering `unsupported`, and a send to the caller itself is refused `loop_detected` (`self_send`). The endpoint, terminal and self-resolution tests assert that (queued row, a `wake` to the owning endpoint, no `prompt`/`get_state`). The task-14 QA drivers that exercised only the deleted modules (`queued-resume`, `uncertain-operation` and its child) are retired, and the three cross-surface drivers deliver with the QA-only `deliverAuto` in `scripts/qa/thread-tools/lib/harness.mjs`. `gateway/legacy-mailbox.ts`, which reads a pre-gateway mailbox for the store's import, stays. ## 2026-09-29 - plugin bundles carry the typed launch_spec_insecure start failure (#9208) - `plugin/extensions/omo-task.js`, `omo-member.js`, `omo.js` (source-digest marker only) and `plugin/runtime/rollback-migrate.js` regenerated on linux/amd64 (node 24, bun 1.4.2) for the senpi-task change: a task host that refuses a group- or world-writable launch spec now fails the start typed `launch_spec_insecure` with the spec path and `chmod 644 <path>`, and rollback strips the new reason like every post-R0 reason. No adapter source changed. ## memory, telemetry: Kibitzer recall runs on a Z.ai-only or Xiaomi-only machine (#9202) - `memory/kibitzer/sidecar-model.test.ts`: with only `zai` or only `xiaomi` logged in and no quick config, the sidecar resolves `zai/glm-5.3-flash` or `xiaomi/mimo-v2.6-flash` at `low`. On dev both refused with `beyond_category`, because the quick chain had no rung for them. The chain change is in senpi-task. - `telemetry/model-vocabulary.ts`: adds `glm-5.3-flash` under `zai` and `zai-coding-cn`, and `mimo-v2.6-flash` under `xiaomi`, so the new rungs export by name. `docs/reference/senpi-telemetry.md` is regenerated. ## thread, task: agent state stays out of the user's repository (#9201, DESKTOP-31) - `components/thread/live-surface.ts` `defaultThreadStateDirectory`: the thread tools' mailbox and receipts move from `<project>/.omo/thread-tools` to the same per-project folder as the task state (`@oh-my-opencode/senpi-task` `resolveProjectStateDirectory`); a pre-existing in-project folder keeps being used. - `components/task/engine-state-dir.test.ts`: a fresh project stays empty after the engine persists task state, a pre-existing `.omo/senpi-task` is kept, and `task.state_dir` wins. - Root `test-setup.ts` drops an inherited `OMO_`/`SENPI_`/`PI_CODING_AGENT_DIR`, so a test run started inside a live session resolves agent-dir state under the hermetic HOME, as in CI. ## skill-commands, skills: argument-taking skills wait for their arguments in the slash picker (#9168) - `skills/{hyperplan,init-deep,mass-ulw,ulw-loop,ulw-plan,ulw-research}/SKILL.md` and the shared-pool `ulw-execute`, `refactor` and `remove-ai-slops` declare `argument-hint`. From senpi#2258 on, the picker reads it (`Skill.argumentHint`) and Enter on a `skill:<name>` row fills `/skill:<name> ` and waits instead of submitting the skill empty. Skills that take no arguments stay hint-less and still submit on one Enter. - `components/skill-commands/autocomplete.ts`: a bare alias row mirrors its own `skill:<name>` row on the same page, taking its description (which carries the hint) and `awaitsArguments`, so `/ulw-execute` waits exactly when `/skill:ulw-execute` does. `pi.getCommands()` carries no hint, so the page row is the source. Without the skill row the alias falls back to the command description and submits as before. - `components/skill-commands/argument-hints.test.ts` parses every shipped SKILL.md with the engine's own `parseFrontmatter` (native copy over the shared one, as `sync-skills.mjs` ships them) and pins the set of hinted skills. ## computer-use, x-search: a feature skill yields to a loaded same-name skill and honors disabled_skills (#9160) - `components/bundled-skills/contributed-skill.ts`: `resolveContributedSkill` decides one `resources_discover` pass for a skill a component contributes on its own. `disabled_skills` hides it (`readDisabledSkills`, now shared with the bundled-skills component). A `skill:<name>` entry in `pi.getCommands()` whose `sourceInfo.path` is not ours means senpi already loaded a same-name skill, which wins first-path either way, so ours is withheld instead of becoming a "Skill conflicts" collision. Our own path left over from an earlier pass still contributes. - `components/computer-use/index.ts`: the `computer-use` skill goes through it; `/computer status` adds `skill: your own computer-use skill is active in place of the built-in guide (<path>)` when it yielded. New `env` option for the config read. - `components/x-search/index.ts`: the conditional `x-search` skill goes through it. Both tools stay registered. - `extension/types.ts`: `getCommands()` entries carry the optional `sourceInfo.path` senpi already reports. ## thread: AGENTS documents endpoint kinds, the delivery table, budgets, binding invariants, the outbox contract and completion arms `src/components/thread/AGENTS.md` gains the `rpc_host`/`tui` endpoint kinds, the 15-cell `decideDelivery` table (the gateway's `auto` queues as a follow-up and never steers, unlike the mailbox path), every fixed budget with its constant (250 ms settle wait, the lock wait that gives up at about 25 s and never past 30 s, the retry on `lock_wait_exceeded`, the loop guards and rate limits), the binding invariants, the outbox contract, the completion arm lifecycle including the settle race, and the QA commands for the CLI, adopt and the built SDK. The live-surface row no longer says `omo daemon attach` sessions live on the legacy socket, and the package `AGENTS.md` names `omo daemon run` and `adopt` for `rpc.sock`. Docs only. ## thread: script-callable SDK (`plugin/runtime/thread-sdk/sdk.js`) for the `omo thread` CLI and connectors - `components/thread/sdk.ts` (exported from the component barrel): `createThreadSdk({ agentDir, cwd, uid, user, engineStatusAll? })` runs every thread operation without an agent session as `cli:<uid>`: `list`, `read`, `send` (bindingless = the engine's `cli` sender; with `binding_id` = the connector inbound path, the idempotency key as the event id), `bind`/`unbind`/`rebind`/`bindings`/`report`/`outbox`/`ack`/`answer`, `locate` and `release` (senpi `release_session` for `omo daemon adopt`). Refusals and transport failures come back as data. - `tools/gateway-services.ts` and `tools/read-ops.ts`: the store/engine/relay composition and the `thread_list` / `thread_read` bodies moved out of `tools.ts`, shared by the tools and the SDK (tool behavior unchanged). - `gateway/store.ts`: `workerModuleUrl` option (where the worker sidecar is resolved from outside `omo.js`). Its worker no longer inherits `--input-type` (node refuses it for a file worker), so an inline `node --input-type=module -e` connector script can open the store. - `live-surface.ts` takes `resolveTaskHostSocket` from `daemon-contract.ts` and `memory/worker/senpi-command.ts` takes the launcher helpers from `@oh-my-opencode/senpi-task/rpc-spawn`: the standalone SDK bundle no longer pulls the task engine (the full barrel made `bun build --outfile` emit assets and fail). - Build: new entry `src/extension/thread-sdk.ts` -> `plugin/runtime/thread-sdk/sdk.js` (node builtins only external), in `--check`, the installer's required artifacts and the omo-ai payload verifier. - `sdk.dispose()` cancels the relay's background answer-release retries before closing the store, as the component's `session_shutdown` does. - A completion armed from outside the session reaches a running session: after `report` answers `armed: true`, the SDK wakes the session's endpoint (`wake` with no delivery ids, best effort), and the component reads the durable arm on that `wake` command edge (`registration.ts` `onCommandWake`, the same lock-free `pendingCompletionArms` read as the `session_start` pickup) and writes it at the next settle. An ordinary settle still makes no store call. ## thread: chat-thread bindings, report/outbox/answer relay tools, SQLite tool receipts, gateway send path behind a switch - `components/thread/tools/relay-tools.ts`, `contracts/`, `metadata.ts`: eight new tools - `thread_bind`, `thread_unbind`, `thread_rebind`, `thread_bindings`, `thread_report`, `thread_outbox`, `thread_outbox_ack`, `thread_answer` - over the gateway store. A binding attaches a session to one external conversation thread (`platform` discord|telegram|slack|herdr|custom, `account_id`, `chat_id`, `thread_id`); one thread has at most one active binding (`binding_conflict` names the holder), unbind/rebind are CAS on the revision (`stale_revision`), a rebind never extends the TTL (default one week) and refuses work queued under the old revision (`binding_closed`). `thread_report` writes only through the calling session's own binding (the originating one by default); a question returns an HMAC reply token, and `thread_answer` is refused `binding_mismatch` unless the answer arrives through the binding that asked, `stale_token` after a rebind, expiry or session restart, `already_answered` on a replay. Completions are armed by `thread_report` and written only when the session settles, with the real outcome. A session that armed nothing never opens the gateway store when it settles, and an armed write never holds the settle for more than 250 ms: it finishes in the background, retried with the run's own outcome while another process holds the store's lock, and an arm made before a restart is written at the session's next settle. Relay text is capped at 32 KiB of UTF-8 bytes and refused as `message_too_large`. - `components/thread/errors.ts`: six new codes (`binding_conflict`, `binding_mismatch`, `binding_inactive`, `stale_revision`, `stale_token`, `already_answered`); `loop_detected` now tells the model to answer through `thread_read` / `thread_report` / `thread_answer` instead of replying directly. - `components/thread/tools.ts`: the tools' idempotency receipts move from files under the thread state directory to the gateway store's `receipts` table, with the same replay / conflict / in-progress / uncertain behavior. `thread_send` / `thread_handoff` can deliver through the gateway engine (results add `delivery_id`, `effective_mode`, `endpoint.kind`; new outcome `queued_offline`); that path stays off (`THREAD_SENDS_THROUGH_GATEWAY = false` in `component.ts`) until the senpi release with `wake` and `admitExternalMessage` is adopted. - `components/thread/gateway/drain.ts`, `provenance.ts`: a delivery waiting behind the running turn or the user's draft shows one notice in the session ("remote message from <actor> queued (<delivery_id>)"); the provenance header names the binding and its revision for a delivery that came through one. - `components/thread/gateway/schema.ts`, `store-ops.ts`, `store-worker.ts`: schema v2 (additive: session incarnation, outbox question/answer/outcome columns, per-binding ack cursors, completion arms). Opening a current store takes no write lock, and two processes opening a brand-new store at once no longer fail on the WAL switch or apply a migration twice. A store operation waits at most 30 s in total for the write lock, so a suspended process holding it can no longer stall every store call indefinitely; a session's inbox drain that gives up there retries on its own every 5 s until the delivery gets through, and a failed answer hand-off is always returned to pending. A tool call whose receipt could not be recorded answers `idempotency_uncertain` on retry instead of `idempotency_in_progress`. ## thread: address book over terminal endpoints with real names/timestamps; sessions drain their gateway inbox - `components/thread/endpoint-registry.ts`: new. Reads senpi's endpoint registry (`<agentDir>/rpc-host-daemon/<16hex>/endpoint.json`, layout 2) without writing or connecting: `endpoint_kind` `tui`/`rpc_host` (a record without `registry_version`/`endpoint_kind` reads as `rpc_host`), the directory accepted only when the socket's canonical path hashes to it. Used to classify a socket's kind, and to enumerate when the engine's `host status --all` cannot. - `components/thread/live-surface.ts`: `host status --all` rows keep `endpoint_kind`, `alive`/`reason` and a terminal owner's session path. A terminal control endpoint (`t-<16hex>.sock`) is reached with its 32-byte secret first and only with `get_protocol_info`, `list_sessions`, `get_state`, `get_messages`, `set_session_name`, `wake`, `subscribe`, `extension_ui_response`; anything else is refused as `unsupported` before a connection opens, and is answered as data by the tools. A terminal the engine reports not alive is not dialed; it is listed from its session file with `error_note: "live_unresponsive"`. The surface also exposes the gateway's sender port (`wake`, host-only `release_session`, liveness) - a delivery is announced with `wake`, never `prompt`. - `components/thread/address-book.ts`, `session-facts.ts`, `tools/internals.ts`: every thread carries `endpoint` (`kind`, `socket`, `routing_id`), `surface` (`tui` | `desktop` | `child` | `daemon`) and `alive`; its name is the session's `/name` (else the first 60 characters of its first user message, never the durable id) and its `created_at`/`updated_at` come from the session header and last entry (read from the first and last 64 KiB of the file) instead of 1970. - `components/thread/tools.ts`: `thread_send`/`thread_handoff` to a terminal session answer `unsupported` (a terminal takes messages only through its gateway inbox), as do interrupt, model and reasoning changes. - `components/thread/gateway/registration.ts`, `component.ts`: on an engine that exposes `pi.session` (`registerControlEndpoint`, `admissionGate`, `admitExternalMessage`, `listAdmittedDeliveries`, `persistHeaderNow`), the thread component persists the session header and registers the session's control endpoint with the gateway inbox drain; shutdown disposes the endpoint before the store. On today's engine nothing is registered. - `components/thread/gateway/store.ts`, `plugin/scripts/build-extension-core.mjs`, `check-extension-current.mjs`, `src/install/plugin-artifacts.ts`: the gateway store's worker thread ships as its own build output, `extensions/gateway-store-worker.mjs`, beside `omo.js` (a bundler cannot inline a `Worker` entry). The store resolves it from its own module location and falls back to `store-worker.ts` in source; `build-extension --check` and the installer's required-artifact list include it. Without it the built extension's inbox drain could not open its store (`MODULE_NOT_FOUND`). - `components/thread/gateway/registration.ts`: the store is stamped with `pi.sessionContext.host_instance`, so a host `release_session` settles only its own runtime's claims. - `components/thread/live-surface.ts`: a terminal endpoint whose socket is gone is reported `dead` instead of a raw `host_unavailable:<path>`. ## thread: gateway store and delivery engine (SQLite, receipts, causal loop guard) - `components/thread/gateway/`: new, not wired into the tools yet. One SQLite store at `<agentDir>/gateway/gateway.sqlite`, owned by a worker thread so no store call blocks a session loop, holds every cross-session delivery (`deliveries`), its idempotency receipt, the causal graph and the rate buckets, plus the `bindings`/`outbox` tables the binding tools use. A send writes its row and the target's inbox marker in one `BEGIN IMMEDIATE` transaction; the target's own drain is the only path out of `queued` and marks a row `applied` only after the runtime wrote its transcript entry. Loop guards (cycle refusal per causal root, 4 hops, 8-burst/5 s pair bucket, 16 targets per turn, 64 deliveries per root, 7-day roots, 24 h queue TTL) and a lost-ACK rule (`idempotency_uncertain`, never a resend) are enforced in that transaction. The first open migrates a legacy `<cwd>/.omo/thread-tools/mailbox` journal once. - `components/thread/errors.ts`: new code `loop_detected`. - `components/thread/gateway/store-ops.ts`: a row claimed by a live host that since released the session (`session_released { host_instance, released_at }` in the transcript, naming the claim's own host generation, claimed at or before `released_at`) is settled by the disk-token rule like a dead claimant's, instead of reading `dual_runtime` forever. A claim by any other runtime, or made after the release, stays `dual_runtime`. - `components/thread/gateway/adapter.ts`: provisional senpi types aligned with the branches (registration union, `release_session` request/refusal shape, drain result mapping). - `omo-native/test/sqlite-import-discipline.test.ts`: covers the gateway; only `store-worker.ts` imports `node:sqlite`, lazily. ## memory: a late Kibitzer verdict no longer steers an extra turn after the final answer - `components/memory/kibitzer/delivery.ts`: an accepted verdict steers at once only while the running session has a tool call executing. The host reads its steering queue after every turn, so a steer queued once the final answer was streaming or streamed started one more assistant turn after it; a headless `senpi -p` consumer that posts only the last assistant text then lost the real answer (observed as `answer -> omo-kibitzer:recall -> "NO_REPLY"`). Such a verdict is now held for the next `tool_result` steer or the next prompt's drain, like any other held nudge. - `components/memory/kibitzer/hooks.ts`: `tool_call` / `tool_result` report the executing call ids to delivery, and a new `turn_end` hook clears them so a call that never reports a result (blocked, aborted) cannot outlive its turn. ## model-profile, task: builtin lanes and the category notice never route to an unlisted gateway (#9146) - `components/model-profile/resolve.ts`: every builtin rung, in `recommended` and in the `daily-*`/`geeky-*` lanes, is served only by its listed providers, so a lane never lands the session on a gateway's copy of its model (`opengateway/anthropic/claude-opus-5-5`). A lane no listed provider serves is `unavailable` and keeps the session model with the existing one-line notice. A user's bare model id, which names no provider, still matches anywhere. `rankedProvidersOnly` is gone: it was the only builtin that had the listed-only rule, which is now the rule. - `components/task/category-unavailable-warning.ts`: when only an unlisted provider serves a hidden category's chain, the one notice per session names it and the exact opt-in line (`categories.<name>.model = "<gateway>/<model>"`); `details.unlisted_provider_model` carries it for remote clients. ## 2026-10-11 - Onboarding rides the first real prompt (#9905) `src/components/onboarding/component.ts` no longer claims first-run state or starts a model turn when a session opens. An interactive session with UI receives one hidden `omo-onboarding:context` message on its first real `before_agent_start` prompt. The handler is not preview-safe and also rejects preview events explicitly. Worker, headless, disabled, extension-triggered and delivery-triggered turns cannot claim onboarding. The TUI shows a static welcome until that prompt. Explicit `--onboard` still starts the guided tour immediately in TUI; RPC defers the forced tour to its first user prompt. The skill distinguishes task-first context entry from the explicit tour. A `Symbol.for("omo.onboard")` latch on `globalThis` makes the forced tour run once per process on in-process paths (TUI, socket host, and `--session-runtime in-process`) and across `/new`, `/resume`, and `/fork` within one worker. The default stdio `--multi-session` worker runtime gives each `open_session` its own realm, so newly opened workers still repeat the forced tour; the once-per-host gap is tracked in [#9917](https://github.com/code-yeongyu/oh-my-openagent/issues/9917). The forced latch is set when the tour is claimed, not when it succeeds, and is not reset on release. This deliberately prevents later sessions in that process from repeating a forced tour whose first turn failed or aborted. A retry in the same session re-claims the marker without re-injecting when `getBranch()` already contains `omo-onboarding:context`; the earlier context remains in that session's history. Claim ownership is local to the injecting session and active run. Automatic retry retains it; terminal failure, abort, preflight rejection or teardown before completion releases it through `state.ts` `releaseOnboarding`. Settlement checks the end event again for late aborts. A successful turn retains the install-wide marker, and a forced tour never deletes a marker it did not create. `src/extension/types.ts` exposes the host's existing `sessionKind`. `getBuiltinSkillsRoot()` now resolves source-mode `.ts` modules to `packages/omo-senpi/skills/` instead of the wrong parent directory, while built extensions continue to resolve `plugin/skills/`. This also fixes source-mode skill paths for `skill-pointers`, `init-deep-advisor`, and `omo-native-tools`. Tests check that the emitted onboarding skill path exists in source and bundle modes. This fixes background-session onboarding for desktop #2197 and #2199 without changing Senpi or requiring each RPC caller to opt out. The desktop greeting card and pin remain downstream work; the independent init-deep advisor startup dialog is tracked in #9904.