Patch Changes
- 74d3e5a: Prevent client fetch storms during high-volume background mutations:
useActionMutationacceptsskipActionQueryInvalidationso background mutations can perform narrow invalidation instead of refetching every action query,useDbSyncacceptssuppressActionInvalidationForto skip whole-action-cache invalidation for named high-volume action sync events, and action-query retries are bounded to one attempt for network-level failures (Chrome reports connection-pool exhaustion as a generic fetch failure, so unbounded retries sustained the storm). - 16f7429: Defer collaborative rich-markdown seed writes to a timer task so initial Y.Doc seeding does not call
setContentfrom React lifecycle. - 254f061: Defer agent-authored URL navigation out of React effects to avoid lifecycle flushSync warnings.
- 69e1e38: Defer collaborative awareness presence updates so editor creation does not trigger React render-time state warnings.
- 8976a28: Log framework route failures with route, status, message, and development stacks before returning JSON errors.
- d61ca0c: The collaborative reconcile applies external content on a timer task instead of a microtask, so
setContentcan no longer run inside a React lifecycle flush ("flushSync was called from inside a lifecycle method" console errors during collab reconciliation). - 66ffcd9: Treat client-aborted framework route requests as disconnects instead of logging and returning 500 errors.
- a74a885:
useDbSyncbatches consisting entirely of suppressed action events (viasuppressActionInvalidationFor) now skip the fixed framework invalidation list (extension, slot, tool, and app-state keys) as well as the whole-action-cache invalidation — high-volume background mutations no longer refetch framework queries on every poll tick. Events are still forwarded toonEventand per-source change versions still bump. - d44ad4e: Concurrent top-level async transactions on the better-sqlite3 driver are serialized per connection. Previously a transaction starting while another was open saw
inTransactionand opened a savepoint inside the other task's transaction, which then committed out from under it ("no such savepoint" 500s under concurrent reads/writes). Same-task nesting is detected via AsyncLocalStorage and keeps the direct savepoint path.