Skip to content

Troubleshooting

Recovery and Troubleshooting

Journal-based recovery, replay, rebuilds, conflict recovery, and diagnostic tooling.

  • 10 min read
  • 7 sections

Recovery and Troubleshooting ​

Octant's recovery model is built on the durable event journal: every meaningful action is journaled as a versioned event, and every projection can be rebuilt from that journal. This makes crashes and interruptions recoverable instead of destructive.

The event journal ​

The journal is append-only and stores versioned envelopes carrying event, aggregate, sequence, correlation, causation, actor, and timestamp identity. Optimistic concurrency uses expected aggregate versions. A termination before commit writes nothing; after commit, the full batch is preserved even if the caller never received a response. Repeating an operation with the same event IDs cannot duplicate work.

Malformed or unsupported events are quarantined with typed reasons and stop the affected projection without rewriting history. Ambiguous recovery state is always Waiting or recovery-required, never Done or healthy.

Low memory ​

Octant watches how much memory its host process uses and what your system says about memory pressure. It reads both on your machine only and sends nothing anywhere.

When memory runs low, the host first stops what is only waiting: provider processes with no turn using them and sessions kept warm for a quick reply. It then frees caches it can rebuild. A running turn is never stopped; the notice tells you how many kept going. Your next message starts a stopped provider again, so the cost is a slower first reply.

You see a short notice only when something was stopped or memory was very low. Settings, then Host, shows the current memory level, the host's size, and the last relief.

Memory limits ​

The host counts its own size as low memory at one limit and as very low at a higher one. Settings, then Host, then Memory, has a Memory limits control:

  • Automatic (the default) uses 2 GB for low and 4 GB for very low, or a quarter and a half of the memory on a Mac with less than 8 GB. The row shows the sizes that apply on your Mac.
  • Custom lets you enter both sizes in GB, from 0.5 to 64. Very low must be above low. Custom sizes apply exactly as you enter them, on any Mac.

A change takes effect right away, without restarting Octant. If you enter sizes that are out of range or in the wrong order, Octant says why and keeps the limits you had. Only a window on the Mac that runs the host can change the limits; a paired phone or other device cannot see or change them. Each change is recorded in the journal with the time and the old and new sizes, so a rebuild of Octant's state brings the same limits back. The limits decide only when Octant frees idle work. They never stop a running turn.

If the host ends without a clean stop, for example because the system ran out of memory, the per-user service starts it again. The next time Octant opens, it tells you the host stopped unexpectedly and shows the last memory reading it took. That reading is a hint, not a diagnosis: a normal reading means the cause is not known.

Recovery tooling ​

Operator commands cover the journal and projections:

  • db:status — inspect database and projection state
  • db:verify — verify the journal and projections
  • db:rebuild — rebuild projections from the journal
  • db:rebuild --projection <name> — rebuild a single projection

Rebuilds never edit or delete journal events. Quarantine retirement happens only after a successful explicit rebuild. A confirmed thread purge is the separate data-lifecycle exception: it removes that thread's own journal events so a later rebuild cannot resurrect the transcript, and it records a tombstone rather than leaving a hole with no explanation.

Saving diagnostics to ask for help ​

When something is wrong and you want someone to look, Octant can write one file about your host. Open Settings › Host › Maintenance and choose Save diagnostics…, or run this in a terminal on the same computer:

sh
octant diagnostics export --out ~/Downloads/octant-diagnostics.zip
octant diagnostics export --list

A browser you paired with the host yourself at Full can save the same file: open Host settings › Diagnostics in it, and the bundle downloads in that browser. A device paired below Full cannot.

Before anything is written, Octant lists what the file will include and what it never includes. In Settings you then choose Save file or Cancel. In the desktop app Save file opens the usual save dialog, offering a dated name in Downloads; in a browser it downloads the file. In the terminal the same list prints first, and --list stops after it. --out takes a name ending in .zip, or a new or empty folder, and never overwrites.

The file holds:

  • Octant and runtime versions, and your operating system, processor type, and memory.
  • Each enabled provider by kind: whether it is ready, signed in, and which capabilities it reports. Not its name, address, or models.
  • The newest 200 host log lines, and the names and times of the newest 200 journal events. The events' contents stay out.
  • Your default guardrail level, how many Code threads run at each level, and the sandbox tools Octant found.
  • Uptime, memory, processor time, and slow-statement counters.

It never holds messages, prompts, replies, file contents, Project or thread names, API keys, tokens, or passwords. Your home folder shows as ~. Octant sends the file nowhere: you read it, and you choose whether to send it. Octant records that you saved one, with the time and how you chose where (the desktop dialog, a browser download, or the kind of folder for the terminal), never the folder name or anything the file holds.

Crash records ​

When the host stops unexpectedly, or stops before it is ready, the desktop app keeps a short crash record on your Mac: the time, how the host ended, and its last output lines. Secrets are removed, your home folder shows as ~, and only the newest 20 are kept. Saved diagnostics include them in a Crash records section. On the next start, the Octant stopped unexpectedly notice says how and when the host ended, that saved diagnostics include the crash record, and that nothing was sent.

If Octant opens to a recovery screen because the host cannot start, choose Save support bundle… there. It saves the same redacted file from the crash records and the host log, without needing the host. Nothing is sent anywhere.

This is separate from Failure report in the same place, which exports a redacted report about one failed operation, found by its correlation ID.

User-level recovery ​

  • Chat: a failed or interrupted turn states why in the transcript. The sentence is Octant's, taken from a bounded code on the attempt, and the support correlation stays beside it. A call the app itself is running does not hang the turn past the turn's own deadline.
  • Local clients: reopening Electron after sleep or a host restart renews its client context automatically. A browser tab keeps its session across a reload; after a host restart it asks you to open Octant from the desktop app or run octant web again, because a browser session starts only from that one-time link. Neither creates another store or needs a recovery workflow.
  • Connection lost: a Chat thread that cannot reach the host shows one notice, Can't reach the host, with Retry now, and changes to Reconnected for a moment when the host answers. The subagent card and the message queue only dim and disable their controls meanwhile; your draft is kept.
  • Threads: reconnect resumes from bounded live cursors. If a cursor belongs to an older host process or fell outside replay, the client reloads the thread from the host before applying more updates.
  • Queued messages: once Octant acknowledges a queued message, the host retains it and its attachments when you close the conversation. You can inspect, edit, reorder or remove pending messages from the queue. Normal completion starts the next message. One failed turn does not hold the queue: the next message runs, and the queue holds if that turn fails too. A stopped, interrupted or cut-off turn, changed access or unavailable attachment holds the queue at once and explains why. While the host holds queued follow-ups, a line under the waiting messages, above the composer, says why and ends in Resume queue. After a host restart, when Octant continues a turn the restart cut off, it releases that thread's queue itself, with access checked again, so the queued messages run after the continuation. That automatic release is not a review of the messages: if the continuation fails or is cancelled, or another restart comes before a turn completes, the queue holds for you. After a restart that cut off none of the queue's own work, the hold lifts by itself once the window or device each message waits under is connected again and every message passes the checks Resume queue runs. When the thread is held for you instead, or you paused the queue, review the retained messages and choose Resume queue (After a restart). A queue you paused stays paused. Octant never blindly repeats an uncertain send. If the connection drops before confirmation, use Check queue after reconnecting. Octant keeps the original submission identity across navigation and reload, and preserves any newer draft you have written. If you changed the provider, model or access settings, restore the original settings before resuming, or remove and resubmit the message. A paired device may read a thread's queue, queue a message, and edit or remove the messages it queued itself. A device you paired yourself can also pause, resume and reorder the queue and edit or remove any queued message, as a window on this computer can, and each change is recorded as that device. A device a hub introduced keeps to its own messages. The phone shows a Work or Code thread's queue above its composer, with edit, remove and Send now for each waiting message; a phone paired to read only shows it with no actions. The paired browser does not offer the queue in its composer yet, so there, and for pausing, resuming and reordering from the phone, a device does these only through the server.
  • Settings: a failed settings command restores the last authoritative value and announces the failure.
  • Zen: when state cannot be decoded, Recover Zen restores the main workspace instead of trapping you; Zen rebuilds from the journal after restart or reconnect, and concurrent mutations surface a version conflict with a refresh.
  • Terminals: a thread terminal that a restart ended shows Interrupted with a Restart terminal button. It starts a new shell, checked against the thread's access as it stands now; nothing from the old shell is reused. Plan has no button. A pinned Project terminal card shows Restart terminal too, which opens a new shell at the Project root. The debug panel shows Restart <name> when a confirmed configuration has that name.
  • Project actions: a saved Project action that a restart cut off shows Review and run again. It reloads the preview; nothing runs until you press Run action.
  • Browser sessions: a page you had open yourself is offered back with Reopen page in its thread's Browser (not yet in a release, #2883). It brings back the profile, not the address. See Reopen a page after a restart.
  • Canvas exports: if Octant stopped while sending an export or publishing a link, the export panel shows Export to X not confirmed. Octant never sends it again by itself. Check the destination, and export again if it is missing; a later export there clears the notice. You can also choose Dismiss, from a window on the Mac that runs Octant; the notice stays dismissed after a restart.
  • Editor: a stale save blocks with a conflict result that preserves the authoritative file and your draft. See Editor and terminals.
  • Worktrees: ambiguous repository identity or inventory becomes waiting or unavailable and is never pruned automatically. See Git and worktrees.
  • Extensions: the extension supervisor quarantines crash-looping components and reconciles after restart; interrupted installs recover to an honest state, never a visible partial package. See Plugins and skills.
  • Previews: a missing, changed, revoked, or offline source restores as an honest unavailable or stale placeholder, never a silently substituted file.

Previews and evidence honesty ​

Octant never infers a green from partial output. Preview and validation surfaces show distinct states for denied, missing, stale, superseded, interrupted, failed, and inconclusive results, and keep superseded runs from being resurrected by delayed completion.

Next steps ​

Octant documentation · local-first by design