Commit Graph
3568 Commits
Author SHA1 Message Date
Tom Moor 4b6512de51 fix: Use exact email match when linking accounts on sign-in (#14461) 2026-11-04 21:30:28 -05:00
Tom Moor e21d1ed8d4 fix: Linear time whitespace and bracket handling in markdown serializer (#14460) 2026-11-04 20:28:57 -05:00
Tom Moor eff1a43d9b fix: Keep serving requests when Redis is unavailable (#14457)
* 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
2026-11-03 08:45:56 -05:00
Tom Moor fb2f0e76d1 fix: Prevent Notion imports looping forever (#14456)
* fix: Prevent Notion import looping on self-referencing pages

* fix: Stop import tasks once the import has finished
2026-11-03 08:27:14 -05:00
Tom Moor f0401f83e7 chore: Remove unnecessary URL parsing (#14454) 2026-11-02 21:14:53 -05:00
Tom Moor 133fba4dd0 feat: Show workspace chooser on root domain for multiple sessions (#14013)
* feat: Show workspace chooser on root domain when signed in to several workspaces

* chore: Update translation strings
2026-11-02 20:34:02 -05:00
Tom Moor 6d7cd455e9 chore: Decouple core plugins (#14340)
* 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
2026-11-02 19:42:48 -05:00
Tom Moor de8952d80b fix: Do not report writes to a closing websocket (#14446)
Fixes OUTLINE-CLOUD-DAD
2026-11-02 08:42:01 -05:00
Tom Moor b3eeaea035 perf: Run independent awaits concurrently on hot paths (#14445) 2026-11-02 08:07:25 -05:00
Tom Moor ffdd4f9496 perf: Add userId index to oauth_authentications (#14444) 2026-11-02 07:56:47 -05:00
Tom Moor 25eac11a6c perf: Render share page content without the export lock and cache it (#14284)
* 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.
2026-11-01 08:05:55 -05:00
Tom Moor 8b120caccf feat: Add document unsubscribe link to comment emails (#14149)
* 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.
2026-11-01 08:05:43 -05:00
Tom Moor 4f2d186004 fix: Tighten guest access to integration data (#14434) 2026-11-01 07:57:48 -05:00
Tom Moor 5b13e915d8 fix: Stale workspace entries in sessions cookie (#14035)
* 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
2026-10-31 14:56:00 -04:00
Tom Moor bd7fc38ddb feat: Generate Pinyin slugs for Chinese document titles (#14375)
Slugs are now generated only on the server, which lazily loads pinyin-pro.
The client reads the path from the API rather than computing it.
2026-10-31 11:12:24 -04:00
Tom Moor 8852acb5f9 perf: Stop documents.viewed from joining every view of the user (#14430)
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.
2026-10-31 10:10:36 -04:00
Tom Moor a374ce9b46 fix: Viewers attributed as editors when their editor repairs remote changes (#14424)
* 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
2026-10-30 22:27:31 -04:00
Tom Moor b6c337e1a0 fix: Publish drafts moved into a personal collection (#14429)
* fix: Publish drafts moved into a personal collection

* fix: Append moved drafts when no index is given
2026-10-30 21:19:56 -04:00
Tom Moor 6d00386d00 fix: Ignore sockets that close during document load in connection limit (#14422) 2026-10-30 07:34:31 -04:00
Tom Moor def01b0fa8 feat: Mobile undo button and new doc button on collections (#14413)
* feat: Mobile undo button, new doc button on collections, and dark overscroll fix

* fix: Parse viewport meta before theme bootstrap script
2026-10-29 23:39:17 -04:00
Tom Moor 3fafd2a7ea fix: Keep existing CSRF token across concurrent requests (#14411)
* fix: Keep existing CSRF token across concurrent requests

* fix: Compare byte length in safeEqual so malformed input cannot throw
2026-10-29 18:47:54 -04:00
Tom Moor 5e880ca835 feat: Add Open Graph and Twitter meta tags to shared pages (#14409)
* feat: Add Open Graph and Twitter meta tags to shared pages

* fix: Keep dollar sequences in rendered page values, use absolute social image URL
2026-10-29 18:38:09 -04:00
Tom Moor e5b1ade40d feat: Add OAUTH_DISABLE_CIMD to turn off client ID metadata documents (#14410) 2026-10-29 18:37:56 -04:00
Tom Moor 7149162c4f chore: Replace tunnel-agent with https-proxy-agent (#14218)
* 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
2026-10-28 08:35:00 -04:00
Tom Moor 6a2f23c023 perf: Keep dotenvx, Sentry and zod compilation off the primary process (#14369)
dotenvx is only loaded when an env file exists, Sentry is only loaded in
forked workers, and zod/compile moves to the worker entry.
2026-10-27 21:05:32 -04:00
Tom Moor 7b3c8fe9f4 fix: Use loaded model ids for urlId inputs in MCP tools (#14364)
* fix: Use loaded model ids for urlId inputs in MCP tools

* fix: Reload the document under the lock when anchoring an MCP comment
2026-10-27 08:57:00 -04:00
Tom Moor 7f8231f6aa fix: Do not create revisions for comment-only changes (#14363)
* fix: Do not create revisions for comment-only changes

* fix: Ignore empty mark lists left after removing comment marks
2026-10-26 23:17:06 -04:00
Tom Moor e7795896d0 fix: Truncate generated team subdomain to the maximum length (#14359) 2026-10-26 22:43:47 -04:00
Tom Moor 55ff532b44 fix: HTML import crashes on elements without a style property (#14358) 2026-10-26 22:43:18 -04:00
Tom Moor 809fc0d86d fix: Exports fail when the exported name is long (#14362) 2026-10-26 22:42:52 -04:00
Tom Moor 96bb9dce65 fix: Report invalid zip and Word imports as import errors (#14361)
* fix: Report invalid zip and Word imports as import errors

* fix: Normalize entry stream errors and keep system errors in ZipHelper
2026-10-26 22:42:47 -04:00
Tom Moor 19c39aef4a fix: Use loaded model ids in MCP move_document (#14360) 2026-10-26 22:42:43 -04:00
Tom Moor adc2ab61a0 fix: Return 400 for request bodies that fail to decompress (#14351) 2026-10-26 22:30:39 -04:00
Tom Moor 57d438d88e feat: Add Move to the document selection toolbar (#14350)
* feat: Add Move to the document selection toolbar

* fix: Load source collection trees before moving documents
2026-10-26 22:12:23 -04:00
Tom Moor 9fe0c7ba2b fix: Preserve existing values when optional update fields are omitted (#14344)
* fix: Preserve existing values when optional update fields are omitted

* chore: Rename setDefined to fill

* chore: Use fill in users.update and teamUpdater
2026-10-26 17:29:17 -04:00
Tom Moor ce439c893c test: Clear loopback share subscriptions before shares.subscribe tests (#14345) 2026-10-26 17:29:13 -04:00
Tom Moor 670410b236 fix: Preserve existing group permission when add_user omits permission (#14343) 2026-10-26 08:16:21 -04:00
Tom Moor 99a4edb2bb feat: Show a document preview in publish notification emails (#14249)
* 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
2026-10-25 23:11:58 -04:00
Tom Moor fc8ccd80fd chore: Replace redlock with a single-node Redis lock (#14212)
* chore: Replace redlock with a single-node Redis lock

* fix: Handle lost SET replies, late replies and stalled extensions in MutexLock
2026-10-25 22:58:59 -04:00
Tom MoorandClaude Opus 5.5 82be0626dc fix: Respect per-task cron limit across partitions (#14339)
* 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>
2026-10-26 01:01:28 +00:00
Tom Moor 66ee08fea5 fix: Apply fetch timeout to the whole request (#14338)
* fix: Apply fetch timeout to the whole request

* test: Cover fetch timeout and caller abort
2026-10-25 18:11:38 -04:00
Tom Moor 9aad5a4bb7 feat: Add Gitea / Forgejo integration (#14336)
* 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
2026-10-25 18:04:04 -04:00
Tom Moor 24ffffcf8a fix: Index the body of new documents without waiting for the debounce (#14337)
* 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
2026-10-25 17:56:58 -04:00
Tom Moor 39ac94e1c9 fix: Do not forward hop-by-hop headers from MCP SDK responses (#14335) 2026-10-25 13:27:15 -04:00
Tom Moor 8cd951afca fix: Stagger built-in cron scheduler tasks within their partitionWindow (#14330) 2026-10-24 22:18:32 -04:00
Tom Moor d0914e91f6 fix: Load only needed columns when erroring timed out imports (#14327)
The query loaded the full JSON input and output of each stuck import task,
which killed the worker every hour. Fixes OUTLINE-CLOUD-CRN
2026-10-24 20:15:33 -04:00
Tom Moor c8b79a3ccf fix: Align OAuth discovery metadata with RFC 8414 and RFC 9728 (#14324) 2026-10-24 19:10:30 -04:00
Tom Moor 3571d59576 fix: Mark move_document MCP tool as destructive (#14320) 2026-10-24 18:29:42 -04:00
Tom Moor c9d8306de6 fix: Add WWW-Authenticate header to API 401 responses (#14321)
* fix: Add WWW-Authenticate header to API 401 responses

* fix: Keep a challenge set on the response
2026-10-24 18:29:39 -04:00
Tom Moor 1bdf026857 feat: Send share changes over WebSockets (#14161)
* 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
2026-10-24 18:17:23 -04:00