Claude notifications: clicking one brings back the app Claude runs in

Ports CoreDesktop's 4fb3539.

The hooks ran notify-send from inside Claude, so the desktop couldn't tell
which app the notification came from and clicking it did nothing.
system/claude-notify finds the terminal or editor among Claude's parent
processes (or tmux's client, or the Flatpak) and names it in the
desktop-entry hint. The title shows the project folder and the body
Claude's own message.

configure agents writes the hooks through it, and swaps the old
notify-send ones for it, only where they're still the ones it wrote.
update doesn't change settings, so old hooks make configure agents to do
until it has swapped them.

Smoketest: 35-claude-notify. TEST.md: click one on COSMIC.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-11-28 19:00:43 -07:00
co-authored by Claude Opus 5.5
parent dfb43c866c
commit 2952034654
7 changed files with 203 additions and 14 deletions
-1
View File
@@ -53,7 +53,6 @@ Since `4a4a3bd`, to look at:
and its later checks from `d5925fa` (what root runs is root's alone) and
`53c6c8b` (the install path). Hiding the connector's settings from
agents is done.
- [ ] `4fb3539` Claude notifications: clicking one brings back the app Claude runs in
- [ ] `9dc5eb1` Upgrade safeguards, hardware setup, sign-in options and Taildrop.
To port: `configure security-key` and `configure fingerprint` (through
`pam-auth-update` and fprintd on Pop!_OS, not by editing PAM files),