Skip to content

feat(config): Allow setting sandbox_mode within profiles - #2397

Closed
eliasjz36 wants to merge 1 commit into
openai:mainfrom
eliasjz36:fix/issue-#2384
Closed

eliasjz36 wants to merge 1 commit into
openai:mainfrom
eliasjz36:fix/issue-#2384

Conversation

@eliasjz36

Copy link
Copy Markdown

Allow defining sandbox_mode and its
related sandbox_workspace_write settings directly within a profile.

Changes:

  • Extending the ConfigProfile struct to include sandbox_mode and
    sandbox_workspace_write fields.
  • Modifying the derive_sandbox_policy function to apply settings with the
    following precedence: CLI > Profile > Top-level.
  • Including the necessary unit tests.
  • Updating the trust flow logic to also skip the prompt if a
    profile defines a sandbox mode.

Example:

[profiles.dev-project]
sandbox_mode = "workspace-write"
[profiles.dev-project.sandbox_workspace_write]
writable_roots = ["~/dev/project-a"]

Fixes #2384

@pro100filipp

Copy link
Copy Markdown

Any chance this PR will be merged in the next release? It'll be very useful for "ask" type profiles.

@bentito

bentito commented Sep 4, 2025

Copy link
Copy Markdown

This PR should get approval for CI at least, no?

@etraut-openai

Copy link
Copy Markdown
Contributor

@eliasjz36, thanks for the contribution. We appreciate it!

We got pretty far behind in reviewing PRs, and the underlying code has changed significantly since you created this PR. I've posted a new PR that effectively does the same thing as your PR but with the latest code. I'm going to close this PR.

@github-actions github-actions Bot locked and limited conversation to collaborators Oct 25, 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.

sandbox-mode seems ignored in config.toml

4 participants