Repository navigation
Conversation
People forgot to press "Save checkpoint", so history had gaps. The live server now schedules a checkpoint per open document on every content edit by a person or agent: two minutes after the last edit, and at most ten minutes into continuous editing. It saves only when a stored update after the latest checkpoint touched a block (comment marks and system writes don't count), so no-op and annotation-only writes never add history. Checkpoints made this way carry versions.automatic so history can tell them from named ones. A save by hand without a note now answers 200 with the latest checkpoint and `unchanged: true` when nothing changed since it, instead of adding an identical version. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Suggestions could only come from agents in suggest mode or proposed branches, so a person had no way to propose a change. `mode: 'suggest'` stores every op of a batch as a suggestion; anyone who may comment can send it (people only: agents keep their run-scoped rules), and the owner or an editor decides as for any suggestion. The editor's Suggesting mode sends its draft this way. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
… feedback Dark mode looked broken because BlockNote's Ariakit UI brings its own theme: bevelled buttons drawn with stacked inset box-shadows, a toolbar frame with its own background and drop shadow (nested again inside the comment popover, around Save) and blue focus rings and menus. Primer only themed --bn-colors-*, which those primitives don't read. editorTheme.css restyles the Ariakit primitives once from Primer tokens for light and dark, so the formatting toolbar, menus, comment popovers, threads and history match the app. The editor header gains an Editing | Suggesting switch (Viewing for people who can't edit). Suggesting opens the tab as a draft; Send stores each change as a suggestion (ops with mode suggest) and opens the Suggestions panel. Panel toggles are compact and scroll on a phone, where panels open as a bottom sheet. Save checkpoint shows a busy state, then a toast with "Checkpoint vN saved" or "No changes since checkpoint vN" and a link to it, or the error. History names automatic checkpoints as auto-saved, in every locale. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…thing was edited Answering an unchanged save with the previous checkpoint skipped what a checkpoint also freezes besides content (records a page reads, comment placements, the tab list), which two existing tests caught. A save by hand now always makes a checkpoint; `unchangedSince` names the previous one when no one edited the content in between, so the toast can say so. Automatic checkpoints still skip when the content is unchanged. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…e event stream After a deploy the owner's page stopped showing an agent's edits and replies until a reload, and nothing said so. Three causes: a shutting-down server kept its live sockets (and event streams) open, so browsers stayed attached to a process that no longer received writes; a socket left half-open by a proxy is never noticed by the provider; and the edge proxy holds back the event stream, from which the editor learned of new comments, and EventSource gives up for good on an error response. The server now closes live connections (1012) and HTTP connections on shutdown, and answers a liveness probe the browser sends every 15 s, reconnecting (which resyncs) after 5 s without an answer, retrying at least every 5 s. Comment, thread and suggestion events are relayed to the document's open editors over the socket as a stateless message; the editor refetches on them, and once more after any reconnect or stream break. The event stream reopens itself with backoff. The header always shows Live, Reconnecting… or Offline. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…ue, not any "999" The assertion looked for "999" anywhere in the page, and random ids and nonces in the HTML sometimes contain it. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
maxsam4
added a commit
to Aiden-HQ/AidenHQ
that referenced
this pull request
Nov 20, 2026
…eckpoints and suggesting (#950) Builds Primer at 4dc290c: upstream 0xPolygon/primer#184 on the collaboration stack, with proxy sign-in (#141). - The dark-mode editor chrome is fixed, with a polish pass. - Checkpoints save automatically once edits settle, and Save checkpoint confirms. - People can suggest through an Editing | Suggesting switch. - Editors stay live across restarts and through proxies, and comments arrive over the live socket. New migration 0027 (versions.automatic), applied by the server on start. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
This was referenced Nov 20, 2026
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes from using the live editor for real, on top of #182.
--bn-colors-*Primer set, so in dark mode the formatting toolbar, menus and comment composer were drawn with stacked inset shadows, an offset frame around Save, and blue focus rings. One stylesheet (apps/web/src/live/editorTheme.css) now restyles Ariakit's shared building blocks from Primer's tokens, in light and dark. It is a polish pass over the whole page: a compact header row, flat panel toggles, and bottom-sheet panels on phones.automatic(migration 0027) and History labels them "auto-saved". Share links keep serving their pinned version.mode: 'suggest'from anyone who can comment. The header gets an Editing | Suggesting switch: edits go into a draft with a banner showing how many blocks changed, plus Discard and Send suggestions.All gates pass locally. Tests cover automatic checkpoints, suggesting, and events reaching editors over the socket. Screenshots were taken in light and dark, at 1512, 1920, 2560 and 390 px.
🤖 Generated with Claude Code