-
-
Notifications
You must be signed in to change notification settings - Fork 69.5k
Windows Telegram execs fail in allowlist/command-rebuild path #52952
Copy link
Copy link
Open
Description
Summary
On Windows, Telegram-triggered execs still fail in OpenClaw's allowlist/command-rebuild path before approval can help. The gateway restarts cleanly, but a simple PowerShell command is rebuilt into an invalid PowerShell invocation and/or denied with exec denied: allowlist miss.
Environment
- OpenClaw package: 2026.3.13
- Windows host
- Gateway on loopback port 18889
- Telegram approver configured for
6518873123
What I tested
- Updated Telegram exec approvals in
C:\Users\ocdev\.openclaw\openclaw.jsonand restarted the gateway. - Retried a simple Telegram command to list a workspace directory.
- Observed a rebuilt PowerShell command like:
...powershell.exe' '-NoLogo' '-NoProfile' '-Command' 'Get-ChildItem ...'
PowerShell rejected it with parser errors such asUnexpected token ''-NoLogo'' in expression or statement. - Retried the direct command:
Get-ChildItem -LiteralPath C:\Users\ocdev\.openclaw\workspace
and gotexec denied: allowlist miss. - I also tested a local bundle patch to canonicalize bare
powershelltoC:\Windows\System32\WindowsPowerShell\v1.0\powershell.exeand to relax the Windows token scan, but it did not fix the issue. I reverted those edits.
Relevant logs
C:\Users\ocdev\AppData\Local\Temp\openclaw\openclaw-2026-03-23.log14:44:55 Runtime: running ...14:47:10/14:47:19exec denied: allowlist miss
- Session transcript:
C:\Users\ocdev\.openclaw\agents\main\sessions\573231c4-5164-4f01-afcd-a8138904b29d.jsonl
Notes
C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exeexists on this machine.Get-Command powershellresolves to that path.- This looks like an OpenClaw Windows exec allowlist / command-rewrite bug, not a missing PowerShell install or Telegram approval routing issue.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels
Type
Fields
Give feedbackNo fields configured for issues without a type.