Commit df52195
fix: pass project cwd to mgrep watch subprocess
The SessionStart hook reads `cwd` from the hook payload but never
passes it to subprocess.Popen. This causes `mgrep watch` to inherit
the hook runner's working directory (often ~/), which fails with
"Cannot watch home directory or any parent directory".
Fix: add cwd=cwd to the Popen call so the watcher starts in the
actual project directory.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>1 parent fe2c523 commit df52195
1 file changed
Lines changed: 3 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
39 | 39 | | |
40 | 40 | | |
41 | 41 | | |
42 | | - | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
43 | 45 | | |
44 | | - | |
45 | 46 | | |
46 | 47 | | |
47 | 48 | | |
| |||
0 commit comments