This is the engineering reference for runtime behavior and validation. For installation and daily use, start with the wiki's desktop-only guide or remote/web guide.
The Tauri app runs the existing Astro 7 backend and Rimeward harness locally. Node 22.22.0 is a Tauri sidecar; application code, native dependencies, migrations, assets, and pinned Chromium are bundled for each target OS/architecture. The local owner is created on first launch. When a server is connected, the app shares its dashboard, pages, appearance, and Rime profile. Integration requests use that account automatically; credentials stay on the installation that holds them. Standalone installations can configure their own integrations. The desktop keeps a stable loopback port; register its displayed origin and callback paths with any OAuth clients you configure locally. Initial integration authorization is performed on the desktop.
Rime’s apply_patch activity shows inline, collapsible file diffs with green additions and red removals. Compact previews retain up to three supplied context lines around changes and shorten large edits. Expand full file opens a scrollable full-file diff from the retained original when available; otherwise the view explicitly identifies the current file. Raw execution receipts remain under Execution details, and pending approvals use the same visual preview.
Workspace folder selection opens a directory browser with Home, Parent, and clickable subfolders on local desktops, connected desktops, server workers, and SSH locations. The local desktop also offers its system folder picker. Once a folder is selected, its .md files appear in the instruction-file selector; files in subfolders can be selected by entering their relative path. Only the selected instruction file is loaded.
- Build with
npm run desktop:build(Rust and platform build prerequisites required;npm ciinstalls the pinned Tauri CLI). No separate Node installation is required on the installed user's machine. - On first launch, enter your Rimeward address and approve the connection in your browser, or continue without connecting. Open Rimeward opens one dashboard. There is no local/server mode or workspace selector. The desktop shell always opens its authenticated local application so local projects keep working during an outage.
- Add a Workspace ward, choose its primary folder and any additional folders, then connect Rime, Terminal, Editor, Files, or Changes through Workspace Leylines. The primary folder appears at
/; additional folders appear at named paths such as/data. Each folder may live on a connected Rimeward runtime or an SSH host reached through one. Select instruction files explicitly inside each folder; an empty selection loads none. A Workspace does not create or move pages or other wards. Editor includes a file explorer; Files remains available separately. - Open a file from the Editor’s left-hand explorer. Use Cmd/Ctrl+P for quick open, Cmd/Ctrl+S to save, and the … menu for find/replace, go to line, word wrap, formatting, and recovery history. File tabs preserve undo history; closing a dirty tab keeps its desktop recovery for the next time it opens. Take over transfers editing control. External changes to a dirty file show Compare changes, with a code diff and explicit version selection.
- Choose Open terminal for a shell that is immediately ready to type into. + opens a new-session dialog for Shell, Codex, or Claude Code; the Rime toggle is visible and shell selection is under Shell options. Switch sessions using the horizontally scrolling tabs in the top bar; arrow keys, Home and End navigate the tabs. Each tab has a visible close button (or press Delete on a focused tab). Closing a tab keeps its process running and its saved screen available; use … → Task manager… to bring it back, end running sessions, or delete saved terminal history. Closed tabs stay closed after reload. Session screen dimensions do not change the ward size. Search with Cmd+F or Ctrl+Shift+F; Ctrl+F stays available to the shell. The … menu holds session management, rename, interrupt, and End session. Ended interactive sessions also have Delete session…. Take control appears when another client owns input; Review & take control reconciles uncertain input before continuing. Phone views show an extra-key strip; desktop users can enable it from the menu. Removing the ward only detaches its view; ending a process retains its saved screen, with Resume session as a separate action.
- Use ordinary page tabs everywhere. Workspace definitions and Leylines follow the shared dashboard; opaque source references identify the folders. Native paths, credentials, file contents, recovery buffers, and native sessions stay on their source runtime. A conversation or terminal retains its original owner when viewed elsewhere. An unlinked new session starts on the current desktop, or the account's server workspace worker from a browser. Desktop tools default to
Documents/Rimeward/workspace. The ordinary web server never executes native commands; an administrator enables the per-user worker service once, then workers are provisioned automatically.
Workspace Leylines are persistent WardInstance.workspace references, separate from event/action edges. Each consumer has one Workspace. The Workspace config contains a revision and a list of {id, mountPath, runtimeId, rootId, instructionsPath?} records; its canonical fingerprint protects changes made across clients. Configuration and connection saves check active work and dirty buffers before changing anything. A missing link or unavailable primary folder blocks the workspace; it never silently selects another machine. A secondary outage makes only that mounted path unavailable. Disconnect consumers before deleting their Workspace. SSH connection setup requires explicit host-fingerprint verification; private keys remain on the gateway. Passwords/passphrases are session-only unless the user selects Remember credentials; saved connections can be selected again to refresh credentials without changing their pinned host identity. An unconfirmed remote process stop keeps the session blocked until the user verifies termination and chooses Confirm remote process stopped….
The New terminal dialog accepts a virtual Working folder, so /data starts the native session on that mount's host. Changes has a Workspace folder selector for each mounted repository. Native commands use the selected host's real folder; virtual mount names do not become OS mounts inside an ordinary shell.
Legacy project pages migrate in place before the dashboard captures its editing baseline. Later migration changes are broadcast to open dashboards. Existing project IDs remain the native root IDs, preserving buffers, recovery, terminal screens and history. A ward's saved folder takes precedence over its former page default. Offline owners and pages without room for a Workspace remain pending until the selection can be verified and the ward added. Migration never guesses the first registered folder or copies project contents.
Codex and Claude Code must already be installed and signed in locally. Setup links are in the new-session dialog. No CLI or provider credential is installed or copied automatically. Every terminal has one Let Rime control toggle, on by default for shells, Codex, Claude, and Rime-created sessions. On lets Rime type and answer prompts alongside the user; off blocks Rime input, including interrupts. Human keyboard input stays available in either state. The choice survives reloads and Resume session; existing saved choices are preserved. Take control is only needed to move the keyboard from another viewer or recover unconfirmed input. Codex/Claude retain their standard CLI protections; existing saved launch flags remain compatible. Shells run with the desktop account's OS permissions. Resume session starts a process in the same tab with saved settings after the previous process ends, without replaying its task. Codex and Claude use their native conversation chooser (Codex CLI, Claude CLI); no most-recent conversation is guessed. Rime’s terminal_start reuses a project session of the requested kind, preferring a running one; pass session to select an exact saved session, or newSession:true to explicitly create another. It never sends an initial task into a reused session.
Task manager lists the current project's Shell, Codex, Claude, and Rime command sessions in one table. Search, filter All/Running/Saved, sort by session name/CPU/memory, and use per-row Open, End, or Delete. CPU, resident memory, and the root PID refresh every two seconds while the dialog is visible. Usage includes currently attached descendants; detached/reparented background services are outside the session tree. CPU is sampled from cumulative process time, with 100% representing one core. Memory sums resident/working-set bytes and may count shared pages more than once. Missing counters and the initial CPU sample display a dash, never a false zero. Ended sessions have no live resource counters. The OS process sample is shared across concurrent viewers and only session-owned aggregates leave the desktop. No command lines or environment variables are collected. Unix uses native ps (counter definitions); Windows uses Win32_Process counters. The table and actions use the shared icon renderer and theme tokens. Rows darken as CPU and memory usage rises, relative to the busiest session with baselines of one CPU core and 256 MiB. Shading blends the user’s surface color toward black, with a smaller range in light themes to preserve contrast. Row sorting animates between positions; dialog/row transitions, shading, and usage bars honor reduced motion.
Task manager supports row checkboxes, Select all matching the current search/filter, End selected, and Delete selected. One confirmation names the operation and count. A mixed selection ends only running sessions or deletes only saved sessions; failures remain selected and are reported individually. History reveals completed command logs, hidden by default. Cleanup retains at most the newest 100 completed command logs per user for 30 days, pruning on access. Interactive Shell/Codex/Claude sessions remain resumable and are not auto-deleted. Legacy terminal records with unknown completion times begin their 30-day window when upgraded. terminal_list and terminal ward context omit completed command logs unless explicitly requested (history:true for the tool); opening a specific saved screen remains possible while retained.
Rime's terminal_input has an optional boolean send, default true: ordinary text is inserted, then one Enter is written separately after a 250 ms paste-settling window. A single explicit trailing CR (or CRLF) supplies that Enter rather than adding a second one. With bracketed-paste mode enabled by the terminal application, text is framed as one paste, including multiline text (CRLF line endings normalize to LF). Multiline or tabbed text without that mode fails before writing anything, rather than executing partial lines. send:false writes exact raw data with no added key: embedded CR, LF, and other control characters can still execute or submit. Pure controls, empty/whitespace-only input, and mixed text/control-key workflows also stay raw with no extra Enter; use this path for arrows, shortcuts, and explicit approval keys, only after reading the current screen and obtaining authorization for the actual action. Sending is not automatic permission approval.
For Claude Code and Codex slash commands, prefer terminal_command. A fresh terminal_read returns commandInput.observation only when it recognizes an empty CLI input line; it does not clear drafts or guess how to dismiss a menu. The one-use observation expires after 30 seconds and is invalidated by any other input or output. Commands are sent without bracketed-paste framing, and Enter is written only if the exact command is still at the input cursor after settling, including visible soft-wrapped input. Shell sessions, multiline/control-key input, busy CLI phases, and parked permission requests or questions are refused. Use only commands supported by the installed CLI or explicitly supplied by the user, with authorization for their effects. This is a guarded native-terminal submission path, not a claim that either CLI exposes a general command RPC. Unknown prompt layouts and commands whose beginning has scrolled out of view fail closed rather than guessing.
Input receipts describe transport, not application acceptance: sent:true means the PTY write returned; inputMode identifies raw, text, bracketed paste, or slash-command. submission:enter-written means the separate Enter write returned, caller-controlled means raw input was passed through, withheld means text was written but the delayed Enter was cancelled, and unknown means its delivery could not be established. enterAdded distinguishes an added Enter from the caller's trailing CR. No receipt proves CLI acceptance or task completion. Cancellation, other input (including human keys or interrupts), turning Let Rime control off, a changed paste mode, or a replaced/ended process prevents the delayed Enter. A second managed send during settling fails before writing, rather than combining its text with the first submission. Read the same terminal before continuing after withheld or uncertain delivery; never replay the text blindly. UI/live keyboard input remains raw, and local and paired-device model tools use the same guarded implementation.
Terminal output uses one shared event stream per desktop rather than polling. Input is batched in order, with no automatic retry after a lost acknowledgement. PTY/parser queues use high/low watermarks, slow stream readers reconnect, and missed output reconciles from a sequence snapshot. xterm uses WebGL when available and falls back to its DOM renderer; both client and headless terminals use Unicode 11 widths and retain 10,000 scrollback lines. Search, copy/paste, session rename, clear scrollback and screen-reader support are available from …. Cmd/Ctrl+Shift+F finds text, Cmd/Ctrl+Shift+C copies a selection, and Cmd/Ctrl+Shift plus/minus adjusts terminal text size (0 resets). Ctrl-click or Cmd-click opens HTTP(S) links. Escape stays with the terminal application in the expanded view.
Transient snapshot failures retry independently of terminal activity; input is enabled only after both snapshot reconciliation and the live stream are ready. Explicit Quit drains pending output through xterm before saving its screen and stopping the process. Opening the selected interactive tab after runtime shutdown automatically restores its screen and starts its shell or native CLI resume chooser in place. Explicitly ended sessions remain stopped until resumed; one-shot commands are never replayed. A tab closed by the user stays hidden until opened in Task manager…. Delete session removes the stopped terminal record, saved screen, and review receipt; project files and native Codex/Claude conversations remain. Running sessions must be ended first.
Windows also releases the PTY after a shell exits naturally, so ConPTY's worker does not keep the runtime alive. Cleanup is applied once per session, including explicit termination and Quit. Ending a session waits for native exit and the final saved screen before completing. Windows input pipes cancel queued writes before termination; an unexpected input-pipe error is logged and ends that session as Input failed, without replaying uncertain input or crashing the runtime.
Only canonical NNN_lowercase_name.sql migrations are loaded. Finder/cloud conflict copies such as 001_init 2.sql are ignored instead of being treated as new database migrations.
The server and desktop share one dashboard record: pages, ward configuration, execution placement, theme, and display identity. On first connection the server supplies Home and appearance. Existing project pages and custom desktop wards are merged in; matching starter wards are not duplicated. Conflicting local IDs are remapped with their saved content, and a pre-join dashboard is retained locally. Subsequent changes use the same hash-based reconciliation and recoverable conflict handling as Rime's files.
Execution placement is internal metadata. Browser requests for a project ward are relayed to its computer; on that computer they stay local. Connected integration requests use the server's authenticated account without copying its secrets. Project Rime tools use local files and terminals while integration tools use the connected account. Streams from the relevant owners feed the same interface. An unavailable computer makes its tools unavailable; it does not replace the dashboard or replay an action.
All appearance knobs are shared, including light/dark mode, icon set/style/stroke/tint, fonts, colors, glass, scene backgrounds, and header scenes. Uploaded backgrounds and logos sync as content-addressed application assets. Their account-local filenames are remapped on receipt; image ownership checks remain intact. Instance brand assets are read from the server and cached on the desktop. Appearance assets remain available offline. Project folders are never part of this asset synchronization.
The native shell retains its restricted navigation commands for older bookmarks and browser clients, but normal navigation uses one page list and one origin. Phone clients stay on /dash; per-ward relay requests run underneath it. Offline desktop pages and saved appearance remain accessible, while services requiring the server report connection loss. Reconnection reconciles state without replaying terminal input or uncertain mutations.
An unassigned My computer browser ward runs on the current desktop after account pairing. An explicit ward or page device still selects that computer; This server and Browserbase keep their server connection.
CodeMirror provides editing, syntax support, completion, search/replace, and diff views. The pinned Biome package supplies the actual lint and formatting rules; Rimeward has no custom linter. Live diagnostics cover JavaScript/TypeScript (including JSX/TSX), JSON/JSONC, CSS, GraphQL, and HTML. Other languages retain syntax support where available and explicitly show that no linter is configured. The Problems panel lists current-file diagnostics and jumps to their locations. Dark themes use CodeMirror’s One Dark syntax colors.
Interface icons use the selected icon or emoji pack, including editor folding, diagnostics, terminal keys, and conversation controls. Live changes preserve the configured style, tint, size, stroke, and opacity. User-authored emoji, reactions, and custom Notion icons remain content.
Analysis runs only on the desktop, in a private temporary directory with a bundled recommended configuration. It does not load project plugins or execute project scripts. Temporary buffers are removed after the check; no content is sent to a third-party lint service. Checks are debounced and limited to 1 MiB, 100 displayed diagnostics, two concurrent processes, and ten seconds. Format document changes the recovery buffer; Save is still required to change the working file. Project-specific linter configuration and language-server integration can be added separately.
The desktop apply_patch tool saves context-hunk diffs directly to disk, with familiar *** Begin Patch / *** End Patch, Add/Update/Delete File, and Move to syntax. It validates the entire patch before writes, refuses dirty or other-owned buffers, and retains recovery copies. See the patch tool format and safety contract. project_edit remains available for explicit whole-buffer replacement and unsaved recovery editing. Neither tool takes over human input.
The first configured server is the shared Rime profile. New agent wards use Rime default, inheriting its provider/model (a persona is per ward and never shared); explicit ward choices still apply. Account → Agent shows the active connection and labels local credentials as fallbacks. Codex model suggestions come from the server account. The model endpoint only performs inference: the desktop harness retains its loop, local tools, and terminal permission checks. Provider keys and OAuth refresh tokens are not copied. If the server is unavailable, local files/history remain usable and an independently configured local provider can run new turns. Without one, the current transcript remains visible, sending is disabled, and Rime explains the offline setup requirement.
Rime's own /work files (including AGENTS.md, memory, skill folders, and scratch files), attachments, and complete chat transcripts/raw provider items synchronize through an additive per-account journal. No project root is traversed. Hash manifests transfer changed records; file deletes use tombstones. Reconnect uses base hashes rather than timestamps. Server versions win simultaneous file conflicts, with the complete local version retained under Chat history → Recovered version and an explicit restore action. Only regular files are accepted; symlinks, hardlinks, path traversal, files above 32 MiB, and more than 10,000 work files stop sync with a visible error. Polling is every 15 seconds and after turns. A different server account cannot silently receive a previously linked profile.
Chat history shows conversations from the server and desktop. Continue here makes a local continuation while preserving the original thread and any tasks still running there. It remaps attachments and retains provider replay items, but never imports pending confirmations, scheduled actions, or process state. Shared transcripts may contain code excerpts and tool output. Those are shared agent data; raw project folders, editor recovery, and native terminal sessions remain desktop-owned.
Agent wards and expanded chat share a composer. Draft text and attachments follow the ward when it expands or closes; drafts remain in memory for the current page, with no copy in a remote browser's persistent storage. Desktop Enter sends and Shift+Enter adds a line; on touch devices Enter adds a line and the Send button sends. IME confirmation does not send. Drop or paste files into chat, copy replies or code blocks, and open the activity summary to inspect tool results. New chat archives the current conversation only after the server confirms the request. While Rime works, Stop interrupts it and a new message steers the turn. Reading earlier replies holds the scroll position; Latest returns to the newest activity. Animations respect reduced-motion settings.
Type @ anywhere in Rime's composer to search wards by title, type, page or ID. Wards on the current page appear first; other pages, groups and hidden wards are included. Arrow keys choose an entry, Enter or Tab inserts it without sending, and Escape dismisses the list. Duplicate titles use page names and, when needed, a number. Mention chips explain what will be attached and can be removed. Sent messages display each mention as a readable @Ward name tag with its ward icon; the tag remains in chat history. Copying a message copies the readable name. Up to eight wards can accompany a message, including a message sent while Rime is working. Draft recovery retains the ward IDs, so renaming a ward cannot redirect a mention.
Context is captured at send time on each ward's owning runtime. Edited notes and editor recovery buffers finish saving before capture. Screenshots and drawings enter the existing image attachment/replay path for both providers. Snapshots can appear in synchronized conversation history; project roots and native databases remain local.
| Ward | Included context |
|---|---|
| Browser | Active-tab screenshot, URL, title, viewport, tab list, accessible elements and visible text. No navigation or tab switch. Cookies and browser credentials are not read. |
| Notepad | Saved text, timestamp and rendered ink drawing. |
| Editor / Files / Changes | Bound workspace, open/active virtual paths, current buffer excerpt, directory entries or Git changes. |
| Terminal | Selected session, visible screen, recent output, exit state and other session names. No input is sent. |
| Remote Desktop | Target computer and screen-access status. A mention does not acquire control or capture the screen; screen access uses the existing Rime handoff. |
| Notion | Page properties, blocks and comments; database rows or checklist items; recent pages. View settings accompany the snapshot. |
| Inbox / communication wards | Recent messages from the configured account/channel. No messages are sent. |
| Weather / Agenda / Next up / Services / Incidents / Chart | Forecast, upcoming events, selected service status, incident spans or chart source history. |
| Timer / Flow / Button | Timer state, packets, or connected Leylines and their run results. |
| Rime / Memory / Skills / MCP | Recent conversation, document index and excerpts, or connection/tool information. Mentioning another agent does not contact it. |
| Group / Link / Embed / Spacer | Child ward inventory, configured URL or layout details. Mention children individually for their contents. Cross-origin embeds cannot supply screenshots or page contents. |
Text snapshots are capped at 12,000 characters per ward with explicit truncation markers; browser text and accessibility excerpts each have a 5,000-character cap. A missing ward returns the draft for correction. Offline sources, capture failures and unsupported screenshots are reported rather than replaced with data from another computer. Captured contents are reference data, not instructions or permission to execute actions.
ask_user_question accepts question, input (single, multiple, or text), options for choice inputs, and wait (default true). Choice questions support 2–12 distinct labels; text answers accept up to 8,000 characters. The inline card uses native radio buttons, checkboxes, or a text area with the user's theme, icon choices, and reduced-motion setting. No option is automatically submitted. Answer & continue resumes the same conversation; Skip supplies an explicit cancelled result. Draft answers survive view changes and reloads.
Waiting questions use the existing durable parked-call mechanism without its approval timeout. Other tools in that batch do not run; the conversation remains paused until an answer or skip, without keeping a model request or network stream open. Answers are validated against the current request before it is consumed. Reloading restores the question; compaction waits for its answer. With wait:false, Rime can continue independent work. The answer is saved durably and delivered at its next boundary or resumes an idle conversation; it never dismisses a separate pending approval. One unanswered question is allowed per conversation. Child runs ask their parent instead of presenting a separate user form.
In the ward or expanded chat, Ctrl+B, Run in background, or /background detaches running bash, terminal_exec, terminal_wait, and ask_agent calls. Each keeps one execution and returns a task ID to the agent, which can continue independent work. Model inference and pending confirmations cannot be backgrounded. Tools also accept background:true; approval and read-only checks happen before dispatch, including confirmed calls. Native command confirmations show the exact command and project folder.
Tasks or /tasks opens the task drawer. It lists active tasks and undelivered background results; Show finished reveals retained history, with native output, paginated results, per-task background controls, and Stop where supported. task_list, task_output, task_wait (up to 30 seconds), and task_cancel provide the same controls to Rime. Completion produces a clickable notice; status enters the originating conversation between rounds or on its next turn. It never starts an extra model call. Stopping a response releases its foreground tool tasks into the background; use the task's Stop to stop the work itself. Cancellation is not rollback. Stopping terminal_wait ends that wait, leaving the observed terminal alone; peer-agent requests are not cancellable through this drawer.
terminal_exec is a desktop-only, confirm-kind tool. It starts a one-shot /bin/sh command on macOS/Linux or PowerShell on Windows in an approved project, using the existing PTY, filtered environment, output retention, and shutdown path. Routine commands appear in chat Tasks, not as new Terminal tabs, and never take focus or input ownership from an open terminal. Use Terminal … → Task manager… → Open to inspect or control one explicitly; that tab stays open across reloads until closed. Interactive shells, Codex, and Claude sessions continue to open ordinary tabs. Existing command sessions are identified from recorded terminal_exec receipts and removed from the automatic tab list without deleting their saved output; unidentifiable older sessions are left alone. Normal exits retain their actual exit_code; signal death, cancellation, or explicit termination reports a null code with exit_signal, cancelled, and termination_reason instead of a misleading zero. Session reads expose exitSignal and terminationReason, and Terminal labels distinguish cancelled, terminated, and interrupted work. Signals are never guessed when the platform does not supply one. It never types into or takes over an existing terminal. Existing ward approval settings determine whether execution pauses for confirmation. The bash tool still runs in the sandbox with a 30-second limit; use terminal_exec for real builds and long-running services.
Migration 020_agent_jobs.sql stores runtime-local task receipts, scoped to user and ward and tied to their originating conversation. Views reload them after reconnect; copying a shared conversation does not copy or restart tasks. Unfinished tasks become interrupted after a runtime restart, with no automatic retry. Up to eight tasks may run per user; the newest 100 ordinary settled receipts are retained for up to 30 days. Cleanup runs when tasks are started or listed. Child conversation identities and undelivered results for current conversations or running children are preserved; older conversations do not clutter the default list; task_list hides finished history by default and accepts history:true for explicit inspection. Live output keeps the last 64k characters, batches persistence at 100ms, and reports dropped text; final results are paginated and capped at 128k characters with an explicit omission receipt. A process exit is evidence about that process, not a review of its changes.
Connected messaging wards also support multiline drafts and retain them through feed refreshes, scoped to their channel.
Monitor traffic has its own transcript source, monitor, separate from automation. A delivered observation notice is stored as a monitor user-role row and streamed as a note event stamped source: 'monitor'; the client folds every run of them into one collapsed Monitor activity · N block, so the chat shows the count and the raw text opens on demand while Tasks keeps the full recent matches. The wake that runs a monitor turn is the system's own prompt: it is sent to the model but no user bubble is stored or mirrored for it. The turn's reply is a normal assistant message labelled monitor; when the model answers exactly No update and nobody steered a message into the turn, no reply row, toast or unread badge is produced. Observation still authorizes nothing: monitor turns never fire agent-replied or deliver to connectors. Migration 034_monitor_source.sql relabels the rows earlier builds stored as automation (observation, stopped-monitor and wake rows only, matched by the server's own literal text), so older histories fold the same way.
The chat log is reconciled by key, and a message keyed by index can change root when a source label boundary moves (a bare bubble becomes a labelled rail); the reconciler now tracks the node that replaced it and removes anything it does not own, which is what previously left a monitor block pinned under every later message.
homepage.dband the existing harness run independently on each installation.workspaces.dbstores desktop projects, recovery buffers, session screens, assignments, and review receipts. OS credential storage holds the encryption key and pairing credentials. PTY/Git environments exclude backend secrets.- The server stores device pairing metadata and the explicitly shared Rime journal. An authenticated control connection creates an in-memory, backpressured WebSocket channel for each relayed HTTP exchange. Native workspace databases and project folders are not replicated. There is no disconnected project-mutation queue.
- Normal
/dashpages share one dashboard. Stored ward/page placement routes native APIs and live events to the owning desktop automatically./runtime/<device>/…remains the authenticated transport namespace and supports older links. Its runtime bridge routes fetch/EventSource/media operations before legacy application scripts execute. The desktop resolves its own local owner; server user IDs and cookies never become local identities. - Reconnection reads terminal sequence snapshots and editor revisions. Failed/uncertain mutations and terminal input are not retried automatically. Explicit revocation closes existing channels. Existing
/api/tunnelbrowser clients retain their protocol. Opening an approved server dashboard starts its home route; native browser commands are restricted to that origin, and profiles are separated by server and paired device. Disconnects cancel stream tasks and release browser usage counts. - An explicit runtime URL is routed once, before ward lookup. The relay adds
x-rimeward-relayed: 1beside the installation token on its local hop; native shell calls without that marker still use normal placement routing. Neither header is forwarded from clients. - A missed heartbeat reconnects the desktop. A revoked or replaced connection does not reconnect and displace its successor. Pending and active channels share a per-device budget; cancelled requests release pending challenges.
- Concurrent desktop requests share one session creation. A later session keeps the shell's existing live session usable; sessions are bounded to eight per device, and revocation removes all of them. Unpairing preserves the existing shared-account identity guard.
- Dev-ward retries own a single cancellable timer. Removal and rerender stop the current renderer; delayed failures cannot revive a removed ward. Authentication failures retain their reason and retry slowly. Editor lease renewal uses one request about every ten seconds while owned, and viewers refresh about every two seconds.
- Terminals remain alive while views close. Explicit application exit requests graceful backend/browser/PTY shutdown. Restarted processes are reported as exited/interrupted, not resumed.
- Git coordination is advisory for external CLI writes. Managed worktree operations serialize on the repository's common Git directory and reject dirty worktrees, unsaved editor recovery, or running sessions.
Install the relay nginx locations inside the server block before exposing /runtime/. Disable edge/CDN caching, request capture, analytics payload capture, and error-body recording for that namespace, automatically routed ward APIs, the device connection, and /api/devices/harness. The application sets no-store headers. Only the explicit Rime sync endpoint persists shared records; project relay payloads remain transient. HTTPS/WSS is required; the server is trusted and this is not end-to-end encrypted against its operator.
For nginx, copy the snippet to /etc/nginx/snippets/rimeward-runtime-relay.conf and use
the include in the example vhost. Run nginx -t before
reloading. The server listens on loopback behind nginx; leave desktop-only environment
flags unset. Keep the existing /api/tunnel websocket route for older clients and stream
/api/logic/stream without buffering for chat and layout updates.
Cloudflare templates add narrowly scoped rules:
cache bypass and content settings for /runtime/, /api/devices/connect, /api/devices/harness, and automatically routed development, agent, browser, note, and instance APIs. Add these
rules to the zone's existing phase rulesets without replacing unrelated rules. They turn
off RUM/Zaraz, Rocket Loader, email rewriting, and body buffering for the relay.
Cloudflare's configuration settings
document these controls; body inspection is intentionally unavailable on this authenticated
stream. Keep application authentication in place. Check legacy Page Rules, Workers routes,
Logpush jobs, security payload capture, and any additional proxy when applying this setup.
Account and Admin HTML also exclude Rocket Loader, email rewriting and analytics injection:
Cloudflare-only script URLs cannot run under the desktop's loopback origin. Their separate
rule leaves body inspection unchanged. Astro serves bundled assets first; authenticated
desktop requests for missing /_astro/ files load those content-hashed files from the
connected server, so a newer server page keeps its matching scripts, styles and fonts.
Before deployment, create an online backup of the server database and its data directory, retain its encryption key securely, and save the current application and proxy configuration for rollback. Server migrations are additive and run when the database first opens. Install the matching lockfile dependencies, build with a version/commit stamp, and reload the process manager with graceful shutdown enabled. Verify the public login/dashboard, device authorization, an authenticated WSS connection, streamed requests/uploads, cache headers, revocation, and desktop-offline behavior. Inspect origin logs, database, cache/temp paths, and backup output for a unique test marker. Remove disposable test accounts and devices afterward.
npm test— existing regression tests plus root confinement, recovery/version conflicts, PTY ownership, CLI launch flags, worktree safety, relay identity isolation/revocation, and non-replication checks.npm run typecheckandnpm run build.npm run desktop:checkafter staging — desktop Biome lint (warnings fail), Rust format check, Clippy with-D warnings, and native tests.node tests/standalone-smoke.mjsafternode desktop/prebuild.mjs— bundled-Node startup/authentication, dashboard, recovery, real PTY, shutdown/restart.node tests/remote-workspace-smoke.mjsagainst a matching built runtime — first-run browser login/approval, existing server dashboard, Workspace folder creation and Leyline connections, inherited Rime provider access, shared history continuation, offline memory edits, conflict recovery, page navigation and desktop/phone viewing, shared terminal input and editor recovery, and server data/log project-marker checks. Editor smoke also edits a secondary mounted file while verifying a same-named primary file stays unchanged. Requires OpenSSL and bundled Chromium. Native folder/browser/cookie operations use a test adapter; this does not verify the actual macOS webview, native dialogs, or external model-provider calls.node tests/conversation-ui-smoke.mjsafter building — desktop/phone chat layout, draft isolation, uploads, IME/Enter behavior, copy controls, error recovery, new chat, activity, approvals, reading position, reduced motion, and messaging drafts. Uses synthetic provider/transport responses; sends no external messages or model requests.node tests/editor-ui-smoke.mjsafter building — integrated explorer, reusable project pages, tabs/undo/recovery, real Biome diagnostics and formatting, find/replace, quick open, create/rename, external conflict diffs, mobile takeover, and read-only files. Uses an isolated desktop and headless Chromium, with no model calls.node tests/terminal-ui-smoke.mjsafter building — real PTY through the terminal UI: one-click launch/control, search, menus inside expansion, session switching, lost input acknowledgements, phone takeover, permission configuration, and end/restart. Launcher guidance is tested without starting Codex/Claude or sending model requests.RIMEWARD_TERMINAL_BENCH=1 node tests/terminal-ui-smoke.mjs— prints five local command-to-searchable-output timings (including two animation frames) and idle session/control request counts; uses the same real PTY fixture and no external agents. On this macOS machine, headless Chromium at 1280×850 with GPU disabled measured a median of 742 ms atc670ec9versus 67 ms after the streaming change (five commands each); idle requests over three seconds fell from 12 to 0. This is a local fixture measurement, not a remote-network or native-webview guarantee.node tests/cli-launch-smoke.mjs— optional installed-Codex/Claude interactive launch checks in each permission mode; no tasks, approval responses, or model requests are sent.node ops/monitor-harness.mjs record <out.jsonl> [--kind claude|codex|shell] [-- args…]proxies your terminal to a real CLI session (the launch flags a terminal ward uses) and stores every output chunk with its timing, the terminal size, resizes and the exit.node ops/monitor-harness.mjs replay <in.jsonl> [--speed N | --fast] [--json]feeds that recording through the real terminal-monitor pipeline (node-pty ingestion, headless xterm,renderedLines,connectMonitorSource) in an isolated data directory and prints every observation verbatim, so a filter change can be judged against exact Claude Code / Codex output. The CLI is never run on replay but must be installed, because the session's kind is what enables the CLI chrome filter; real-time delays are the default because the monitor's 5 s on-screen window and 300 ms / 2 s flushes decide how observations coalesce.npm run test:uiruns the four editor, terminal, conversation, and remote-handoff scripts in order;npm run test:standalonechecks the staged runtime.npm run goldensrebuilds and regenerates the original six dashboard images plus editor, terminal, and chat screenshots on desktop and phone. These are documentation goldens; the smoke tests assert behavior and layout separately.
macOS release packaging signs nested Chromium apps, frameworks, executables, and native modules before Tauri signs and notarizes the outer app. CI verifies nested signatures and excludes native build intermediates from the payload.
Release validation still requires signed installers and native PTY/credential-store behavior on Windows and Linux, physical mobile touch/IME testing, real delegated-agent task/approval flows, and checking production proxy/edge logs, caches, temporary files, and backups. Automated browser emulation is not a substitute for those checks. Language servers, cross-file type checking, debugging, and VS Code extension compatibility are not included.
Windows 0.4.9 could exit before evaluating the backend: Tauri supplies a canonical \\?\ script path, and Node 22.22.0's main-module realpath fails on that form with EISDIR at the drive root. The Windows launcher now passes --preserve-symlinks-main; Tauri has already resolved the path, so Node can use it directly without stripping UNC or long-path prefixes. This applies only to the main script, not dependency resolution. The disposable Windows reproduction must exercise the native canonical script and working directory, including bootstrap HTTP; the ordinary-path standalone check alone did not expose this failure.
The native startup screen reports the current stage and, on failure, a bounded category and OS error number when available. Credential-store guidance appears only for a credential-store failure. Earlier builds displayed that guidance unconditionally, so seeing it does not establish that the store is locked. Startup errors before the backend launches and early backend exits are now recorded too; raw errors and credentials are never exposed.
On Windows, the diagnostic file is %APPDATA%\io.frostdev.rimeward\runtime-diagnostics.jsonl. When reporting a startup problem, include the app version, Windows version, installer type (.exe or .msi), the on-screen diagnostic code, and the last few diagnostic categories. If an older build produces no file, report that instead. Do not delete the saved encryption key or application data to troubleshoot startup. The existing standalone check exercises the bundled backend directly; it does not verify the installed native shell or OS credential-store access.
The September 5 WindowServer report recorded a 40-second watchdog timeout; it does not establish which app triggered it. A separate Rimeward hang report showed its main thread waiting during Quit. Shutdown previously called block_on from the UI event callback. It now defers exit, awaits backend/browser cleanup asynchronously, and exits after cleanup, without blocking the event loop. The WindowServer trigger remains unconfirmed; the app was not relaunched to try reproducing a system-wide failure.
Monitor names and groups travel with the shared dashboard for rendering. Monitor execution targets and credentials stay on their host; shared references do not create local probes. Singleton wards remain unique per owning installation when existing dashboards merge.
Rime file reads are paged by line, with a column cursor for long lines and separate access to conflicting disk text. Search, directory listings and Git tool results have bounded pages with next offsets passed as cursor; continue until complete. Search accepts file/directory scope, excludes dependency/build directories and skips unsupported file contents, and assumes files remain unchanged during continuation. Git includes a snapshot hash: restart pagination if it changes. Status, diff and worktree output all paginate, including diffs for deleted paths. The Changes ward keeps its full diff. Git commands retain a 2 MiB output ceiling; narrow the path if a command exceeds it. An output error never falls back to a smaller, misleading diff. Project edits return a compact saved/revision receipt instead of echoing the whole file. An oversized tool response is reported as omitted, without falsely reporting a failed operation or encouraging a repeated write. Failed turns retain their completed actions in history, and shared model requests send whitespace heartbeats while reasoning to keep the relay connection active.
Task reviews capture the reviewer, terminal output sequence, current file hashes and Git snapshot alongside the explanation and reported validation commands/exit codes. An empty checks list means no checks were reported. These commands are observations supplied by the reviewer, not commands automatically rerun by the receipt tool. Read-back marks evidence stale when a reviewed file changes or can no longer be verified. A null Git snapshot means Git was unavailable (including projects without a repository); the receipt still preserves the file review. terminal_read with review:true returns the full receipt as paginated JSON text (cursor/next); task writes return compact acknowledgements. Routine session lists and model-facing screen reads omit the full receipt. Assignments do not isolate external writes; files omitted from a review are not certified by it.
The effective ward approval policy controls confirmation. Local filesystem ownership is separate from inference: instructions, selected excerpts and tool results reach the selected provider, directly or through the connected server. Shared Rime synchronizes all /work scratch files as well as conversations and attachments when connected; /work is not an ephemeral private area. Offline sync resumes on reconnection, while model calls require a reachable configured provider.
Model waits display elapsed time and last observed relay progress separately from context usage. A heartbeat proves relay activity, not provider token generation. Relay failure receipts carry a category, HTTP status when known and request reference. The last 100 metadata-only failure records per account are retained in agent_diagnostics:<user> in the application settings database. Native runtime diagnostics retain fixed stderr categories and lifecycle events in runtime-diagnostics.jsonl under the app data directory, rotating at 64 KiB to one previous file; raw stderr and payloads are never logged there. Unix files use owner-only permissions; Windows uses the user's app-data directory access controls. Relayed calls disable automatic inference retries in both adapters and the OpenRouter SDK. Codex can refresh a rejected credential once; it never retries an uncertain relayed inference. Direct provider calls retain their existing transient retry policy.
Source search uses Git’s tracked and non-ignored untracked files for the selected working-tree scope. It does not recurse into nested checkouts. project_read search accepts includeIgnored:true to explicitly inspect ignored files or another checkout under an approved project root. Non-Git folders use the filesystem walker, excluding hidden and dependency/build directories by default. Binary and oversized file contents remain excluded. The response describes its scope; Git file enumeration uses the existing 2 MiB command-output limit, so narrow the path for larger listings.
The macOS background app integration is enabled only on Apple Silicon build
26A5416b, as enforced by desktop/src/background_worker.rs. Every other build
refuses it; the current M5 Pro on macOS 27.0.1 build 26A434 still requires signed
qualification. Historical worker validation does not certify the current installed
app or broaden this allowlist. See Background app control
for the contract and native acceptance for
installed workspace, Lens, background-control and Remote Desktop gates.