* fix: Fail fast on Redis for cache and rate limits, lock migrations in Postgres
* fix: Use the fail-fast Redis client for locks
* fix: Require a database pool of at least two connections
* chore: Rename cache Redis client to ephemeralClient
* chore: Move plugin-specific integration code into plugins
Core no longer imports from or names the settings of individual plugins.
Plugins now register mention providers, issue status icons, instance URLs,
settings keys, settings and import schemas, and OAuth clients through hooks.
* fix: Recompute embed instance URLs after plugins load and match legacy issue icons by URL
* fix: Skip logo upload jobs queued without a settings path
* chore: Choose issue status icons from the unfurl state
* perf: Render share page content without the export lock and cache it
* perf: Render share page content only for bots, detect bots with isbot
Browsers never read the server-rendered share content, so skip the render
for them. Replace the koa-useragent isBot check with the isbot package,
which also detects AI crawlers, and add a lint rule against isBot.
* feat: Add document unsubscribe link to comment emails
- Comment and resolved emails now link to unsubscribe from the document, above the global unsubscribe link.
- Thread replies and resolve notifications skip users who unsubscribed from the document after their last involvement in the thread.
* refactor: Check only deleted document subscriptions for thread unsubscribe
* fix: Make the document unsubscribe link a document-only opt-out
- The email link no longer deletes the collection subscription, and records or refreshes a document opt-out on every click.
- A document opt-out takes precedence over an older collection subscription.
- Users mentioned in the thread after they opt out get thread notifications again.
* Fix stale workspace entries in sessions cookie
* Use authenticated token expiry for workspace session entries
* Remember logged-out workspaces for three months after last use
* Remove excessive tests
* Fix auth info test to send a real sessions cookie
Postgres misestimates the document access filters and reads, joins and sorts
all of a user's views before applying the limit. Find the page of view ids
first with a fenced lateral lookup so the index is read in order, then load
only those views.
* fix: Viewers attributed as editors when their editor repairs remote changes
* fix: Rescan after remote changes and assign block ids when parsing markdown
* chore: Import uuid as generateUuid in ToggleBlock
* refactor: Add RepairPlugin to repair only on local changes, checking remote changes for pending repairs
* fix: Assign block ids on the server so patches keep existing ids, keep unchanged mention ids
* fix: Store API edits in the editor's trailing node form
* chore: Replace tunnel-agent with https-proxy-agent
* fix: Keep the target host in proxied HTTP request URLs
* test: Move test proxy into test support
* fix: Preserve existing values when optional update fields are omitted
* chore: Rename setDefined to fill
* chore: Use fill in users.update and teamUpdater
* feat: Show a preview of the document in publish notification emails
Moves email snippet and diff generation out of ProsemirrorHelper and
DocumentHelper into server/emails/snippets.
* fix: Address review feedback on publish email preview
- Skip the email when the recipient can no longer read the document
- Keep the preview within budget, counting separators and capping list items
- Make relative links in email previews absolute
- Chain :not() selectors so email CSS inlining does not outline lists
* fix: Respect per-task cron limit across partitions
Adds an optional limit to TaskSchedule that caps the number of items a cron
task processes per run. Partitioned runs split the limit across partitions
instead of giving each partition the full request limit.
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
* fix: Cap cron partitions at the task limit so every UUID range is processed
---------
Co-authored-by: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
* feat: Add Gitea integration for issue, pull request, and repository previews
* fix: Gitea repository previews and request deadlines
Refresh the token before repository discovery, keep repository previews when
the issue tracker is disabled, and keep the request timeout active while the
response body is read.
* chore: Use the shared fetch timeout for Gitea requests
* chore: Mention Forgejo in Gitea copy and reuse the callback URL helper
* Remove service specific getters in IntegrationsStore
* fix: Index the body of new documents without waiting for the debounce
* fix: Write only derived columns when updating document text
* test: Fix event type in DocumentUpdateTextTask test
* feat: Send share changes over WebSockets
* fix: Include document members in share events and hydrate share policies
* refactor: Move share event query to a Share scope