Skip to content

fix: allow temp directory access in yolo mode without approval#8

Open
kermanx wants to merge 1 commit into
MoonshotAI:mainfrom
kermanx:fix/yolo-temp-approval
Open

fix: allow temp directory access in yolo mode without approval#8
kermanx wants to merge 1 commit into
MoonshotAI:mainfrom
kermanx:fix/yolo-temp-approval

Conversation

@kermanx
Copy link
Copy Markdown

@kermanx kermanx commented May 23, 2026

Related Issue

N/A

Description

In yolo mode, accessing files outside the workspace currently triggers an approval request. This PR adds an exception for the temp directory so that read, write, and search operations under the system temp directory do not require approval.

  • Add gettmpdir() to the Kaos interface and its LocalKaos / SSHKaos implementations.
  • Update YoloOutsideWorkspacePermissionPolicy to bypass approval when the target path is within the temp directory.
  • Update all mock Kaos objects and related tests to include gettmpdir().

Checklist

  • I have read the CONTRIBUTING document.
  • I have linked the related issue, if any.
  • I have added tests that prove my fix is effective or that my feature works.
  • Ran gen-changesets skill, or this PR needs no changeset.
  • Ran gen-docs skill, or this PR needs no doc update.

Made with kimoji~

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant