Explicitly consume transport receipts in the browser shim. Preserve queue
projections and subsequent real model events. Extend the existing bundled
shim event test; reproduced before the fix and passed after it.
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>
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>
- add /api/sessions/auto-title route and host autoTitle dep
- web shim delegates maker.autoTitle to host instead of returning false
- host writes normalized first-message title only while the row is still
the default sentinel and broadcasts session_changed so sidebar updates
- unit test coverage: host tests 35/35 pass
Signed-off-by: CHEYAN <me@iamcheyan.com>
- add /api/sessions/switch-agent and /api/sessions/agent-switch-intent
- register pending intent, broadcast agentSwitchIntent, apply it on the
next enqueue (updates agentKind/model/providerId/effort/fastMode)
- shim delegates maker.switchSessionAgent / getSessionAgentSwitchIntent
to the host instead of silently writing session fields
- cover the route contract in server tests
Verified end-to-end: Pi -> Claude Code -> Pi switches persist and the
next message runs on the target engine (CLAUDE_OK/PI_OK); UI shows no
RPC failures or '未生效' toasts.
Signed-off-by: CHEYAN <me@iamcheyan.com>
Avoid unsupported RPC noise when web host client marks session
attention; matches existing clearSessionAttention no-op handling.
Signed-off-by: CHEYAN <me@iamcheyan.com>
- add /api/sessions/delete route, deleteSession dep, and session_changed
deleted event so web client can delete sessions (D5)
- wire localDb.sessions.delete in shim
- allow and apply title field in host session create (used by web audit
and UI flows)
Signed-off-by: CHEYAN <me@iamcheyan.com>
Cover local themes, Work Louder/xbox probes, relay, workspace/projects
root, worktree recycle, auto-update and log upload settings reads seen
while traversing all settings tabs in the host web client.
Signed-off-by: CHEYAN <me@iamcheyan.com>
- align host and shim event shape to MakerEventPayload { sessionId, event }
- auto-start SSE event stream on boot and listener registration
- enable real-time thinking and text streaming in web client without F5 reload
Signed-off-by: CHEYAN <me@iamcheyan.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>
- Connect local SQLite session queries (selectSessionListRows with ordinaryTaskListFilter and camelCase mapping) so the left sidebar populates all 192 active tasks.
- Bind webSession to a deterministic profile hash rather than random per-boot bytes to prevent 401 unauthorizations across host restarts.
- Populate full channel definitions and fallback shapes in apps/web/shim.js for companion cloud, goal state, plugin market, billing usage & orders, local CLI scans, media storage, memory management, and agent binary versions, preventing React Error Boundary triggers across all views.
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 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>
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>
Expose interrupted-pending, error-tail-pending and interrupted-resume-candidates
through the host using the desktop's own portable queries, wire them into the web
client, and proxy the three channels into Electron client mode.
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>
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>
The renderer submits through maker.input.* rather than maker.send, so the host
now owns a real per-task queue (enqueue, stop, steer, remove, resume) with a full
AgentInputProjection, dispatches the next item when a turn terminates, and fans
every runtime event out over one SSE stream the browser forwards to
maker.onEvent. Messages created by the renderer are written to the shared
messages table and read back through the same mapper.
Verified: a queued turn reaches the agent and streams text/done; the task route
renders with the full projection enabled.
Signed-off-by: CHEYAN <me@iamcheyan.com>
The preload exposes plain objects whose identity renderer code memoizes on
(useMemo([api, ...]), external-store subscribe/getSnapshot pairs). Building a new
Proxy per property read made those keys change every render, so the read-aloud
store re-subscribed forever and the task view died with React #185. Cache one
Proxy per channel path.
Verified in the browser: the task route now renders its composer, message area
and right sidebar instead of the error boundary.
Signed-off-by: CHEYAN <me@iamcheyan.com>
Bisect shows the loop sits inside CCAgentSessionContent before the first commit,
but short-circuiting the two effects in the identified range does not remove it,
so build-level bisection has reached its limit. Also reuse the previous parsed
response when the host returns identical bytes, keeping object identity stable
for stores that compare snapshots.
Signed-off-by: CHEYAN <me@iamcheyan.com>
Record per-capability status with the evidence behind each claim, and fix the
shim members the preload answers synchronously (shortcut state, voice readiness,
ghost unread/recent) so snapshot stores stop seeing promises.
Signed-off-by: CHEYAN <me@iamcheyan.com>
sidebarSettings.loadSnapshot is a sendSync read; returning a promise made every
consumer see a fresh value and kept re-rendering. Serve it as a frozen value
stamped with the host owner.
Signed-off-by: CHEYAN <me@iamcheyan.com>
Implement localDb.messages.list as the bare array the preload promises, answer
historyView with a real empty page for tasks that provably have no messages
(non-empty tasks fail loudly until the windowed reader is ported), and report
task usage from the stored session row.
Signed-off-by: CHEYAN <me@iamcheyan.com>
Cache the capability descriptor per agent and answer the voice-readiness
channels with frozen states, so stores that compare snapshots by identity stop
seeing a new value on every read.
Signed-off-by: CHEYAN <me@iamcheyan.com>
Serve slash-command/skill surfaces from the registered agents and return the
shapes the renderer polls (bot groups, device link, interrupted-task probes,
shortcut state) instead of rejecting every read. Constant answers are frozen so
snapshot comparisons stay stable.
Signed-off-by: CHEYAN <me@iamcheyan.com>
The preload exposes some members as plain strings; the shim proxied them as
functions, so string coercion inside render rejected and re-entered the error
boundary. Serve the constant ones as values and freeze the remaining constant
snapshots.
Signed-off-by: CHEYAN <me@iamcheyan.com>