A REST/MCP/agent rename (no live editor) wrote the new title to the page.title column, then writePageTitle loaded the ydoc (fragment still OLD) and set it to NEW only in memory. On disconnect onStoreDocument saw titleText(NEW) === column(NEW), took the no-op fast-path, and never persisted the in-memory fragment — so page.ydoc kept the OLD title and a later body edit silently reverted the column back to OLD. writePageTitle now persists the 'title' fragment to page.ydoc DIRECTLY (PersistenceExtension.persistTitleFragmentYdoc) after the transact, bypassing the no-op onStoreDocument. The write carries no treeUpdate, so the tree WS/redis listeners do not re-broadcast (no double broadcast), and it is idempotent/lock-free so it is safe whether or not a live editor is connected. Adds a persist-then-reload-then-edit-body regression test that fails on the old no-op behaviour and passes after the fix. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
A progressive Node.js framework for building efficient and scalable server-side applications.
Description
Nest framework TypeScript starter repository.
Installation
$ npm install
Running the app
# development
$ npm run start
# watch mode
$ npm run start:dev
# production mode
$ npm run start:prod
Migrations
# This creates a new empty migration file named 'init'
$ npm run migration:create --name=init
# Generates 'init' migration file from existing entities to update the database schema
$ npm run migration:generate --name=init
# Runs all pending migrations to update the database schema
$ npm run migration:run
# Reverts the last executed migration
$ npm run migration:revert
# Reverts all migrations
$ npm run migration:revert
# Shows the list of executed and pending migrations
$ npm run migration:show
## Test
```bash
# unit tests
$ npm run test
# e2e tests
$ npm run test:e2e
# test coverage
$ npm run test:cov
Support
Nest is an MIT-licensed open source project. It can grow thanks to the sponsors and support by the amazing backers. If you'd like to join them, please read more here.
Stay in touch
- Author - Kamil Myśliwiec
- Website - https://nestjs.com
- Twitter - @nestframework
License
Nest is MIT licensed.