Skip to content

Beautiful, AI-native markdown IDE and LLM wiki

chore(release): restore the changesets consumed by six stables that never shipped (#3060)

Andrew Mikofalvye06ac8a7b9a9
diff --git a/.changeset/acp-agent-path-augment.md b/.changeset/acp-agent-path-augment.md
new file mode 100644
index 000000000..e4ac189f3
--- /dev/null
+++ b/.changeset/acp-agent-path-augment.md
@@ -0,0 +1,5 @@
+---
+"@inkeep/open-knowledge": patch
+---
+
+Agents started from the desktop app now launch even when their CLI was installed through a JavaScript package manager's global bin (pnpm, bun, Volta, Yarn, or npm's user prefix). A desktop app opened from the Dock or Finder inherits a minimal `PATH` that omits locations like `~/Library/pnpm` and `~/.bun/bin`, so an agent such as Pi that ran fine in a terminal would fail to start with a "command not found" error. Agent and terminal launches now append the well-known tool directories and package-manager global bins to `PATH` — the same approach already used for git — so these agents start correctly. When a command still can't be found, the error now explains that Dock/Finder-launched apps don't see your shell's `PATH`.
diff --git a/.changeset/acp-message-queue.md b/.changeset/acp-message-queue.md
new file mode 100644
index 000000000..660e7c791
--- /dev/null
+++ b/.changeset/acp-message-queue.md
@@ -0,0 +1,5 @@
+---
+"@inkeep/open-knowledge": patch
+---
+
+You can now queue messages to an in-app agent while it's still working. Sending mid-turn no longer fails with "a turn is already running" — the message joins a queue and is sent automatically as soon as the current turn ends, in the order you wrote them. Queued messages appear between the transcript and the composer, where each one can be edited in place or removed before it runs. Stopping the agent clears the queue, and it's never saved to disk, so a crash mid-turn can't resurrect messages you never sent. Up to 20 messages can be queued at once.
diff --git a/.changeset/acp-thread-improvements.md b/.changeset/acp-thread-improvements.md
new file mode 100644
index 000000000..b245353a1
--- /dev/null
+++ b/.changeset/acp-thread-improvements.md
@@ -0,0 +1,10 @@
+---
+"@inkeep/open-knowledge": patch
+---
+
+In-app agent (ACP) threads: four improvements.
+
+- **Numbered lists in agent replies no longer render off-screen.** Ordered- and unordered-list markers were being clipped off the left edge of the narrow thread panel; lists now get inline-start padding so their markers stay on screen.
+- **Agent settings persist per agent type.** Picking a model, reasoning effort, or agent mode in a thread is remembered for that agent, and the next thread you start with the same agent opens on those settings — applied before the first turn (model first, so dependent options like thought level re-validate).
+- **A mode that lets the agent act without asking is marked.** Because modes carry across threads, a permissive one — Claude's Bypass Permissions and Accept Edits, Codex's Agent (full access), Gemini's YOLO and Auto Edit, goose's Auto — puts a small amber dot on the settings button, with a hover tooltip spelling out what it allows. (Cursor exposes no permissive mode over ACP, and goose's Smart Approve still prompts for risky steps, so neither is flagged.) The marking follows whichever mode is actually in force, whether you just picked it or it carried over from your last thread. It's a recognition heuristic over the mode's name, so it's a hint, not a guarantee — it never blocks or changes a mode.
+- **Thread transcripts are stored globally in `~/.ok/threads/`** (alongside the existing `~/.ok/acp-agents` and `~/.ok/runtimes`) instead of per-project, so they survive project-folder moves. Each project still sees only its own threads (matched by working directory). Threads created before this change are read back from their old per-project location — nothing to migrate. Per-project tool-permission grants are unchanged.
diff --git a/.changeset/bridge-loss-hardening.md b/.changeset/bridge-loss-hardening.md
new file mode 100644
index 000000000..9d9e9a214
--- /dev/null
+++ b/.changeset/bridge-loss-hardening.md
@@ -0,0 +1,11 @@
+---
+"@inkeep/open-knowledge": minor
+---
+
+Edits typed while something else is rewriting the same document no longer disappear. The bridge between the visual editor and the raw markdown behind it gained four safety nets, all default-on: a defer guard that holds back a rebuild which would overwrite a keystroke that has not propagated yet, a pre-drain flush that pushes a pending non-overlapping keystroke into the document before an agent write or undo rebuilds it, a loss detector that spots content dropped at the reconciliation boundary, and a fixed-point backstop that freezes a rebuild loop which oscillates instead of settling. The practical effect: typing through an agent write, a `git pull` that lands on the open document, or a same-second edit from a second window is far less likely to cost you a line.
+
+- Anything a safety net cannot save in place is written to a recovery checkpoint, and those checkpoints now appear in the Timeline as ordinary "Recovered content" versions you can preview and restore like any older version. Before this release the same checkpoints were written but reachable through no API and invisible in the UI, so rescued content was effectively lost anyway.
+- Undo in source mode is now a single origin-aware system. Cmd/Ctrl-Z undoes only what you typed, never a collaborator's or an agent's write. Previously CodeMirror's own history could revert content you never wrote.
+- Unsynced work survives more of the browser lifecycle: a tab flushes to the server when you switch away and resyncs when you come back, edits captured during a server-instance recycle land in a durable IndexedDB outbox so a tab crash mid-recycle no longer drops them, and a worker-homed presence heartbeat keeps a backgrounded tab from being pruned as offline by its peers. In the desktop app, a window holding unsynced work opts out of Chromium's background throttling until it is clean.
+- New project config leaves, each a kill-switch defaulting to on: `bridge.deferGuard.enabled`, `bridge.preDrain.enabled`, `bridge.lossDetector.enabled`, `bridge.fixedPoint.enabled`, `bridge.flushOnHide.enabled`, `bridge.backgroundThrottle.enabled`. Turn one off only to isolate a suspected regression.
+- New `lossCapture.enabled` and `lossCapture.maxBytes` config leaves plus a local event ring at `.ok/local/loss-capture/` (roughly 12 MB before it rotates). It records which safety net fired, on which document, and when, and it is content-free by schema: a byte length and a digest, never document text. Nothing leaves your machine until you run `ok diagnose bundle`; set `lossCapture.enabled: false` for a sensitive workspace.
diff --git a/.changeset/bug-report-renderer-telemetry.md b/.changeset/bug-report-renderer-telemetry.md
new file mode 100644
index 000000000..138467351
--- /dev/null
+++ b/.changeset/bug-report-renderer-telemetry.md
@@ -0,0 +1,5 @@
+---
+"@inkeep/open-knowledge": patch
+---
+
+Bug reports sent from the desktop app now carry the evidence needed to diagnose an editor crash. Two pieces were missing. First, the detailed-diagnostics report is meant to be a superset of the basic one, but it was leaving out the app's own log file — the one the desktop app writes the editor's console messages into. Basic reports included it, detailed ones did not, so the most thorough report was the one that dropped the crash trail. Second, when the editor hit an error, the report recorded the error message but not React's component stack, which is the only part of a crash that still names real parts of the app in a released build; without it, a crash report read as a string of meaningless letters and numbers. Reports now include both, so a crash can be traced without asking you to copy anything out of a developer console by hand. Secrets in the newly included log are redacted the same way as everywhere else, and the component stack is trimmed to its most relevant frames.
diff --git a/.changeset/checkpoint-tie-and-redo-chords.md b/.changeset/checkpoint-tie-and-redo-chords.md
new file mode 100644
index 000000000..61d268030
--- /dev/null
+++ b/.changeset/checkpoint-tie-and-redo-chords.md
@@ -0,0 +1,7 @@
+---
+"@inkeep/open-knowledge": minor
+---
+
+Stop recovery-checkpoint cleanup from discarding the newest rescue point. Checkpoints written in the same second could not be ordered by their timestamps, so the sweep picked which one to drop essentially at random and could keep an older copy while permanently deleting the most recent one. Because loss-hardening writes one checkpoint per open document in a burst, the discarded copy could be a document's only recovery point. Cleanup now keeps every checkpoint it cannot confidently order, so it may hold slightly more than the retention budget rather than destroy the wrong one.
+
+Correct the Source editor entry in the keyboard shortcut help. It advertised undo-selection shortcuts that source mode does not have; those shortcuts still work in the code block editor and in code-shaped property fields, and are now listed there instead. Redo shortcuts are unchanged and continue to work on every platform.
diff --git a/.changeset/default-theme-tile-own-colors.md b/.changeset/default-theme-tile-own-colors.md
new file mode 100644
index 000000000..5fc8dc7bd
--- /dev/null
+++ b/.changeset/default-theme-tile-own-colors.md
@@ -0,0 +1,5 @@
+---
+"@inkeep/open-knowledge": patch
+---
+
+The Default tile in Settings → Plugins → Themes now previews its own colors instead of borrowing the palette you currently have selected. Picking Dracula used to repaint the Default preview in Dracula's colors, so the grid gave you no way to see what switching back would actually look like. The Default tile now shows the app's own light or dark palette, following your light/dark preference, whichever theme is active.
diff --git a/.changeset/diagnose-bundle-consent-posture.md b/.changeset/diagnose-bundle-consent-posture.md
new file mode 100644
index 000000000..342607d6a
--- /dev/null
+++ b/.changeset/diagnose-bundle-consent-posture.md
@@ -0,0 +1,16 @@
+---
+"@inkeep/open-knowledge": minor
+---
+
+`ok diagnose bundle` now redacts by default, and the y/N prompt states plainly what leaves your machine before it writes anything.
+
+- **Credentials are scrubbed on every bundle.** GitHub PATs, AWS access keys, Anthropic and OpenAI keys, bearer tokens, JWTs, and URL-embedded credentials are replaced with `[REDACTED-*]` placeholders, and macOS/Linux home-directory paths are anonymized to `~/` (the path hierarchy below the home directory is preserved). `ok diagnose bundle` never ran this scrub before, so bundles produced by earlier versions could carry a live token; `ok bug-report` and the in-app bug report already did.
+- **The content directory path is masked** as `<CONTENT_DIR>`, so a shared bundle does not leak your home-directory layout.
+- **The flag is now `--no-redact`**, an explicit opt-out that writes a raw bundle for you to inspect locally: no credential scrubbing and no path masking. `--redact` is still accepted and is now simply the default, so existing scripts and muscle memory keep working.
+- **Document names ship in cleartext.** The old opt-in `--redact` pass hashed them to `doc:<8hex>` and wrote a `<bundle>.docnames.json` inverse-map sidecar next to the zip; both are gone. Legible document names are what make a bundle diagnosable, so the tradeoff is now an informed one rather than a silent one: the consent summary says "in cleartext" next to the count, and the manifest's `redaction` block no longer carries `docNameMapSidecar` or `docNameCollisions`.
+- **The consent summary is now itemized** by what actually leaves the machine: document names, whether the content directory path is masked, and whether credentials were scrubbed (with the line count). Under `--no-redact` it says so in as many words.
+- **Bundles carry the content-loss ring** as `state/loss-current.jsonl` and `state/loss-prev.jsonl` when it exists, so a "my edit vanished" report arrives with the evidence attached. The ring is content-free by schema.
+
+- **The desktop app now scrubs captured renderer console output before writing it to `~/.ok/logs`.** Console capture is on by default, and a credential printed to the console previously landed verbatim in that log file for its 7-day retention — the keyed-field redaction in front of the log never inspected the message text. The same scrub also masks `/Users/<name>/` paths to `~/` there, matching what the web build already did on its way to the server log.
+
+The in-app bug report and `ok bug-report` always redact. `ok diagnose bundle` is the only surface with an opt-out.
diff --git a/.changeset/div-align-render.md b/.changeset/div-align-render.md
new file mode 100644
index 000000000..416bfd2d3
--- /dev/null
+++ b/.changeset/div-align-render.md
@@ -0,0 +1,5 @@
+---
+"@inkeep/open-knowledge": minor
+---
+
+GitHub-style `<div align="center">` wrappers now render the way GitHub shows them: the tag lines disappear and everything between them — headings, text, badge images — actually centers (left/right/justify work too). The content inside stays fully editable, and the `<div align>` markdown is preserved byte-for-byte on disk. Divs with other attributes keep their literal rendering.
diff --git a/.changeset/editor-bottom-dock-empty-gap.md b/.changeset/editor-bottom-dock-empty-gap.md
new file mode 100644
index 000000000..9daebc45f
--- /dev/null
+++ b/.changeset/editor-bottom-dock-empty-gap.md
@@ -0,0 +1,5 @@
+---
+"@inkeep/open-knowledge": patch
+---
+
+Fix the editor's main content being squeezed into the top of the pane with a large empty band below it. The bottom sessions dock could be left holding space while hidden and showing nothing, and its drag handle is disabled while hidden, so there was no way to reclaim the space. The dock now collapses whenever it reports a size while hidden, so that state can no longer persist, and it records a diagnostic when it has to repair itself so a recurrence leaves a trace. Separately, the dock's height is re-clamped to at most half the window whenever the window is resized — previously a height chosen on one display kept its old ceiling after a move to a smaller one.
diff --git a/.changeset/epoch-rotation-recycle.md b/.changeset/epoch-rotation-recycle.md
new file mode 100644
index 000000000..dc3a5a2d1
--- /dev/null
+++ b/.changeset/epoch-rotation-recycle.md
@@ -0,0 +1,5 @@
+---
+"@inkeep/open-knowledge": minor
+---
+
+Documents no longer get permanently stuck offline after the server restarts. Previously, if the restart took more than a couple of seconds, an open document could land in a state where it reconnected forever without ever syncing: the banner said "Connection lost, keep this tab open, your edits will sync when reconnected", but nothing it promised was going to happen. Switching to another document and back did not help, and anything typed while stuck was lost on reload. The client now treats a restarted server the same way whichever way it finds out about it, so the affected documents recover on their own and the edits typed during the outage are replayed instead of dropped.
diff --git a/.changeset/frontmatter-schema-toggle-only.md b/.changeset/frontmatter-schema-toggle-only.md
new file mode 100644
index 000000000..c1540026a
--- /dev/null
+++ b/.changeset/frontmatter-schema-toggle-only.md
@@ -0,0 +1,11 @@
+---
+'@inkeep/open-knowledge': patch
+---
+
+Frontmatter schema settings are now just the on/off toggle.
+
+**The Modified badge and the Reset-to-default button are gone.** Both described the config file rather than the schema: "Modified" meant only "config.yml maps this file", on or off, and Reset removed that mapping. Neither is something you need a model of to decide whether a schema should validate your docs, and in practice the words did the opposite of explaining themselves. Reset in particular read as "refresh", so pressing it to reload the panel silently discarded every glob you had written. The **Only modified** filter went with them, since the concept it filtered on no longer appears anywhere in the surface. Search still narrows the list.
+
+**Your globs are always kept.** Turning a schema off leaves its `appliesTo` patterns in place, so turning it back on restores exactly what you had. The toggle never discards a mapping. If you want a schema out of `config.yml` entirely, edit the file — or delete the schema, which removes the file and its mapping together.
+
+**Shorter delete confirmation.** Deleting a schema no longer adds "Docs it validated keep their frontmatter; they just stop being checked." Nobody expected deleting a schema to rewrite their documents, so the reassurance mostly introduced the doubt it was trying to settle.
diff --git a/.changeset/overlay-global-shortcut-gate.md b/.changeset/overlay-global-shortcut-gate.md
new file mode 100644
index 000000000..f2b25ddea
--- /dev/null
+++ b/.changeset/overlay-global-shortcut-gate.md
@@ -0,0 +1,7 @@
+---
+"@inkeep/open-knowledge": patch
+---
+
+Keyboard shortcuts no longer fire underneath an open dialog, command palette, or menu. Pressing ⌘T with the ⌘K palette up opened a new editor tab behind it, and the same leak affected ⇧⌘T, ⌃Tab, ⌘1–⌘9, ⌘L, ⇧⌘J, ⌘F, ⌘G, ⌘Z and ⌘⇧I — these are registered on the window, most of them in capture phase, so an overlay had no way to stop them from underneath. Every app-global shortcut now declines while a layer that owns the keyboard is open. Escape likewise dismisses only the topmost layer instead of also collapsing the graph panel or closing a diff pane behind it, and ⌘K no longer stacks the palette on top of another dialog while still dismissing the palette when it is the top layer. Editing keys the app never claimed — copy, paste, cut, select-all, undo, and arrow/Enter navigation inside the overlay — are untouched, and a hover-opened link panel no longer counts as owning the keyboard, so shortcuts keep working while the pointer rests on a link.
+
+On the desktop app, ⌘N, ⌘,, ⌥⌘S, ⌥⌘B and ⌘J arrive as native menu accelerators rather than as renderer key presses, so they can still fire while an overlay is open; those five are fixed in the browser only.
diff --git a/.changeset/pool-snapshot-render-loop.md b/.changeset/pool-snapshot-render-loop.md
new file mode 100644
index 000000000..b7b572903
--- /dev/null
+++ b/.changeset/pool-snapshot-render-loop.md
@@ -0,0 +1,5 @@
+---
+"@inkeep/open-knowledge": patch
+---
+
+Fixed a crash that could take the whole editor down to the "Something went wrong" screen during navigation — most visibly right after creating a new file, and also when a document was renamed, deleted, or moved out from under an open tab. The editor tracked its open-document pool with a value that was rebuilt from scratch on every pool change, including changes that altered nothing you could see, such as re-opening a document that was already open. Each rebuild re-rendered the app shell and handed the navigation layer a fresh set of callbacks, which prompted it to re-open the document again. When a document's identity changed underneath that cycle, it fed itself until React aborted the render with "Maximum update depth exceeded". The pool value is now reused when nothing observable has changed, so the cycle can no longer close.
diff --git a/.changeset/preserve-marks-on-inline-leaf-nodes.md b/.changeset/preserve-marks-on-inline-leaf-nodes.md
new file mode 100644
index 000000000..f8f78c9da
--- /dev/null
+++ b/.changeset/preserve-marks-on-inline-leaf-nodes.md
@@ -0,0 +1,24 @@
+---
+'@inkeep/open-knowledge': patch
+---
+
+Fix bold, italic, and other formatting being dropped from wiki links, images, inline math, tags,
+and line breaks.
+
+Formatting applied to an inline element was lost as soon as the document round-tripped through the
+collaboration layer. Writing `**[[Page]]**` in source mode, in the editor, or through the agent API
+produced `[[Page]]` on disk, and the emphasis could not be re-applied because it was discarded
+again on the next sync. A soft line break inside bold text split it into two separate bold runs.
+
+| Before | After |
+| --- | --- |
+| `**[[Page]]**` → `[[Page]]` | `**[[Page]]**` → `**[[Page]]**` |
+| `*![alt](img.png)*` → `![alt](img.png)` | `*![alt](img.png)*` → `*![alt](img.png)*` |
+| `**a<br>b**` → `**a**<br>**b**` | `**a<br>b**` → `**a<br>b**` |
+
+This affects `[[wiki links]]`, images, image references, footnote references, inline math, tags,
+inline JSX, and hard line breaks.
+
+Documents already saved without their formatting are not repaired automatically — the formatting
+has to be applied again. If you run multiple clients against one server, update them together:
+an older client editing a document alongside an updated one will strip the restored formatting.
diff --git a/.changeset/remote-tunnel-v0.md b/.changeset/remote-tunnel-v0.md
new file mode 100644
index 000000000..6cc37a1e1
--- /dev/null
+++ b/.changeset/remote-tunnel-v0.md
@@ -0,0 +1,5 @@
+---
+"@inkeep/open-knowledge": minor
+---
+
+Serve your knowledge base's MCP endpoint to your other devices through any HTTPS tunnel — ngrok, Cloudflare Tunnel, Tailscale, or a reverse proxy: run the tunnel against the stable remote port (default 24550, `remote.port` to change) and start the server with `ok start --remote <url>` (or set `remote.url` in `.ok/config.yml` and pass a bare `--remote`). The model is trust-the-tunnel: OpenKnowledge does not authenticate remote callers — anyone who can reach the tunnel URL has full read-write access, and restricting reach is the tunnel's job (private tailnet, ngrok OAuth, Cloudflare Access). The trade is always explicit: remote access is armed only by the `--remote` flag (never by config alone), every remote start prints a warning banner, and a server started without the flag refuses tunneled requests with a fix-it hint instead of serving them. The web UI is served from the same tunnel URL (`/` = editor, `/mcp` = MCP — one port, one tunnel; browse and edit from your phone). Its collaborative surfaces work over the tunnel too: live editing and the Ask AI panel, which runs an agent on the machine hosting the server (using that host's own agent and credentials). Wrong-Host requests (DNS rebinding) are refused everywhere. Local loopback behavior is unchanged.
diff --git a/.changeset/slash-menu-emoji.md b/.changeset/slash-menu-emoji.md
new file mode 100644
index 000000000..14727dc40
--- /dev/null
+++ b/.changeset/slash-menu-emoji.md
@@ -0,0 +1,5 @@
+---
+"@inkeep/open-knowledge": minor
+---
+
+The slash menu now has an Emoji entry — type `/emoji` (or just `/:`) and an emoji picker opens right at your cursor, with search. Picking one inserts it as plain text, so it round-trips through markdown untouched.
diff --git a/.changeset/table-last-row-enter.md b/.changeset/table-last-row-enter.md
new file mode 100644
index 000000000..e40a8b50d
--- /dev/null
+++ b/.changeset/table-last-row-enter.md
@@ -0,0 +1,5 @@
+---
+"@inkeep/open-knowledge": minor
+---
+
+Enter inside a table now works the way it does in Notion and Obsidian: it moves the cursor to the same column of the row below, and from the last row it creates a new row — so you can fill a table top to bottom without touching the mouse. Enter no longer splits a cell into multiple paragraphs (which markdown tables can't represent and used to resolve unpredictably); Shift+Enter is the way to get a line break inside a cell.
diff --git a/.changeset/tripwire-whole-document-paste.md b/.changeset/tripwire-whole-document-paste.md
new file mode 100644
index 000000000..3fd4e7744
--- /dev/null
+++ b/.changeset/tripwire-whole-document-paste.md
@@ -0,0 +1,7 @@
+---
+"@inkeep/open-knowledge": patch
+---
+
+Pasting a copy of an entire document no longer makes the paste disappear. Selecting all, copying, and pasting produces a document that is an exact doubling of what was just saved, which is the same shape a stale browser cache produces when it merges an old copy back in. The persistence guard that watches for that corruption could not tell the two apart, so about two seconds after the paste it refused to save and rolled the open document back to the copy on disk. The pasted content vanished from under the cursor, and undo could not bring it back because the rollback arrives as a remote change that neither the server nor the editor tracks as undoable.
+
+The guard now distinguishes the two cases by when the doubling appears. A stale-cache merge shows up as soon as the document syncs, before the session has saved anything; a paste is an edit on a document that has already saved cleanly. Pastes are left alone and save normally. When the guard does still act on a genuine corruption, it now writes a recovery checkpoint of the pre-rollback document first, so that version stays restorable from version history instead of being lost.
diff --git a/.changeset/wide-bug-report-dialog.md b/.changeset/wide-bug-report-dialog.md
new file mode 100644
index 000000000..1e0a96b12
--- /dev/null
+++ b/.changeset/wide-bug-report-dialog.md
@@ -0,0 +1,5 @@
+---
+"@inkeep/open-knowledge": patch
+---
+
+Make the Report a bug dialog wider so report details, diagnostic options, and screenshot previews are easier to review.