Commit Graph
3545 Commits
Author SHA1 Message Date
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
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