Skip to content

exec_shell tool remains unavailable despite allow_shell = true + trusted = true #2523

@Dr3259

Description

@Dr3259

Problem Description

I'm using CodeWhale v0.8.49 on Windows. Even after correctly configuring allow_shell = true and trusted = true, the exec_shell tool still cannot be used.

Reproduction Steps

  1. Configure in config.toml:

    [workspace.'C:\Users\Rui\Codes\zhenhai']
    allow_shell = true
    trusted = true
  2. Save the configuration and fully restart CodeWhale (close the terminal and reopen).

  3. Try executing shell commands, e.g.:

    • echo test
    • Remove-Item "somefile.md" -Force

Actual Result

Always shows the following error:

Shell tools are gated by allow_shell; enable allow_shell = true for trusted workspaces, or switch to an auto-approve mode that permits shell access...

Even though the configuration is correct and has been restarted, exec_shell still cannot be invoked.

Expected Result

After configuring allow_shell = true + trusted = true, the exec_shell tool should work normally.

Environment

  • CodeWhale version: 0.8.49
  • OS: Windows 11
  • Workspace path: C:\Users\Rui\Codes\zhenhai
  • Config file location: Confirmed that config.toml is loaded correctly

Additional Info

  • I tried restarting multiple times, modifying the config path, etc., all to no avail.
  • This prevents the Agent from performing common system tasks like file deletion and directory operations, forcing reliance on limited tools like write_file / edit_file.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    Status
    In progress

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions