Skip to content

Stack crash toasts in one deck - #16975

Open
radimsem wants to merge 2 commits into
omacom:quattrofrom
radimsem:fix/notification-crash-deck
Open

radimsem wants to merge 2 commits into
omacom:quattrofrom
radimsem:fix/notification-crash-deck

Conversation

@radimsem

@radimsem radimsem commented Oct 29, 2026 •

Copy link
Copy Markdown

Since #16515, Markup.regroup() gives every toast sent as omarchy-action or notify-send a deck of its own (toast:<key>). That suits first-login toasts, but omarchy-crash-watch sends as omarchy-action too. It has to, because that app name is the only one Do Not Disturb lets through. So every "Process crashed" toast now stands alone, and since they are critical, none of them expires.

On 4.5.0-rc2 this shows up with anything that crashes repeatedly. Here Playwright's chrome-headless-shell dumped core in bursts of about ten (SIGTRAP) every few minutes during an agent session:

$ coredumpctl list --since -3d
Wed 2026-10-28 11:41:54 CET 537535 1000 1000 SIGTRAP present .../chrome-headless-shell
Wed 2026-10-28 11:41:54 CET 537549 1000 1000 SIGTRAP present .../chrome-headless-shell
...
Wed 2026-10-28 11:46:14 CET 547320 1000 1000 SIGTRAP present .../chrome-headless-shell

The watcher dedupes per program for 60 seconds, so each burst leaves one card. The cards then pile up down the right edge, one identical "Process crashed: chrome-headless-shell" after another, until each is dismissed by hand. In rc1 they still stacked, because they all fell under app:omarchy-action.

before-rc2

The change

omarchy-notification-send takes --group <name> and sends it as an omarchy-group hint. regroup() puts an omarchy-action or notify-send toast that names a group into the deck group:<name>. Without the hint each toast still stands alone, and a named app keeps its own deck whatever it sends. The row keeps group in live.json, so a critical card that comes back after a shell restart lands in the same deck.

omarchy-crash-watch sends with --group crashes, so every crash card shares one deck, whichever program crashed. Each card still names its program and diagnoses its own PID on click, and the Do Not Disturb bypass is unchanged.

The hint gives a sender nothing new. Any local process can already send a critical omarchy-action toast, and the hint only decides which deck that toast joins. The group: prefix can't collide with an app or site deck.

#10157 folds a storm of differently named crashes onto one counting card, and #16823 skips Chromium child crashes. Neither covers one program crashing again more than a minute later, which is the case here, since these were main processes with no --type=. Both merge cleanly with this branch.

Proof

  • The new case in test/shell.d/notifications/logic.cjs fails on quattro at 8478247 with toasts naming one deck stack (actual: 'toast:a'), and passes with the fix. It also checks that a restored crash card keeps its deck and that a named app ignores the hint. notification-send-test.sh checks the new flag becomes the hint.
  • test/cli passes. test/shell passes 404 of 405 files. The one failure, shell-idle-spawn-test.sh, was the keyboard widget's hyprctl -j devices count during layout and screencast events in my live session. That file passes when run alone, both on this branch and on quattro.
  • I ran the branch's shell on my desktop the way agents/skills/visual-verification.md describes, and sent two critical --group crashes toasts and one plain toast to both shells. The packaged rc2 shell showed three separate decks. The branch's shell showed the two crash cards in one deck and the plain toast on its own. After restarting the branch's shell, the two crash cards came back as one collapsed deck.
after-collapsed after-opened

Claude Opus 5.5 assisted with the investigation and the change. I reviewed the code myself.

@greptile-apps

greptile-apps Bot commented Oct 29, 2026 •

Copy link
Copy Markdown
Contributor

RetriggerView in GreptileConfidence Score: 5/5

[Medium impact] The PR appears safe to merge; no new actionable issue remains.

Summary

Crash notifications now share one deck through --group crashes.

  • Crash alerts now stack in one deck, even after a restart.

Both earlier, unnumbered findings are addressed: group names no longer pass through the lossy slug() conversion, and the crash-capture paragraph uses one source line.

No new actionable issues were found. Checks were limited to source review; this environment has no running Quickshell desktop for visual capture.

Reviews (3) · Last reviewed commit: "Keep a notification group name as given" · Reviewed by Greptile

Comment thread shell/plugins/notifications/Markup.js Resolved
Comment thread docs/notifications.md Resolved
@omarchybot

Copy link
Copy Markdown
Collaborator

Thanks for the detailed write-up and the screenshots, @radimsem. Here is where this one stands.

What was checked. I read the diff at d22f3a1 against quattro, the history behind it (#16515 gave every unnamed-sender toast its own deck), and the other open crash-watch PRs. Nothing duplicates it. #10157 folds a storm of differently named crashes onto one counting card, and #16823, #17067 and #17235 filter out Chromium/Electron child crashes. None of them groups repeat crash cards into one deck.

Classification is unsettled. Two models classify each item independently, and they disagreed here. Claude Opus 5.5 classed it as a bug: since #16515, crash cards no longer stack the way they did in rc1, and critical cards never expire. Codex (medium effort) classed it as an enhancement: a new --group flag and a new omarchy-group hint on the sender contract. Because the two disagree, I haven't added a class label, and the change hasn't been verified on a worker yet. The maintainer decides which it is.

One thing for you. The branch no longer merges cleanly into quattro. bin/omarchy-notification-send conflicts with the --transient flag that landed there since 8478247. The flag needs adding to the omarchy:args line, the usage string and known_flag alongside --group. The other six files merge on their own.

Next. This waits on the maintainer to settle the classification. Once it's settled, it gets run on a worker and reviewed in full.

@radimsem

radimsem commented Nov 3, 2026

Copy link
Copy Markdown
Author

I rebased the branch onto quattro to clear the conflict in bin/omarchy-notification-send. Upstream added --transient to the same three lines that carry --group, so the omarchy:args header, the usage string and known_flag now list both flags. The other six files applied on their own.

I ran notification-send, notifications, crash-capture, migrate-notify and notification-glyph under test/shell.d/, and ./test/cli. All of them pass.

@radimsem
radimsem force-pushed the fix/notification-crash-deck branch from d22f3a1 to f13f052 Compare November 3, 2026 08:08
@omarchybot omarchybot added the enhancement New feature or request label Nov 18, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants