Repository navigation
Description
Bug type
Regression (worked before, now fails)
Beta release blocker
No
Summary
In OpenClaw 2026.5.28, Telegram DM requires exec approval for allowlisted binaries (gog tasks add) despite tools.exec.ask: off, security: allowlist, and the binary in ~/.openclaw/exec-approvals.json allowlist — the same commands from webchat execute without approval.
Steps to reproduce
- Set tools.exec.security: allowlist, tools.exec.ask: off in config
- Add /usr/local/bin/gog to host allowlist: openclaw approvals allowlist add /usr/local/bin/gog
- Set host approvals defaults: security: allowlist, ask: off, askFallback: allowlist
- Restart gateway
- From webchat: run gog tasks add "" --title "test" → executes without approval ✅
- From Telegram DM (same user, main session): send "todo test" → agent runs gog tasks add → approval prompt appears ❌
Expected behavior
Telegram DM exec should respect the same policy as webchat. With security: allowlist, ask: off and gog allowlisted, gog tasks add from Telegram should execute without approval — consistent with webchat behavior and with earlier OpenClaw versions where this setup worked.
Actual behavior
Telegram DM always generates exec.approval.waitDecision for gog invocations. The approval prompt appears in webchat Control UI, not on Telegram. Gateway log shows: [exec] ignoring unprofiled safeBins entries (gog) followed by [ws] ⇄ res ✓ exec.approval.waitDecision for every Telegram-triggered exec.
OpenClaw version
2026.5.28 (e932160)
Operating system
RHEL EL10, kernel 6.12.0-211.18.1.el10_2.x86_64
Install method
npm global
Model
deepseek/deepseek-v4-pro
Provider / routing chain
openclaw → deepseek
Additional provider/model setup details
Default model is deepseek-v4-pro via deepseek API key (env: DEEPSEEK_API_KEY). No routing middleware, no gateway proxy. Config: models.providers.deepseek.apiKey: env:DEEPSEEK_API_KEY.
Logs, screenshots, and evidence
# Gateway log during Telegram exec:
[exec] ignoring unprofiled safeBins entries (gog); use allowlist or define tools.exec.safeBinProfiles.<bin>
[ws] ⇄ res ✓ exec.approval.waitDecision 3410ms conn=fb8a2892…2e17 id=28cf1c1d…e342
# Effective exec policy (shown by openclaw exec-policy show):
security=allowlist, ask=off
# Webchat gog tasks add — works:
$ gog tasks add "MTE4ODI2MDk1MDI4NDA5Njg1NTY6MDow" --title "TEST" --json
{"task":{"id":"Nno0UWdrS3Bkb3ctRUJKcQ","title":"TEST",...}}
# Telegram same command — requires approval, shows in webchat UI as:
"Exec approval needed — expires in 29m"Impact and severity
- Affected: Telegram DM user (single-owner bot setup)
- Severity: High — blocks routine tasks (Google Tasks add/update) from Telegram
- Frequency: 100% — every Telegram-triggered exec requires approval
- Consequence: User must be at webchat Control UI to approve each command; "roaming assistant" workflow broken
Additional information
This setup worked in earlier OpenClaw versions (pre-2026.3.x) where Telegram DM exec honored allowlist + ask:off. Possibly related to #45464 (Telegram DM exec parity broken, 2026.3.12) and #68739 (execApprovals.enabled=false ignored, 2026.4.15). channels.telegram.execApprovals.enabled was set to false with no change in behavior.
Metadata
Metadata
Assignees
Labels
Type
Fields
Priority
Activity
clawsweeper commentedon May 31, 2026
Codex review: keeping this open for maintainer follow-up; there is still a little grit to resolve. Reviewed May 31, 2026, 4:22 PM ET / 20:22 UTC.
Summary
Keep open. The report describes a current-release Telegram regression against documented exec approval semantics, and current main does not show a post-release fix for the Telegram/exec approval path.
Reproducibility: no. high-confidence current-main reproduction was established in this read-only pass. The issue provides concrete v2026.5.28 steps and logs, and source inspection identifies the path where an allowlisted
ask=offcommand should avoidexec.approval.waitDecision.Ways to help us reproduce this
Next step
A focused repair lane can investigate the Telegram-origin exec path and add regression coverage, but it must reproduce the policy mismatch before changing behavior.
Review details
Best possible solution:
Restore channel-neutral exec policy evaluation so Telegram DM uses the same effective
tools.execand host allowlist decision as webchat, with no new config knob.Do we have a high-confidence way to reproduce the issue?
No high-confidence current-main reproduction was established in this read-only pass. The issue provides concrete v2026.5.28 steps and logs, and source inspection identifies the path where an allowlisted
ask=offcommand should avoidexec.approval.waitDecision.Is this the best way to solve the issue?
Unclear until the Telegram-origin path is reproduced. The best repair should keep the existing policy model and fix the mismatch rather than adding a Telegram-specific config override.
AGENTS.md: found and applied where relevant.
Remaining risk / open question:
Codex review notes: model gpt-5.5, reasoning high; reviewed against b0679d1f13da.
Label changes
Label changes:
P1: A latest-release regression blocks a real Telegram DM agent workflow and forces approval from another UI surface.impact:security: The report concerns exec approval policy and allowlist enforcement, which is OpenClaw's host execution guardrail.impact:message-loss: The approval prompt is reported as surfacing in Control UI instead of the active Telegram DM workflow, leaving the channel user without the expected decision surface.issue-rating: 🦐 gold shrimp: Current issue advisory state selects this label.clawsweeper:needs-info: Current issue advisory state selects this label.Label justifications:
P1: A latest-release regression blocks a real Telegram DM agent workflow and forces approval from another UI surface.impact:security: The report concerns exec approval policy and allowlist enforcement, which is OpenClaw's host execution guardrail.impact:message-loss: The approval prompt is reported as surfacing in Control UI instead of the active Telegram DM workflow, leaving the channel user without the expected decision surface.Evidence reviewed
Acceptance criteria:
ask=offexec path before handoff.What I checked:
gog tasks addcommand runs from webchat but a Telegram DM turn emitsexec.approval.waitDecisiondespitesecurity=allowlist,ask=off, and an allowlisted/usr/local/bin/gog.tools.exec.*and host approvals, andexec.ask: offmeans never prompt while allowlist mode runs allowlisted commands. Public docs:docs/tools/exec-approvals.md. (docs/tools/exec-approvals.md:22, b0679d1f13da)src/agents/bash-tools.exec.ts:1436, b0679d1f13da)processGatewayAllowlistevaluates the host allowlist and only registers an approval request whenrequiresAskis true, so a plain allowlisted command with effectiveask=offshould not reachexec.approval.waitDecision. (src/agents/bash-tools.exec-host-gateway.ts:339, b0679d1f13da)extensions/telegram/src/exec-approvals.ts:188, b0679d1f13da)Likely related people:
src/agents/bash-tools.exec-host-gateway.ts,src/agents/bash-tools.exec-approval-followup.ts)extensions/telegram/src/channel.ts,src/agents/bash-tools.exec-host-gateway.ts,src/infra/exec-approval-forwarder.ts)src/agents/bash-tools.exec.ts,src/agents/bash-tools.exec-runtime.ts)src/cli/exec-policy-cli.ts,src/infra/exec-approvals-effective.ts,docs/tools/exec-approvals.md)tools.exec.safeBins, both relevant to the report's policy and safe-bin evidence. (role: exec approvals default and safeBins history contributor; confidence: medium; commits: 2d583e877b60, 9450873c1b6a, a48694078171; files:src/infra/exec-approvals.ts,src/agents/pi-tools.ts)How this review workflow works
@clawsweeper re-reviewcomments, exact-item GitHub events, scheduled/background review runs, or manual workflow dispatch.@clawsweeper re-reviewor@clawsweeper re-runon an open PR or issue to request a fresh review only.@clawsweeper reviewto request a fresh review only.@clawsweeper autofix,@clawsweeper automerge,@clawsweeper fix ci, or@clawsweeper address review.@clawsweeper explainto ask for more context, or@clawsweeper stopto stop active automation.fix #88773: [Bug]: Telegram DM exec requires approval despite allowli…
fix openclaw#88773: [Bug]: Telegram DM exec requires approval despite…
fix openclaw#88773: [Bug]: Telegram DM exec requires approval despite…