-
Notifications
You must be signed in to change notification settings - Fork 6.8k
feat: Add support for --add-dir to exec and TypeScript SDK #6565
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
💡 Codex Review
Here are some automated review suggestions for this pull request.
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
|
@danfhernandez, thanks for the contribution. Looks like there's a CI test failure that needs to be fixed. |
Fixed! |
Updated TypeScript SDK to use writeableRoots instead of additionalDirectories for better clarity. Also updated comment from --add-dir to --config sandbox_workspace_write.writable_roots to reflect the actual CLI usage. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <[email protected]>
Updated the TypeScript SDK package.json to include the vendor folder in the published package files. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <[email protected]>
codex-rs/exec/tests/suite/add_dir.rs
Outdated
|
|
||
| /// Verify that the --add-dir flag is accepted and the command runs successfully. | ||
| /// This test confirms the CLI argument is properly wired up. | ||
| #[tokio::test(flavor = "multi_thread", worker_threads = 2)] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
let's keep only on test that adds multiple
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Updated
Summary
Adds support for specifying additional directories in the TypeScript SDK through a new
additionalDirectoriesoption inThreadOptions.Changes
additionalDirectoriesparameter toThreadOptionsinterfaceCodexExecto accept and pass through additional directories via the--configflag forsandbox_workspace_write.writable_rootsTest plan
additionalDirectoriesis correctly passed as repeated flags