Skip to content

feat(notion): app.notion.com links attach, and the integration can be turned off - #194

Merged
adampeterhiggins merged 1 commit into
mainfrom
ah/notion-link-integration
Oct 6, 2026
Merged

adampeterhiggins merged 1 commit into
mainfrom
ah/notion-link-integration

Conversation

@adampeterhiggins

Copy link
Copy Markdown
Owner

Pasting a Notion link copied from Notion today (https://app.notion.com/p/<workspace>/<title>-<id>?source=copy_link) left it as plain text: the page-link parser only accepted notion.so and notion.site hosts. There was also no way to turn the Notion integration off the way Slack can be.

Fix

  • parseNotionPageId accepts notion.com and its subdomains, so those links become Notion page chips on paste or when typed, like Slack links.
  • New enableNotionIntegration environment setting (default on), with a switch under Settings → Integrations → Notion. When off:
    • pasted Notion links stay as links with no fetch and no "connect Notion" toast
    • the paperclip Notion page item, the command palette action, the # menu Notion tab, and the picker dialog are hidden on web/desktop
    • the mobile + menu hides Notion page
    • the connected account is kept, so turning it back on needs no reconnect
  • User guide and docs/fork-differences.md updated.

Tests: parser cases for app.notion.com / www.notion.com (and a lookalike-domain rejection), settings decode/persist for the new flag (contracts + server), and resolver tests showing a pasted app.notion.com link attaches and a disabled integration makes no request and shows no prompt.

Surfaces: web/desktop (paste, typed link, attach menu, command palette, # menu, picker), mobile (attach menu). Providers unaffected: the snapshot path is unchanged.

Model: Claude Opus 5.5 via Claude Code in T3 Code.

🤖 Generated with Claude Code

… turned off

Pasted notion.com page links (the format Notion's "Copy link" now produces)
were not recognised, so they stayed as text. They now parse like notion.so
and notion.site links.

Adds an "Enable Notion integration" setting, mirroring Slack's: turning it
off keeps pasted Notion links as links without setup prompts and hides
Notion attach actions on web, desktop, and mobile, keeping the account.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant