Skip to content

fix(web): keep thread notification tags within the Windows toast limit - #6

Draft
macodev00 wants to merge 64 commits into
mainfrom
cursor/windows-notification-tag-1edc
Draft

macodev00 wants to merge 64 commits into
mainfrom
cursor/windows-notification-tag-1edc

Conversation

@macodev00

@macodev00 macodev00 commented Sep 20, 2026

Copy link
Copy Markdown
Owner

What Changed

Desktop thread alerts now use threadNotificationTag(environmentId, threadId): a stable 16-character digest of the environment+thread pair. ThreadNotificationCoordinator passes that value as Notification.tag (and therefore as the pending-notification map key).

Why

Windows Chromium silently drops renderer notifications when the tag plus origin exceeds the platform toast budget. Production tags were environmentId:threadId (two UUIDs, 73 characters), so completion toasts never appeared even though sound and the taskbar badge still ran. A 16-hex digest stays under the documented 34-character bound while keeping per-environment, per-thread replacement.

Fixes pingdotgg#12287

Tests

vp test run --project unit in apps/web over the new helper test plus both coordinator files: 31 passed.

  • apps/web/src/threadNotifications.test.ts: tag is 16 hex characters, ≤ 32, stable, and distinct across environments and threads
  • Coordinator tests now expect the digest instead of the raw composite string

UI Changes

Not applicable; no visual changes.

Checklist

  • This PR is small and focused
  • I explained what changed and why
  • I included before/after screenshots for any UI changes
  • I included a video for animation or interaction changes
Open in Web Open in Cursor 

Bil0000 and others added 30 commits September 20, 2026 17:19
…12438)

Co-authored-by: shivam <91240327+shivamhwp@users.noreply.github.com>
…10831)

Co-authored-by: shivam <91240327+shivamhwp@users.noreply.github.com>
…tgg#12657)

Signed-off-by: Yordis Prieto <yordis.prieto@gmail.com>
…ion (pingdotgg#10098)

Co-authored-by: shivamhwp <91240327+shivamhwp@users.noreply.github.com>
Co-authored-by: Julius Marminge <51714798+juliusmarminge@users.noreply.github.com>
Co-authored-by: Claude Opus 5 (1M context) <noreply@anthropic.com>
Co-authored-by: Julius Marminge <julius0216@outlook.com>
)

Co-authored-by: t3-code[bot] <269035359+t3-code[bot]@users.noreply.github.com>
Co-authored-by: Exotic <118054752+extoci@users.noreply.github.com>
…g#12808)

Co-authored-by: Claude Fable 5 <noreply@anthropic.com>
…off (pingdotgg#12807)

Co-authored-by: Claude Fable 5 <noreply@anthropic.com>
…s page (pingdotgg#12536)

Co-authored-by: Claude Fable 5.1 <noreply@anthropic.com>
…2243)

Co-authored-by: Simone <185146821+Lucenx9@users.noreply.github.com>
…2805)

Co-authored-by: Claude Fable 5.1 <noreply@anthropic.com>
pingdotgg#12833)

Co-authored-by: Claude Fable 5.1 <noreply@anthropic.com>
maria-rcks and others added 25 commits September 21, 2026 02:11
Co-authored-by: maria-rcks <254055478+maria-rcks@users.noreply.github.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
…12843)

Co-authored-by: Claude Fable 5.1 <noreply@anthropic.com>
Co-authored-by: codex <codex@users.noreply.github.com>
…trees (pingdotgg#12953)

Co-authored-by: Claude Fable 5 <noreply@anthropic.com>
)

Co-authored-by: Claude Fable 5 <noreply@anthropic.com>
Windows Chromium silently drops renderer notifications when the tag is 73 characters (two UUIDs). Hash the environment+thread pair to a 16-character digest so the toast stays within the platform limit.
@cursor
cursor Bot force-pushed the cursor/windows-notification-tag-1edc branch from 8198dd9 to 6c333af Compare September 22, 2026 06:30
@github-actions github-actions Bot added vouch:trusted PR author is trusted by repo permissions or the VOUCHED list. size:XXL labels Sep 22, 2026
Assert the hashed tag for a production UUID pair so a change to the digest is an explicit test failure, and document the coverage cases CodeRabbit scores.
@cursor
cursor Bot force-pushed the cursor/windows-notification-tag-1edc branch from a3c2c45 to edec43b Compare September 22, 2026 06:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size:XXL vouch:trusted PR author is trusted by repo permissions or the VOUCHED list.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug]: Completion notifications never appear on Windows: 73-character notification tag exceeds the platform tag limit