Commit 22b406c
CM-64462: redirect stdin explicitly in Copilot report-mode hooks
Copilot's bash hook field runs under bash, which reattaches a backgrounded
command's stdin to /dev/null (POSIX behavior with job control off) - the scan
read an empty payload and silently no-oped without reaching the backend.
An explicit <&0 disables that default and keeps the payload flowing.
Cursor/Codex keep the bare '&' - their runners were verified to deliver
stdin to backgrounded scans (zsh keeps it; bash/sh do not).
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>1 parent 64f5132 commit 22b406c
2 files changed
Lines changed: 9 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
28 | 28 | | |
29 | 29 | | |
30 | 30 | | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
31 | 36 | | |
32 | 37 | | |
33 | 38 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
317 | 317 | | |
318 | 318 | | |
319 | 319 | | |
320 | | - | |
| 320 | + | |
| 321 | + | |
| 322 | + | |
321 | 323 | | |
322 | 324 | | |
323 | 325 | | |
324 | | - | |
| 326 | + | |
325 | 327 | | |
326 | 328 | | |
327 | 329 | | |
| |||
0 commit comments