Skip to content

fix(composer): allow + in the query so :+1 suggests 👍 - #926

Draft
pasqualevitiello wants to merge 2 commits into
mainfrom
fix/composer-query-allow-plus
Draft

pasqualevitiello wants to merge 2 commits into
mainfrom
fix/composer-query-allow-plus

Conversation

@pasqualevitiello

@pasqualevitiello pasqualevitiello commented Nov 18, 2026 •

Copy link
Copy Markdown
Contributor

Why

Typing :+1 in a Composer with a : emoji trigger should suggest 👍, but + isn't allowed in a query, so the popup never opens. This adds + to both character classes in getComposerQuery:

  • the check on the text before the caret: /^[\p{L}\p{M}\p{N}\p{Zs}_.’'+-]*$/u
  • the suffix match that completes the word at the caret: /^[\p{L}\p{M}\p{N}_.’'+-]*/u

- stays last in each class, so it's still a literal.

calcom/cal keeps a synced copy of the Composer, and that copy already allows +. Making the same change here means the next sync won't drop it.

Side effect

The pattern is shared by every trigger. So @a+b now keeps the mention popup open (with no results) instead of closing it. calcom/cal already behaves this way.

Changes

  • apps/ui/registry/default/lib/composer-query.ts: the registry source
  • packages/ui/src/lib/composer-query.ts: the synced package copy (same content)
  • apps/ui/public/r/composer-query.json: rebuilt with registry:build

🤖 Generated with Claude Code


Autofix with [code]smith
Open in [code]smith · Need help on this PR? Tag @codesmith-bot with what you need.

@vercel

vercel Bot commented Nov 18, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
coss-com Ready Ready Preview Nov 18, 2026 12:52pm UTC
coss-com-ui Ready Ready Preview Nov 18, 2026 12:52pm UTC
coss-examples-calcom Ready Ready Preview Nov 18, 2026 12:52pm UTC
1 Skipped Deployment
Project Deployment Actions Updated
coss-com-origin Skipped Skipped Nov 18, 2026 12:52pm UTC

Request Review

Add `+` to the characters a Composer query may contain, both before the
caret and in the suffix that completes the word at the caret. The
pattern is shared by every trigger, so `@a+b` now stays an open mention
query too.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

This branch was successfully deployed

3 active and 1 inactive deployments
Preview – coss-com-ui — a51c7323 Deployed Nov 18, 2026 by vercel[bot]
Preview – coss-examples-calcom — a51c7323 Deployed Nov 18, 2026 by vercel[bot]
Preview – coss-com — a51c7323 Deployed Nov 18, 2026 by vercel[bot]
Preview – coss-com-origin — a51c7323 Deployed Nov 18, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant