Commit 8a70655
fix(engine): grant Read tool and acceptEdits permission mode to Claude (#895)
The Claude spawn only granted Bash, Write, and Edit via --allowed-tools
and never passed --permission-mode, so Claude defaulted to interactive
permission mode. Detection artifacts live under
/tmp/gh-aw/threat-detection/, outside Claude's working directory, so
Read requests there were denied with no user available to grant
consent. Sonnet-class models silently recover via `Bash cat`, masking
the bug, but Haiku (the default `detection` model alias) exhausts its
retries and never records a verdict.
Add --permission-mode acceptEdits and grant Read, Read(/tmp/*), and
Read(/tmp/gh-aw/*) alongside the existing tools, matching gh-aw's own
Claude engine invocation.
Co-authored-by: GitHub Ace <githubnext@users.noreply.github.com>
Co-authored-by: David Slater <12449447+davidslater@users.noreply.github.com>1 parent 10d8900 commit 8a70655
2 files changed
Lines changed: 23 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
331 | 331 | | |
332 | 332 | | |
333 | 333 | | |
334 | | - | |
335 | | - | |
| 334 | + | |
| 335 | + | |
| 336 | + | |
| 337 | + | |
| 338 | + | |
| 339 | + | |
| 340 | + | |
| 341 | + | |
| 342 | + | |
| 343 | + | |
| 344 | + | |
| 345 | + | |
| 346 | + | |
| 347 | + | |
| 348 | + | |
| 349 | + | |
| 350 | + | |
336 | 351 | | |
337 | 352 | | |
338 | 353 | | |
339 | 354 | | |
340 | | - | |
| 355 | + | |
341 | 356 | | |
342 | 357 | | |
343 | 358 | | |
| |||
352 | 367 | | |
353 | 368 | | |
354 | 369 | | |
355 | | - | |
| 370 | + | |
356 | 371 | | |
357 | 372 | | |
358 | 373 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
248 | 248 | | |
249 | 249 | | |
250 | 250 | | |
251 | | - | |
| 251 | + | |
252 | 252 | | |
253 | 253 | | |
254 | 254 | | |
255 | 255 | | |
256 | 256 | | |
257 | 257 | | |
258 | 258 | | |
259 | | - | |
| 259 | + | |
260 | 260 | | |
261 | 261 | | |
262 | 262 | | |
| |||
279 | 279 | | |
280 | 280 | | |
281 | 281 | | |
282 | | - | |
| 282 | + | |
| 283 | + | |
283 | 284 | | |
284 | 285 | | |
285 | 286 | | |
| |||
0 commit comments