Skip to content

Inaccurate instances of "This operation accesses path(s) outside allowed directories" #159

@andrewneilson

Description

@andrewneilson

Describe the bug

Twice this morning I've been asked to approve actions with this message:

This operation accesses path(s) outside allowed directories...

But the action in question is not actually accessing other paths; in one instance there was a substring like /xyz as part of an awk command being run and it seems to be interpreted as the directory, /xyz.

In the second instance, I don't understand why it happened at all. A markdown file in the current directory was being created and I was asked to approve access outside allowed directories.

Affected version

0.0.330

Steps to reproduce the behavior

Both times this occurred was in the middle of the agent trying to debug an issue and I cannot reliably reproduce this.

Expected behavior

No response

Additional context

  • macOS
  • ARM
  • iterm2
  • zsh

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions