Approval timeout decisions¶
Open Tools → Workflows, edit a workflow, and set If nobody answers in time. Decline is the default. An unanswered request expires and the tool call stops. Approve gives approvers until the deadline to respond. If the request is still unanswered, Preloop records an automatic approval and releases the waiting call. A decline settles a pending request immediately.
The workflow menu marks workflows that approve on timeout. When a request is
pending, its notifications tell approvers when it will run automatically unless
declined. The approval history and audit trail identify Preloop as the decider.
The API and agent outcome include auto_approved_reason: timeout.
Where automatic approval is available¶
An administrator with permission to manage approval workflows can opt in for a
standard, single-approver workflow. A single-approver workflow can notify several
eligible people. Any eligible approver can decline. Quorum and multi-stage
workflows, AI decisions, and external decision hand-offs require their own
approval paths. Desktop control, owner consent, payment calls named pay,
Stripe writes, sensitive-data rules, agent questions and answer forms keep
their existing controls.
The server requires at least 120 seconds by default. This gives people time
to respond when a follow-up email is staggered by a minute after mobile push. Set APPROVAL_TIMEOUT_AUTO_APPROVE_MIN_SECONDS to change the server
floor. Its minimum is 60 seconds. If an account cap, flow, or tool argument
gives a specific request less time than the floor, that request expires.
Pending requests cannot approve at timeout while the setting is off. Turning
it on applies to newly created requests. An opted-in request settles on its first
deadline, including on workflows with escalation recipients.
Blocking callers can observe the decision on their next poll. The approval
sweep resolves unattended requests and resumes parked flows on its 30-second
interval. For asynchronous MCP approval, the agent polls
get_approval_status to retrieve the approved result and run a call that is
waiting for a poll.
Native tool hooks¶
Install or refresh the Preloop approval hooks on each agent. When setting a workflow timeout, use the smaller of the configured local hook budget and the limit below. A reverse proxy or other intermediary also needs to allow the permission-check connection to stay open through that window.
| Harness | Maximum workflow wait supported by the Preloop hook | Hook deadlines at that maximum |
|---|---|---|
| Claude Code | 570 seconds (9m 30s) | Preloop HTTP deadline 585 seconds, Claude hook timeout 600 seconds |
| Codex CLI | 86,400 seconds (24h) | Preloop HTTP deadline 86,415 seconds, Codex hook timeout 86,430 seconds |
If the hook already has a shorter cap, set timeout_seconds in the agent's
Preloop permission_hook.json to the desired wait in seconds. Refresh the
agent's approval hooks so its harness timeout is updated too. The CLI prints the
effective budget when installing hooks. If the hook stops waiting before the
workflow timeout, the native call stops. Issue a new call to request a new
decision.
Policy as code¶
Set timeout_decision beside timeout_seconds. Export carries the value, and
apply uses the same workflow permission and validation as the editor.
Destructive shell preset¶
Under Tools → Native tools, open Destructive shell commands need approval, pick a workflow, and choose Add rules. The preset covers native shell calls in Claude Code, Codex CLI, and Cursor. Expand a rule to see the commands it was checked against. The rules cover discarding Git work, force-pushing, deleting branches or tags, recursive force-removal using absolute or parent paths or broad globs, database object removal, Kubernetes deletion, Terraform destruction, and disk or permission sweeps.
Treat these patterns as a safety net. They cannot enforce a security boundary. They inspect the text sent by the harness. Shell expansions, scripts, aliases, and indirect command construction can change what runs. Absolute paths are flagged conservatively even when they point into the workspace.