Commit Graph
3534 Commits
Author SHA1 Message Date
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
Tom Moor f894fa57eb fix: Improve OAuth authorization screen (#14317)
* fix: Harden OAuth consent screen

* fix: Match consent screen path as the client router does

* fix: Apply frame policy to all app pages
2026-10-24 18:12:48 -04:00
Tom Moor 0d13c183fd chore: Add lint rules for test conventions (#14318) 2026-10-24 14:09:36 -04:00
Tom Moor a16f3c9618 fix: Return invalid_redirect_uri from dynamic client registration (#14316)
* fix: Return invalid_redirect_uri from dynamic client registration

* fix: Reject redirect URIs that lack the authority delimiter
2026-10-24 13:58:29 -04:00
Tom Moor ab3d0a5ff0 fix: Tighten MCP endpoint request validation (#14314)
* fix: Tighten MCP request handling

* fix: Compare the full origin, including scheme and port
2026-10-24 13:52:20 -04:00
Tom Moor 2f6326dd24 fix: Advertise missing auth server metadata fields (#14315)
* fix: Advertise revocation endpoint auth methods in OAuth metadata

* fix: Advertise supported response modes in OAuth metadata
2026-10-24 13:46:30 -04:00
Tom Moor 7d4ec3fb01 fix: Return standard OAuth error codes from the token endpoint (#14312) 2026-10-24 13:27:52 -04:00
Tom Moor b72f11b01e chore: Enforce more codebase conventions with lint rules (#14310)
* chore: Enforce more codebase conventions with lint rules

Add lint rules for request.origin, deferred useLocation reads, # private
members, lodash and date-fns subpath imports, and button types. Fix the
existing violations.

* fix: Only flag useLocation reads in event handlers and useCallback

* test: Use a fixed member name in users.list name query test
2026-10-24 13:23:25 -04:00
Tom Moor c49cf3d158 chore: Add lint rule to enforce the afterCommit helper (#14306) 2026-10-24 10:42:57 -04:00
Tom Moor dbf0b9a7b5 fix: Accept client metadata documents that list none among other auth methods (#14305) 2026-10-24 10:37:19 -04:00
Tom Moor 92a4b0062a chore(deps): Bump zod and undici (#14304) 2026-10-24 10:28:33 -04:00
Tom Moor f43614713e perf: Replace keyspace SCAN with single-key cache deletes after commit (#14279)
* perf: Use single-key cache deletes after commit and add afterCommit helper

* fix: Await notification event scheduling without a transaction
2026-10-24 09:07:19 -04:00
Tom Moor 4e4c51c772 perf: Bulk insert sourced memberships and load the moved subtree once (#14286) 2026-10-24 08:24:30 -04:00
Tom Moor 201038c36d perf: Keep the loaded collection when the document title changes (#14283) 2026-10-24 07:55:11 -04:00
Tom Moor d035e0fdff perf: Throttle lastActiveAt writes from collaboration edits (#14281)
* perf: Throttle lastActiveAt writes from collaboration edits to once every five minutes

* Reuse User.updateActiveAt for collaboration activity
2026-10-24 07:34:38 -04:00
Tom Moor e471d95b40 perf: Delete comment replies in one statement and index parentCommentId (#14277)
* perf: Delete comment replies in one statement and index parentCommentId

* fix: Reject replies to a reply so thread deletion removes every reply
2026-10-24 07:29:02 -04:00
Tom Moor c84b9f10a0 fix: Make membership grants for the same subject atomic (#14274)
* fix: Serialize membership grants for the same subject

* fix: Normalize ID case in membership lock names
2026-10-24 07:24:16 -04:00
Tom Moor e76f0dcf8e perf: Load only ids when resolving membership user ids (#14275) 2026-10-24 07:24:06 -04:00
Tom Moor 3967edc5d9 feat: Paginate views.list with a default limit of 100 (#14278) 2026-10-24 07:23:49 -04:00
Tom Moor b3a91da1c5 perf: Throttle attachment lastAccessedAt writes to once every five minutes (#14276) 2026-10-24 07:22:53 -04:00
Tom Moor 84d055a785 fix: Validate attachments used for custom emoji (#14273) 2026-10-23 23:04:27 -04:00
Tom Moor 1f677c2512 fix: Keep the subject of delayed notification emails unchanged (#14163)
* fix: Keep the subject of delayed notification emails unchanged

The "Delayed notification:" prefix broke Gmail threading, which compares
subjects. Show the notice at the top of the email body instead.

* fix: Count plain-text render errors as failed sends
2026-10-23 22:28:08 -04:00
Tom Moor eb290040a1 fix: Make email matching across sign-in providers opt-in (#14270) 2026-10-23 22:21:12 -04:00
Tom Moor a63a6351f1 fix: Load templates through the Template model (#14269) 2026-10-23 21:48:14 -04:00
Tom Moor 9493f89f1e fix: Scope external unfurl cache per user (#14267)
* fix: Scope external unfurl cache per user

* test: Remove teammate unfurl cache test
2026-10-23 21:47:48 -04:00
Tom Moor 41ba5c9fcb fix: Restrict credential transports on auth routes (#14268)
* fix: Restrict credential transports on auth routes

* fix: Skip disallowed transports when parsing the token
2026-10-23 21:47:43 -04:00
Tom Moor a7287fc7e9 fix: Set every MCP tool annotation hint explicitly (#14263)
* fix: Set every MCP tool annotation hint explicitly

* fix: Mark create_document as open-world
2026-10-23 08:44:18 -04:00
79989f4660 Fix attribution of Markdown document mentions (#14123)
Co-authored-by: Tom Moor <380914+tommoor@users.noreply.github.com>
Co-authored-by: linear-code[bot] <222613912+linear-code[bot]@users.noreply.github.com>
2026-10-22 21:39:27 -04:00
Misha Sunborn b0b33231e2 fix: Moving a document drops permissions its children inherit from it (#13879)
DocumentMovedProcessor destroys every sourced membership on the moved
document and its descendants, then rebuilds them only from the new
parent's memberships. Memberships granted directly on the moved document
(or on any of its descendants) survive the move, but the sourced
memberships they had created further down the tree were never recreated,
so children silently lost access granted on their ancestor.

Recreate sourced memberships from every direct membership in the moved
subtree after the destroy step, in the same transaction.
2026-10-22 21:38:50 -04:00
Tom Moor 02a6f86a22 fix: Allow virtual-host S3 bucket origin in object-src CSP (#14237) 2026-10-22 21:01:18 -04:00
Tom Moor cfa9e09f17 feat: Add MCP tool to show what changed in a document (#14192)
* feat: Add get_document_changes MCP tool to diff document history

* fix: Bound document changes to the loaded snapshot and diff raw markdown

* perf: Replace structuredPatch with an integer ID line diff (#14246)

* fix: Update get_document_changes for MCP SDK v2
2026-10-22 20:43:57 -04:00
Tom Moor fb7b09ad6c fix: Close MCP subscriptions/listen streams at once (#14254)
The tool and resource lists never change during a request, so do not
advertise listChanged. This stops 2026-07-28 clients from holding open
SSE streams that the router interrupts.
2026-10-23 00:05:44 +00:00
Tom Moor d2ad848cfb perf: Batch comment view lookups and memoize email diff clipping (#14251)
Load the views of all comment notification recipients in one query
instead of one query for each recipient, and check each element for diff
classes with one combined selector, once.
2026-10-22 19:52:51 -04:00
Tom Moor 5752b4983d perf: Load attachments in one query when signing urls in text (#14247) 2026-10-22 19:19:09 -04:00
Tom Moor d98d8bdb1f chore: Upgrade MCP SDK to v2 for 2026-07-28 protocol support (#14244)
* chore: Upgrade MCP SDK to v2 for 2026-07-28 protocol support

* test: Assert JSON replies for 2026-07-28 requests
2026-10-22 19:13:56 -04:00