Commit e672ca2
feat(#18): detect Zed as a host editor
Adds Zed to notify.sh's editor-detection layer so notifications fired from
agents running inside Zed's integrated terminal route correctly:
- TERM_PROGRAM=zed → bundle ID dev.zed.Zed (Zed sets this env var since
zed-industries/zed#14213, merged 2024-07).
- bundle ID dev.zed.Zed → process name Zed (used by System Events for
window-title capture and frontmost-window suppression).
- Adds Zed to walk_session_chain's terminal-app match list so the panel's
session view records Zed correctly when walking the process tree.
Zed has no external hook system of its own (hooks are not supported in
external agents — see Zed docs), so stack-nudge relies on the agent's
own hooks (e.g. ~/.claude/settings.json) firing from inside Zed's
terminal. The agent-side wiring is already auto-detected by install.sh;
this PR only adds the editor-side recognition for click-to-focus and
mute-when-focused suppression.
README updated with the supported-apps list + a note explaining the
hook flow for Zed users.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent 3c9ed47 commit e672ca2
2 files changed
Lines changed: 8 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
53 | 53 | | |
54 | 54 | | |
55 | 55 | | |
56 | | - | |
| 56 | + | |
57 | 57 | | |
58 | 58 | | |
59 | 59 | | |
60 | 60 | | |
| 61 | + | |
| 62 | + | |
61 | 63 | | |
62 | 64 | | |
63 | 65 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
268 | 268 | | |
269 | 269 | | |
270 | 270 | | |
| 271 | + | |
271 | 272 | | |
272 | 273 | | |
273 | 274 | | |
| |||
356 | 357 | | |
357 | 358 | | |
358 | 359 | | |
359 | | - | |
| 360 | + | |
| 361 | + | |
360 | 362 | | |
361 | 363 | | |
362 | 364 | | |
| |||
366 | 368 | | |
367 | 369 | | |
368 | 370 | | |
| 371 | + | |
369 | 372 | | |
370 | 373 | | |
371 | 374 | | |
| |||
377 | 380 | | |
378 | 381 | | |
379 | 382 | | |
| 383 | + | |
380 | 384 | | |
381 | 385 | | |
382 | 386 | | |
| |||
0 commit comments