* feat: Align MCP server and OAuth provider with newer MCP spec recommendations
- Upgrade @modelcontextprotocol/sdk to 1.31.0
- Include iss in authorization responses and advertise support (RFC 9207)
- Include required scopes in the WWW-Authenticate challenge on /mcp
- Expose title, website and icons in the MCP server info
- Centralise issuer, scopes, grant types and client type mapping in OAuthHelper
* Remove OAuth authorization issuer changes
External providers can legitimately report several groups with the same
display name. Previously the second group failed the team-wide name
uniqueness check, or duplicates slipped through on creation and then
broke every subsequent sync with a validation error.
- Scope the group name uniqueness check by (team, externalId) so synced
groups with different external ids can share a name while manually
created groups remain unique among themselves
- Compare names with lower() equality instead of iLike so LIKE wildcards
in names are not treated as collisions
- Stamp externalId on groups created by the syncer and backfill it on
previously synced groups
Nodes are cached against the content or state they were parsed from, so
repeated helper calls on the same document parse it once. JSON transform
helpers now replace attrs instead of mutating them, as Node.toJSON shares
attrs with the cached node.
* perf: Reduce query cost and reparsing in comments API
* perf: Join documents without default associations when listing comments
* refactor: Move comment listing into Comment.findAllForUser
* feat: Sync group descriptions and re-sync groups on SSO validation
- Sync group descriptions from group sync providers alongside names
- Lock name and description edits for externally synced groups at the
API layer and in the edit dialog
- Move group sync into a SyncUserGroupsTask, scheduled from login and
from ValidateSSOAccessTask after a fresh provider validation
- Add authenticationProviders.startGroupSync for providers that require
an admin consent flow before group sync can be enabled
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
* fix: Make group sync setup generic and deduplicate sync jobs
- Expose groupSyncRequiresSetup from the provider list and use it in the
settings scene instead of checking for the azure provider name
- Rename the setup redirect query param to groupSync
- Give SyncUserGroupsTask a job id per user authentication so concurrent
syncs for the same authentication are not queued twice
* Use existing hook
---------
Co-authored-by: Claude Fable 5.1 <noreply@anthropic.com>
* fix: Revision and document attribution to the wrong user in collaborative edits
Capture the editing user synchronously with each Yjs update and persist an
ordered, sequenced collaborator set in Redis so that snapshots and revisions
are attributed to the user who actually made the change.
* fix: Do not fail a committed save when the update event cannot be scheduled
* fix: Consume collaborator attribution when a revision is skipped as identical
* refactor: Add zlatestWithSequence to the Redis adapter
* Validate awareness identity against connection context
* Validate awareness messages on the sending connection
* Encode real removal states and isolate ownership check in tests
uploadAttachments reads the name off alt for images and title for video
and attachment nodes. Both come through as null when the markup doesn't
set one, and String(null) is "null" - 4 chars, so the name.length !== 0
check passes and the node.type.name fallback never runs. getKey then
sticks "null" on the end of the key: uploads/<userId>/<uuid>/null.
Fall back to the node type before the String(). Left the length check in,
it still catches a whitespace-only name. Only hits importers on the
default shouldUploadAttachmentsPerPage(); markdown import opts out.
* React 19 upgrade
Bumps react and react-dom to 19.2.8, with the dependency changes React 19
requires: react-is 19, @types/react 19, @types/react-dom 19,
react-helmet-async 3 and react-avatar-editor 15 (which now ships its own
types). framer-motion moves to 13 — its v6 types reference React.ReactHTML,
removed from @types/react 19.
The type changes fall into a few classes:
- The global JSX namespace is gone, so JSX.Element becomes React.JSX.Element
and the custom element declarations move into a module augmentation.
- useRef() now requires an initial value.
- A ref created with a null initial value is typed nullable, so consumers
that accept one are widened to RefObject<T | null>.
- React.ReactChild was removed; tooltips take React.ReactNode.
- Ref callbacks may only return a cleanup function. react-dnd connectors
return the connected node, so useDragRef and useDropRef wrap useDrag and
useDrop and hand back a ref callback.
react-i18next stays on v12: i18next 23 drops compatibilityJSON "v3", which
would rewrite all 64 _plural keys across every locale.
outline-icons, oy-vey and react-waypoint have no release that lists React 19
as a peer. All three render correctly under it; the install reports them as
unmet peers.
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
* Remove react-helmet and forwardRef
---------
Co-authored-by: Claude Opus 5 (1M context) <noreply@anthropic.com>
* feat: Add reasons for archived and deleted documents
* feat: Add deprecation reasons to archived collections
* fix: Refine deprecation reason display for readers
* feat: Accept reasons when archiving or deleting
* Support reasons in archive and delete MCP tools
* Fix placeholder after clearing content editable text
* Keep the caret before content editable placeholders
* Remove test
* feat: Add archive reasons to the confirmation dialog
Adds a server-shared Vitest project with isolate disabled and moves every
server test into it by default. Files that mock or reset modules opt out
with a header marker and stay in the isolated project.
Restores env values that leaked between files: the test URL is reset after
each file, and tests that mutate env restore the previous value. The test
server no longer closes the shared sequelize pool.
* Show toast with actions when a file download completes
In the desktop app a toast is now displayed when a file finishes
downloading, with the option to open the file or reveal it in the file
manager of the operating system.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Kat47mueTm3CUZSbDVfBas
* Guard download bridge calls for older desktop apps
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Kat47mueTm3CUZSbDVfBas
* Change protocol in dev for easier testing
* Use standard buttons stacked below the file name in download toast
---------
Co-authored-by: Claude <noreply@anthropic.com>
* fix: Validate share id on shares.sitemap, shares.info, and shares.subscribe
Fixes OUTLINE-CLOUD-CWY
* test: Add regression tests for invalid share ids on shares.info and shares.subscribe
* test: Use an id that fails share slug validation and assert the message
#13198 (9796407) moved the duplicate gate to team-level createDocument,
which guests and viewers can never hold - so the policy change silently
removed duplicate for guests with edit rights on the source document.
Allow duplicate when the actor can createDocument at team level
(members, preserves #13198) OR update the source (guests, the pre-1.10
capability); the destination collection is still authorized separately
in documents.duplicate. Includes the #13198 regression guard plus
guest positive/negative cases.
Fixes#13715.
Co-authored-by: Instinct Agent <agent@instinct.com>
* perf: shorten row lock held while persisting collaborative documents
The collaborative updater serialized the Y.js state and converted it to
ProseMirror JSON while holding a FOR UPDATE lock on the document row, and
loaded every column including the deprecated markdown text. Both the lock
wait on the SELECT and the subsequent UPDATE are the dominant source of
statement timeouts in production, and API document updates queue behind
the same lock.
Several high-traffic endpoints (views.create, views.list, comments.list,
relationships.list, subscriptions.list/info, events.list, pins.info,
documents.insights/users/documents) load a document purely to run a
policy check, yet fetched its full content, text and state columns on
every request. The read policy only inspects ownership, membership and
collection fields, so pass includeContent: false to use the existing
withoutContent scope. comments.list keeps the body only when anchor text
is requested, which is the sole consumer of it.
Claude-Session: https://claude.ai/code/session_017swPbmq4SwtkE15fcRhdcU
Co-authored-by: Claude <noreply@anthropic.com>
* fix: Signed file downloads rejected when an API key lacks scope for the route
Adds a skip option to the auth middleware so routes authorized by other means can ignore credentials on the request, and applies it to signed file requests. Also maps the get method to the read scope.
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
* Restrict skip option to optional authentication
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
---------
Co-authored-by: Claude Fable 5.1 <noreply@anthropic.com>