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>
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>
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>
- Load custom providers from SQLite custom_providers table in cindy-host
- Support Pi agent capabilities and models from custom providers (e.g. DEEPSEEK on magpie-debian)
- Implement windowed chat history with createHistoryViewReader, supporting backward pagination and workDetails
- Fix chat history truncation and epoch duration calculation in web client
- Add localDb.messages.workDetails in web preload shim
Signed-off-by: CHEYAN <me@iamcheyan.com>
Consume the agent's text events while a queued turn runs and store the user and
assistant rows in the shared messages table (partial text survives Stop), encode
content exactly as the desktop does, and answer historyView through the shared
projector so a reload restores the conversation.
Verified in the browser: a new task streams a real reply, and reloading the page
(or opening it in a fresh tab) shows both the user message and the answer.
Signed-off-by: CHEYAN <me@iamcheyan.com>
Make the database entry Electron-free (host UI, copy and slimming are injected),
add a Node loader for maker-core's `?raw` prompt assets, build the real
Maker/ClaudeCodeAgent graph over the shared storage, and expose POST /chat that
forwards Session events as SSE.
Verified: host /health reports the claude-code agent; authenticated /chat
streams the real runtime refusal (claude-code not authenticated: not_connected)
while an unauthenticated call is 401. Desktop typecheck passes.
Signed-off-by: CHEYAN <me@iamcheyan.com>
Reuse the Desktop authorize URL builder, PKCE, hosted-callback polling helper
and session record format; only the platform facts differ (global fetch,
system browser launcher, host loopback server). Success persists the same
safeStorage record the Desktop reads, so a restart needs no re-login.
Verified: providers call reaches the real auth service and a desktop-shaped
authorize URL is produced. The post-consent code exchange still needs a real
browser session.
Signed-off-by: CHEYAN <me@iamcheyan.com>
Move the safeStorage record names into an Electron-free module both processes
import, then project the stored session with the shared auth-client schema. The
host now reports the same account as the Desktop without a new login and without
opening the profile database.
Verified against the real profile: /health reports authenticated=true,
realm=global; only the non-secret projection leaves the module.
Signed-off-by: CHEYAN <me@iamcheyan.com>
Implement Chromium OSCrypt v11 for the Desktop credential files so the host
shares one credential truth instead of a second store. Parameters were measured
against real Desktop ciphertext: keyring application Cindy, PBKDF2-SHA1
saltysalt with one round, AES-128-CBC, 16-space IV, base64 v11 payload.
Verified both directions: host decrypts a Desktop-written record, and Electron
safeStorage decrypts a record written by this module. Missing Secret Service
raises CREDENTIAL_STORE_UNAVAILABLE; writes are 0600 and atomically replaced.
Signed-off-by: CHEYAN <me@iamcheyan.com>
A host must not become a second runtime for the same owner. Take the shared
SQLite exclusive lock before opening storage and report a blocked state when
another process owns it; crash release comes from the OS, not a heartbeat.
Verified: a probe process holding the lease makes a second host report
runtime.state=blocked with storage unopened.
Signed-off-by: CHEYAN <me@iamcheyan.com>
Extract host facts (logger paths, drizzle dir, sqlite-vec path) out of the
Electron imports so cindy-host can reuse the production storage stack instead
of growing a second one. Storage startup now shares the schema lease, the
migration runner, CJK trigger installation and vector loading, and both hosts
wrap the same handle-bound DbClient and OwnerSessionStorage mapping.
Verified on a temporary profile: 145 migrations applied, 87 tables, one task
created through the shared adapter and still listed after a host restart.
Signed-off-by: CHEYAN <me@iamcheyan.com>