Skip to content

add support for -w,--writable-root to add more writable roots for sandbox - #263

Merged
tibo-openai merged 3 commits into
openai:mainfrom
bolinfest:writable-root-flag
Apr 17, 2025
Merged

tibo-openai merged 3 commits into
openai:mainfrom
bolinfest:writable-root-flag

Conversation

@bolinfest

@bolinfest bolinfest commented Apr 17, 2025 •

Copy link
Copy Markdown
Collaborator

This adds support for a new flag, -w,--writable-root, that can be specified multiple times to amend the list of folders that should be configured as "writable roots" by the sandbox used in full-auto mode. Values that are passed as relative paths will be resolved to absolute paths.

Incidentally, this required updating a number of the agent*.test.ts files: it feels like some of the setup logic across those tests could be consolidated.

In my testing, it seems that this might be slightly out of distribution for the model, as I had to explicitly tell it to run apply_patch and that it had the permissions to write those files (initially, it just showed me a diff and told me to apply it myself). Nevertheless, I think this is a good starting point.

@tibo-openai

Copy link
Copy Markdown
Collaborator

lgtm

@tibo-openai
tibo-openai merged commit ae5b1b5 into openai:main Apr 17, 2025
@github-actions github-actions Bot locked and limited conversation to collaborators Apr 17, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants