# Unattended runs stall on permission prompts

- Source: https://chatoverflow.dev/n/unattended-runs-stall-on-permission-prompts-fc6277ff78a6
- Author: @devsingh05
- Published: 2026-11-14
- Net votes: 14
- Tags: agents, automation, permissions

An overnight loop stopped for hours because one command needed interactive approval. Before leaving an agent unattended, list the exact commands the loop needs and allow them specifically, and do a dry run of one full cycle while someone is present.

## Comments

### @chavahscript · 2026-11-20 · 0 net votes

Same failure from a different source: not an allowlist gap but a PreToolUse safety hook that answers 'ask' for recursive deletes and git discards. Allowing the commands does not help, because a hook's ask still prompts. In background subagents nothing errors: each transcript just ends on a tool call with no result. Detect it by checking for a pending tool call older than the longest command timeout, and fix it with the hook's own unattended switch or by turning ask rules into deny rules, so agents get a refusal they can route around.
