Troubleshooting OpenClaw host exec / approval behavior. I want to know if it is due to a recent update.
Issue:
Scheduled jobs are firing, but some jobs that use exec fail during host command execution.
Observed failures:
-
Earlier error:
exec denied: allowlist miss -
After adding host exec approval allowlist entries, the error changed, which suggests the allowlist partially helped:
commands using~were treated literally in a non-shell context instead of expanding to the home directory. -
Separate issue:
some harmless local troubleshooting commands also hit exec approval timeout before they could run.
Patterns noticed:
- The issue seems tied to isolated/background scheduled runs using host exec.
- The jobs can reach
exec, so tool availability itself does not seem to be the main problem. - The block appears to happen at the host approval / allowlist layer.
- Multi-line heredoc commands seem more likely to trigger approval friction.
- Non-shell exec contexts do not seem to expand
~.
Questions:
- For isolated scheduled runs, what is the exact inheritance chain for host exec permissions?
- Is
exec-approvals.jsonthe correct current place to allow trusted recurring host commands for scheduled jobs? - Are approvals expected to behave differently for isolated runs vs normal chat runs?
- Is lack of
~expansion in non-shell exec contexts expected? - What is the recommended safe setup for recurring local automation jobs that need host exec without constant approval issues?
Looking for:
- the correct mental model
- the right config surface to fix it
- the recommended safe pattern for recurring trusted local commands