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>