Commit 0507eeb
committed
fix(claude): guard wezterm-notify.sh against TTY input and stdin hangs
Manual invocation blocked forever waiting for stdin EOF, and a Claude Code client bug (anthropics/claude-code#78756) intermittently leaves the hook's stdin pipe open, freezing the whole session. Exit early on a TTY and bound the stdin read to 0.5s.1 parent 22066e3 commit 0507eeb
1 file changed
Lines changed: 12 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
11 | | - | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
12 | 23 | | |
13 | 24 | | |
14 | 25 | | |
| |||
0 commit comments