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
+2
View File
@@ -92,6 +92,8 @@ Once it's packaged for Pop!_OS (see [PLAN.md](PLAN.md)):
### AI agents and the sandbox
- [ ] Each agent installs and signs in, and runs in the sandbox
- [ ] Claude Code's notification, from Claude in COSMIC Terminal, shows the
project folder, and clicking it brings COSMIC Terminal back
- [ ] If Pop!_OS restricts user namespaces, the AppArmor profile for
bubblewrap lets the sandbox start
- [ ] An AI server on the network or tailnet is found by `configure ai-servers`