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:
@@ -31,6 +31,7 @@ Each run writes its logs to `smoketest/results/<time>/`, one per scenario, and p
|
||||
| `10-configure` | `--help`, `--list` (nothing on stderr; agent sign-ins and the sandbox item hidden until they apply), the menu, an unknown item, the Core item's first question, and refusing to run as root |
|
||||
| `20-goa` | `goa-account` with Online Accounts 3.50. It adds Nextcloud and email (quoting a name), adding again changes nothing, and it pauses email and ends the pause. Test a Core takes an unreachable mail server as a sign-in failure, not a wrong password. Removing leaves nothing in the keyring. |
|
||||
| `30-core-local` | Superpanel's entry, Element's config (in ~/.config, or the Flatpak's folder), and the COSMIC Files sidebar. The sidebar check reads and writes ron's pretty format with network places and escaped names, keeps COSMIC Files' defaults, and leaves a file it can't read alone. Then davfs2's secret, read back. |
|
||||
| `35-claude-notify` | `system/claude-notify` with a fake /proc and a stand-in `notify-send`: it names COSMIC Terminal, found among Claude's parent processes, or the Flatpak it runs in, shows the project folder and Claude's message, and names no app it has no desktop entry for. `configure agents` writes its hooks, swaps the old notify-send ones for them, keeps your own hooks and settings, and changes nothing the second time. |
|
||||
| `40-backup` | restic and rclone from apt, with `rclone serve webdav` standing in for Nextcloud and the secrets in the keyring. `system/backup` makes a snapshot that leaves out caches and the install, a file restores from it, and without the passphrase it fails. |
|
||||
| `45-tailnet` | `lib/tailnet.sh` with a stand-in `tailscale`: the other online computers, without phones; nothing when Tailscale is stopped or missing. `configure ai-servers` and `configure storage` ask the tailnet's machines as well as mDNS's, list a machine found both ways once by its tailnet name, and mount a tailnet server at /mnt/<short name>. |
|
||||
| `50-sandbox` *(all)* | Node.js and srt download and install. A stand-in agent can't read `~/.ssh` or Federated Connector's settings, or write outside its project, reaches allowed sites only, and won't start in your home folder. A new bash finds the sandboxed command first. |
|
||||
|
||||
Reference in New Issue
Block a user