Minor Changes
-
622d552: Collaborative editing kit: agent edits now behave like a visible collaborator
and undo is per-user everywhere.- Agent presence lingers (~6s) after edits instead of vanishing instantly;
any agent-sourced collab write (applyText,searchAndReplace,applyJson,
applyPatchOps) automatically publishes presence plus lingering edit
attribution — no per-action wiring required (agentTouchDocument). - New
recentEditsawareness convention withuseRecentEdits,
publishRecentEdit, and theRecentEditHighlightsoverlay — fading,
name/avatar-flagged highlights over regions a human or the AI just edited. - New shared per-user undo primitives:
useCollabUndo(Y.UndoManager
lifecycle with local-origin scoping) anduseLocalOpUndo/
createLocalOpUndoController(inverse-op undo for op-based apps that never
reverts other participants' work). CollabUser.avatarUrlrenders profile images inPresenceBar,
LiveCursorOverlay, andRemoteSelectionRings; selection descriptors may
now carry labels ({ selector, label }), and agent selection tags no longer
render as "AI — AI".- Presence now survives multi-instance/serverless deployments: awareness
state is mirrored to a new_collab_awarenesstable (SQLite/Postgres
portable, additive, best-effort with throttled writes), so cursors and the
agent's presence written in one invocation are visible to clients polling
any other instance. - Surgical reconcile:
useCollabReconcilenow applies authoritative external
content by diffing top-level nodes and replacing only the changed run
(newparseValueoption,applyDocSurgically/diffTopLevelexports)
instead of a whole-documentsetContent— unchanged block NodeViews are
never torn down, remote carets stop jumping, and Collaboration sees minimal
Yjs ops. Falls back tosetContentwhen no parsed doc is available.
- Agent presence lingers (~6s) after edits instead of vanishing instantly;
-
622d552: Add
ensureAdditiveColumns(@agent-native/core/db), a boot-time helper that diffs each Drizzle table's declared columns against the live database and additivelyALTER TABLE ... ADD COLUMNs any that are missing. This closes the gap where a column added to a Drizzle schema without a matching hand-written migration silently 500s every query on pre-existing production tables (fresh dev databases don't show the bug becauseCREATE TABLE IF NOT EXISTSalways includes new columns). It only ever adds missing columns — never drops, renames, or retypes existing ones — skipsNOT NULLcolumns with no safe backfill default, and is wired into the analytics template'sserver/plugins/db.tsafter its authoritative migrations run. -
622d552: Add optional name-based tracking to
runMigrations(@agent-native/core/db): a migration entry can now set a stable, uniquenameslug that is tracked independently of itsversionnumber in a companion<table>_namedbookkeeping table. This fixes a collision class where two branches that each independently extend the same migration list under the same version numbers cause whichever deploys first to "claim" those version numbers, silently skipping the other branch's DDL forever — the exact failure that left the analytics template'sanalytics_alert_rules,analytics_alert_incidents, andsession_recordings.network_error_countmissing in production despiteanalytics_migrationsreporting every version as applied. Unnamed migrations keep the exact legacyversion > MAX(version)behavior; a duplicatenamein a migration list throws at startup. -
622d552: Session replay network capture now records a bounded, redacted response-body snippet for 5xx (server error) responses, so agents can see the actual server error message. Request bodies and headers are still never captured, and non-5xx or network-failure responses never carry a body. Configurable via
sessionReplay.network.captureErrorBodies(defaulttrue) andmaxErrorBodyLength(default 2048 chars).
Patch Changes
-
622d552: Live collab updates now push over SSE to read-only viewer sharees, not just the
resource owner and org members. Collab events are tagged with their
resourceType/resourceId, and the per-user delivery filter runs an access-aware
(cached, fail-closed) check against the sameresolveAccessauthority used by
the collab routes — so a viewer with explicit access sees edits at push latency
instead of falling back to the poll cycle, while unauthorized users are never
delivered events. -
622d552: Shared rich-markdown editors can now disable the default markdown surgical
parser when they own a custom value format, preventing JSON-backed editor content
from being interpreted as literal markdown. -
622d552: Data-fetch hot-path hardening: faster loads, bounded hangs, fewer round trips.
useActionQuerynow threads React Query's per-fetchAbortSignalinto the
network request, so superseded fetches (key change, unmount, rapid refetch)
actually cancel instead of holding a per-origin connection slot.- Every action fetch is bounded by a 60s timeout (override via
callAction(..., { timeoutMs })); a hung server surfaces a typed timeout
error instead of an infinite spinner, and timeouts are not silently retried. - Action query retries back off in ~0.5–2s steps instead of React Query's
1s/2s/4s, so real failures surface in about a quarter of the time. - Collaborative docs no longer open their own
EventSourceper doc (one for
updates, one for awareness): they subscribe to the shared sync transport via
the newsubscribeSyncEventsAPI, so a tab holds exactly ONE SSE connection
no matter how many docs are mounted — previously 3+ streams could starve the
browser's per-origin connection budget and stall unrelated data fetches. - Awareness (cursor/presence) events no longer trigger the framework-level
query-invalidation sweep on every peer keystroke. - The
/_agent-native/pollfallback now backs off exponentially (cap 30s) on
consecutive non-auth failures instead of hammering a down server at full
cadence. - Session org backfill and
getOrgContextnow share one per-request
org_memberslookup, andgetSetting/getUserSettingreads are memoized
per request — several DB round trips removed from every authenticated
action call. - Chat-thread share links resolve through a new indexed
share_token_hash
column (additive, with legacy-blob fallback + opportunistic backfill)
instead of aLIKE '%hash%'scan over every thread's full message blob. - Queued-message saves no longer pre-read the full thread blob a second time
on every debounced composer write. - The Drizzle non-Neon Postgres path gets the same per-op timeout +
connection-error retry protection as every other Postgres path, and the
Drizzle SQLite path now setsbusy_timeoutlike the raw exec path. agent_checkpointsgains indexes on(thread_id, created_at)andrun_id.- Schema-prompt introspection coalesces concurrent cache-miss rebuilds;
recurring-job runs no longer leak a live 5-minute backstop timer; a failed
migration-connection open no longer poisons the shared exec singleton;
detachThreadno longer applies its optimistic update when the server
rejects the change;useAgentEngineConfiguredguards against out-of-order
responses overwriting newer state.
-
622d552: Add a token-gated
POST /list-filesendpoint to thedesign connectlocalhost bridge (recursive walk honoring a simple.gitignoresubset, always-ignored build/dependency directories, binary/size filtering, and a 20,000-entry cap), broaden the bridge's writable text-file extension allowlist beyond.html/.htm/.cssto common web/code/text formats, and add a secret-path blocklist (.env*,*.pem,*.key,id_rsa*, anything under.git/) enforced across/read-file,/write-file,/apply-edit, and/list-files. The manifest now advertises additivelistFiles/readTextFiles/writeTextFilescapabilities for the Design app's code workbench.Harden the bridge further:
assertPathInsidenow also rejects a symlink at
the target path itself (not just a symlink in an ancestor directory), closing
a confinement bypass where a pre-existing symlink leaf inside the root could
point outside it and be silently followed by/read-file,/write-file, or
/apply-edit. The secret-path blocklist is now case-insensitive end to end
(bridge and the Design app'swrite-local-fileaction), so uppercase or
mixed-case variants like.ENV,ID_RSA, orKEY.PEMare blocked the same
as their lowercase form — required on case-insensitive filesystems such as
macOS's default APFS./read-filenow returns aversionHashderived from
the file's mtime/size, and/write-fileand/apply-editaccept an optional
expectedVersionHash: when provided and the file's current hash does not
match, the bridge responds409with{ error: "version conflict", currentVersionHash }instead of overwriting concurrent changes, and
successful writes echo back the newversionHash. The Design app's
write-local-fileandread-local-fileactions and the code workbench's
localhost workspace provider forward this version chain end to end, and the
workbench now polls open localhost tabs every 5 seconds so external edits
(made directly on disk or by the agent through the bridge) show up without a
manual reload. -
622d552: Keep Electron Google sign-in polling active after the desktop app regains focus.
-
622d552: Add server helpers for the Builder Fusion app-building backend: ensure branch
containers and resolve preview URLs, send fire-and-forget prompts to the
in-container coding agent, push branch code to git, reserve hosting slugs, and
trigger/poll hosted deploys. -
622d552: Make durable agent run recovery quieter by idempotently handling retried run rows and waiting longer for server-owned background continuations.
-
622d552: Emit PostHog-compatible
$ai_generationtracking events from instrumented agent runs so LLM cost, latency, tokens, and errors can flow through configured tracking providers, and expose the shared database admin page through the client barrel for app-owned admin surfaces. -
622d552: Persist local Plan bridge comments to comments.json so local visual plans and recaps can collect feedback without hosted database writes.
-
622d552: Upgrade React Router to 8.1.0 to silence Vite's deprecated
envFilewarning during dev startup. -
622d552: Remove retired scaffold aliases from template catalogs and app pickers.
-
622d552: Fix duplicate tool-call cards and parallel duplicate text streaming in agent chat: the reconnect reader and the adapter's own stream can no longer attach to the same run concurrently (single-reader ownership — reconnect probes skip while the adapter runtime is live, and an adapter takeover aborts any active reconnect reader and discards its accumulator), journal/ledger-replayed tool results now merge into the original card instead of rendering a second stuck-spinner copy, and reconnect content drops pending tool cards whose call already completed in the rendered messages.
-
622d552: Add shared visual style controls for template editor inspector surfaces.
-
622d552: Add
/visualize-repoand a local visual docs CLI for repo-backed Plan workspaces.