Repository navigation
core: correct sandboxed shell tool description (reads allowed anywhere) - #3069
Conversation
- Add focused tests for create_shell_tool_for_sandbox covering WorkspaceWrite/ReadOnly/DangerFullAccess with exact description assertions. - Refactor tests to call create_shell_tool_for_sandbox directly. - Remove parameter schema assertions in these tests. - Update AGENTS.md to state that just fmt may be run automatically without asking.
| - Writing files outside the current directory, and protected folders like .git or .env{} | ||
| - Writing files other than those in the writable roots | ||
| - writable roots: | ||
| {}{} |
There was a problem hiding this comment.
If this list updates mid-conversation, it will impact prompt caching. I believe that this list is currently static, so we should be okay right now, but what do you think of instead adding it to EnvironmentContext?
And if we are making this static, it could be worth moving to an md file and using include_str!
There was a problem hiding this comment.
i decided to keep this change minimal, but I can follow up by moving it to EnvironmentContext. (that was actually my first attempt at this change but I cut it down.)
dylan-hurd-oai
left a comment
There was a problem hiding this comment.
I'm okay with this as a net improvement, but would like to follow this up by moving this to EnvironmentContext, since we're now trying to simplify tool definitions!
Correct the
shelltool description for sandboxed runs and add targeted tests.create_shell_tool_for_sandboxdirectly and assert the exact description text for WorkspaceWrite, ReadOnly, and DangerFullAccess.just fmtcan be run automatically without asking.