#21509: fix: show requestedHost instead of configuredHost in exec host error hint
agents
size: XS
## Summary
The error message for disallowed exec host showed the already-configured host in the `configure tools.exec.host=X to allow` hint, making the suggestion circular and confusing.
**Before:** `exec host not allowed (requested gateway; configure tools.exec.host=sandbox to allow)`
**After:** `exec host not allowed (requested gateway; configure tools.exec.host=gateway to allow)`
One-line fix: `configuredHost` → `requestedHost` in the error string interpolation.
Fixes #21501
<!-- greptile_comment -->
<h3>Greptile Summary</h3>
Fixed error message to show the host the user should configure instead of the already-configured host. When an exec host request is denied, the error previously told users to configure `tools.exec.host` to the value that was already set, creating a confusing circular suggestion. The fix correctly suggests configuring the requested host instead.
- Corrected error hint in `src/agents/bash-tools.exec.ts:288` from `configuredHost` to `requestedHost`
- Added `openclaw-*.log` to `.gitignore` (unrelated cleanup)
<h3>Confidence Score: 5/5</h3>
- This PR is safe to merge with no risk
- Single-line fix that corrects a simple variable reference in an error message. The change is logically correct (verified against test expectations), has no side effects, and improves user experience by providing accurate configuration guidance
- No files require special attention
<sub>Last reviewed commit: f3a586a</sub>
<!-- greptile_other_comments_section -->
<sub>(3/5) Reply to the agent's comments like "Can you suggest a fix for this @greptileai?" or ask follow-up questions!</sub>
<!-- /greptile_comment -->
Most Similar PRs
#21562: fix: exec host error message shows configuredHost instead of reques...
by TopangaLudwitt · 2026-02-20
92.7%
#21820: fix(exec): show requested host in disallowed host hint
by AlexAnys · 2026-02-20
91.2%
#21280: fix(exec): reflect configured exec host in tool schema default (#11...
by Asm3r96 · 2026-02-19
80.7%
#4897: fix: config logic issues (#4689, #4654)
by lailoo · 2026-01-30
78.6%
#9200: Fix: Strip dangerous env vars from baseEnv in host execution
by vishaltandale00 · 2026-02-05
77.4%
#11185: fix #11150 - [Bug]: Exec tool schema host default ignores tools.exe...
by Lucky-Lodhi2004 · 2026-02-07
76.1%
#17788: fix: correct config path in sessions_spawn error hint (v2)
by Limitless2023 · 2026-02-16
75.7%
#23811: Config: fail closed when exec host=sandbox but sandbox mode is off
by bmendonca3 · 2026-02-22
75.6%
#9433: fix: pass raw command string to node exec instead of argv array
by dbottme · 2026-02-05
74.0%
#3872: improve bash-tools.exec.ts code quality
by Bestom927 · 2026-01-29
74.0%