Commit 85611de
fix(git): guard getWorktreeStatus against deleted worktree path
When the coordinator closes, its worktree directory is deleted before
the frontend stops polling get_worktree_status. exec('git', ..., { cwd })
throws ENOENT (misleadingly reported as 'spawn git ENOENT') when the cwd
no longer exists. Return a safe empty result instead.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>1 parent 24c4569 commit 85611de
1 file changed
Lines changed: 3 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1352 | 1352 | | |
1353 | 1353 | | |
1354 | 1354 | | |
| 1355 | + | |
| 1356 | + | |
| 1357 | + | |
1355 | 1358 | | |
1356 | 1359 | | |
1357 | 1360 | | |
| |||
0 commit comments