- host-regressions now also runs `pnpm --filter @cindy/host typecheck` once (on
Linux; types are platform independent) inside the change-selected job that
verify already requires. A shared desktop body that gains a port wired only
in the desktop assembly passes the desktop checks but is caught here instead
of at runtime in the Host.
- architecture-invariants §5 records the convention for bodies shared by the
desktop and the Node Host: no direct Electron dependency, desktop assembly
in *.desktop.ts, factory port injection, wire a new dependency into both
launchers, run the Host test and typecheck. AGENTS.md and the dev-rules
README point to it.
- headless-runtime-plan.md: the merged batches no longer say "local,
unpublished".
Assisted-by: Cindy (https://cindy.app)
Signed-off-by: Dash <125997726+dashhuang@users.noreply.github.com>
Keep queued message display separate from stored payloads, share tags and search with Host, and preserve desktop plugin setup and commit semantics.
Assisted-by: Cindy (https://cindy.app)
Signed-off-by: Dash <125997726+dashhuang@users.noreply.github.com>
Point existing wiring guards at the shared snapshot service and desktop
assembly. Verify accepted callback commit, cancellation rollback and discard
through observable behavior. Add a repeatable isolated scheduler command
and record the actual scope and limits of desktop and plugin verification.
Assisted-by: Cindy (https://cindy.app)
Signed-off-by: Dash <125997726+dashhuang@users.noreply.github.com>
Keep scheduler business modules at their original paths and inject desktop
services through explicit assemblies. Reuse scheduler queue admission and
accepted callback handling in the Host durable queue, including Stop races.
Exercise script execution, capability denial and restart persistence with
an isolated SQLite integration fixture. Preserve the six remaining shared
module paths so upstream changes continue to land in the common bodies.
Full Host startup wiring, companion/IM ownership and Linux credential
deployment remain pending and are recorded in the implementation plan.
Assisted-by: Cindy (https://cindy.app)
Signed-off-by: Dash <125997726+dashhuang@users.noreply.github.com>
Preserve upstream behavior while sharing platform-independent runtime services.
Repair eager desktop port capture and settle silent startup owner boundaries.
Keep the ongoing headless work local; full confirmation is recorded separately.
Assisted-by: Cindy (https://cindy.app)
Signed-off-by: Dash <125997726+dashhuang@users.noreply.github.com>
Preserve the implemented task, Device Link, plugin and model runtime work locally before integrating main. Full multi-client, automation and platform acceptance remains incomplete.
Assisted-by: Cindy (https://cindy.app)
Signed-off-by: Dash <125997726+dashhuang@users.noreply.github.com>
- updateSession applies permission mode and model to a live Session before
persisting; a runtime refusal fails the request instead of reporting success.
- Store every assistant message of a tool-use turn under its own id (the later
answer used to collide with the first message's clientId and be dropped);
error rows use a distinct id.
- Device-link approvals resolve through the interaction broker's respond().
- Declare apps/host in the test-workspaces manifest (it runs in the dedicated
Host regressions job) so unit shards stop failing on manifest coverage.
- Make Host tests portable to Windows (path separators, POSIX mode bits,
file URL conversion, tmp dir).
Assisted-by: Cindy (https://cindy.app)
Signed-off-by: Dash <125997726+dashhuang@users.noreply.github.com>
Address the open review findings on the Host web client without changing how
the desktop starts: the desktop no longer auto-discovers and joins a running
Host (only an explicit CINDY_HOST_API does).
- pairing: one-time pairing exchanges for a session cookie; the home page no
longer issues credentials or embeds the API token; Host/Origin checks,
session expiry closes event streams, logout clears cookies.
- credentials/accounts: provider keys are scoped by account/provider/engine and
never fall back to the gateway key; model catalog cache is isolated per
account; logout reuses the desktop saved-account tombstone policy; macOS and
Windows credentials go through a private Electron safeStorage helper.
- execution: input queue claims its slot before async preparation, keeps input on
failure, stops cleanly while preserving streamed output, pauses on save
failure, and deleting a task stops and clears it; SDK session context is
restored after refresh and Host restart.
- web shim: unsupported actions fail instead of reporting success.
- desktop explicit Host mode: auth, interaction and input-queue events reach the
existing channels; shared storage cores (project aliases, recent workdirs,
ghost snapshot worker) are used by both desktop and Host.
- CI: Host regression matrix on macOS, Windows and Linux; fix the task tag
migration test to use the new migration config.
Out of scope here: a windowless Electron helper and custom MCP storage
extraction. Simulated OS tests do not replace real keychain/DPAPI or
three-platform validation; see docs/host/pr-9246-completion.md.
Assisted-by: Cindy (https://cindy.app)
Signed-off-by: Dash <125997726+dashhuang@users.noreply.github.com>
A desktop build removes .vite/renderer, which left a running host serving 404
until restarted. The web root is now resolved per request, and the dev launcher
builds the bundle when it is missing.
Verified: host started without a bundle answers 404, then 200 once the bundle
appears, with no restart.
Signed-off-by: CHEYAN <me@iamcheyan.com>
During an Electron client-mode run the host pid held the only runtime lease, the
client never opened the profile database, and the host kept serving after both
the browser tabs and the Electron process went away.
Signed-off-by: CHEYAN <me@iamcheyan.com>
Client mode now sets a flag the local DB respects, so the Electron client never
becomes a second writer on the profile the host owns; the guard has a test. The
web shim also answers the startup-stall report instead of rejecting it.
Records the three acceptance criteria and the residual list (manual OAuth,
plugin execution sandbox, Codex Responses proxy, scheduler, device-link, file
dialogs, history paging) in the status doc.
Signed-off-by: CHEYAN <me@iamcheyan.com>
The host now builds the same owner-scoped memory manager Desktop uses (same
settings file, same sqlite factory), enables it before the agents snapshot the
flag, and injects the cindy_memory provider. Verified end to end: a real Claude
turn listed the server's tools, wrote a memory and read it back.
Also passes the manager to the agents, which is what actually enables the
in-process server, and covers the settings reader with a unit test.
Signed-off-by: CHEYAN <me@iamcheyan.com>
A bare mcp_servers.cindy_memory.enabled entry without a transport makes Codex
reject the whole thread ('failed to load configuration: invalid transport').
cindy-host registers no MCP bridge, so its Codex threads could not start at all;
the override now requires the server to exist, which Desktop always did.
Verified: cindy-host Codex threads start and stream. The remaining gateway-lane
gap (Responses proxy) is recorded in the parity ledger. maker-core codex suite:
1049 passed / 11 skipped.
Signed-off-by: CHEYAN <me@iamcheyan.com>
API turns had no interaction resolver, so every tool call was denied as
no_listener_attached and file access silently failed for API clients. The chat
handler now attaches the broker, and a test drives an approval through the event
hub. Verified end to end: an approved Bash call wrote proof.txt in the session
workdir and the reply echoed it.
Signed-off-by: CHEYAN <me@iamcheyan.com>
Without a Secret Service entry the login exits with an explicit
CREDENTIAL_STORE_UNAVAILABLE message; records are written 0600 and never in
plaintext.
Signed-off-by: CHEYAN <me@iamcheyan.com>
Single-account profiles initialize to ready without CINDY_HOST_OWNER; a
two-account profile stays uninitialized with an explicit reason.
Signed-off-by: CHEYAN <me@iamcheyan.com>
Replace the stale stage-4 blocker with the resolved root cause and the verified
matrix for browser and Electron clients, and name the remaining host-side gaps.
Signed-off-by: CHEYAN <me@iamcheyan.com>
Polling through pending to a code now has the same end-to-end coverage as the
loopback listener, so both authorization shapes are exercised without a real
account. Host suite: 47/47.
Signed-off-by: CHEYAN <me@iamcheyan.com>
cindy-host status [--json] prints only authenticated/realm from the adopted
session record, so the operator and scripts can confirm login state without
handling tokens.
Signed-off-by: CHEYAN <me@iamcheyan.com>
Cover PKCE challenge derivation, state validation, the code exchange and the
credential write without a real account; a mismatched state must reject without
storing anything. Host suite: 46/46.
Signed-off-by: CHEYAN <me@iamcheyan.com>
The host now adopts the only account database in a profile instead of requiring
CINDY_HOST_OWNER (multiple accounts are refused rather than guessed). pnpm
dev:host reuses a running host or starts one before launching the desktop, so the
default dev path never falls back to the embedded runtime.
Verified: pnpm dev:host reused the running host and the desktop entered client
mode with the host serving every runtime channel.
Signed-off-by: CHEYAN <me@iamcheyan.com>
The host publishes host-endpoint.json (pid + loopback URL) on listen; the desktop
validates the pid and enters client mode without any environment variable,
installs the proxies at startup (not behind the splash gate that only the
embedded runtime satisfies), and keeps them authoritative when other modules
register the same channels. With a host running the runtime factory throws, so
the process structurally cannot assemble one.
Verified: client mode auto-selected with no env var, 21 channels proxied, 42
duplicate registrations suppressed, zero errors in the run.
Signed-off-by: CHEYAN <me@iamcheyan.com>
setMakerClientMode makes every getMaker() call throw, so no lazy path (scheduler,
device-link, tray probe, MCP refresh) can build a second runtime in the client
process.
Signed-off-by: CHEYAN <me@iamcheyan.com>
The store now reads userData through the existing path port and takes its window
fan-out via an injected broadcaster (wired in bootstrap), so the host can reuse
the same implementation. Expose /api/turn-change-sets/list and proxy the desktop
channel in client mode. Change-set tests: 43 passed.
Signed-off-by: CHEYAN <me@iamcheyan.com>
The host constructs the desktop's own GhostManager with owner-scoped roots
instead of maintaining a second plugin registry, serves it at /api/ghosts, feeds
the web client's synchronous list channel from a boot prefetch, and replays it
for Electron client mode. Host suite: 43/43.
Signed-off-by: CHEYAN <me@iamcheyan.com>
A real turn with permissionMode=ask published interaction_request, accepted the
HTTP response and continued to a file write and final reply.
Signed-off-by: CHEYAN <me@iamcheyan.com>
Add an interaction broker that publishes requests on the event stream, resolves
them from an HTTP response and denies on abort; expose pending/respond routes,
route interaction events to their preload channels in the web shim, and proxy the
two desktop channels in client mode. Host suite: 42/42.
Signed-off-by: CHEYAN <me@iamcheyan.com>
Add /api/sessions/update with an explicit field allowlist (title, status, pin,
mute, model/effort/permission/fast/plan), route it from the web client and proxy
the desktop channel in client mode. Verified by renaming a stored task through
the host and reading it back.
Signed-off-by: CHEYAN <me@iamcheyan.com>
Cover list-available-agents, list-agent-commands and list-agent-skills with the
host endpoints that already serve them.
Signed-off-by: CHEYAN <me@iamcheyan.com>
Serve the desktop login entry state and local-mode switches so a host profile
without an account session reaches the normal sign-in screen instead of a
channel error; local mode itself still stops at the startup gate (documented).
Signed-off-by: CHEYAN <me@iamcheyan.com>
A fresh client could never finish its first-run visibility migration while the
claim said another owner held the namespace, so the catalog stayed pending.
Report the claim for the owner that actually holds the profile lease; the
Electron client-mode catalog then refreshes through the proxied channels.
Signed-off-by: CHEYAN <me@iamcheyan.com>
Add the claim endpoint, prefetch it in the desktop and replay it for the
renderer's synchronous read, and proxy the pricing channels. With a separate
Electron-ABI native binding the desktop and host can run together; the task,
provider and capability reads now come from the host, while the renderer's
catalog snapshot still degrades (tracked in docs).
Signed-off-by: CHEYAN <me@iamcheyan.com>
Installing them earlier made the later maker:* registration throw on a duplicate
handler and skip every subsequent channel (remote-ssh, project-automation). The
dev launch now prints the delegation target and the proxied channel list and the
renderer reads tasks, providers and capabilities through the host.
Signed-off-by: CHEYAN <me@iamcheyan.com>
Cover local-db:sessions:create, messages:estimated-value, maker:input:remove and
model-access:get-status with the host endpoints that already exist.
Signed-off-by: CHEYAN <me@iamcheyan.com>
Map maker:send onto the host input queue (reporting acceptance while the answer
arrives on the event stream) and serve maker:list-active from the host task list.
Record the reachable stage-2 evidence: the login entry point issues a real PKCE
authorize URL and a restart reuses the adopted session without re-authorising.
Signed-off-by: CHEYAN <me@iamcheyan.com>
With CINDY_HOST_API set, the desktop skips assembling its runtime and proxies
tasks, task messages, providers, agent capabilities and the composer input queue
to the host, relaying the host event stream into the same push channel. Loopback
and profile-token requirements are enforced; channels outside the allowlist fail
loudly instead of starting a second runtime.
Verified: the delegation unit tests pass and the desktop typecheck is clean; a
real Electron launch with the remaining channels is still outstanding.
Signed-off-by: CHEYAN <me@iamcheyan.com>
Record the plugin page evidence, the remaining stage-5 work list and the current
verdict on the three acceptance criteria.
Signed-off-by: CHEYAN <me@iamcheyan.com>