Skip to content

Conversation

@danfhernandez
Copy link
Contributor

Summary

Adds support for specifying additional directories in the TypeScript SDK through a new additionalDirectories option in ThreadOptions.

Changes

  • Added additionalDirectories parameter to ThreadOptions interface
  • Updated CodexExec to accept and pass through additional directories via the --config flag for sandbox_workspace_write.writable_roots
  • Added comprehensive test coverage for the new functionality

Test plan

  • Added test case that verifies additionalDirectories is correctly passed as repeated flags
  • Existing tests continue to pass

Copy link
Contributor

@chatgpt-codex-connector chatgpt-codex-connector bot left a 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".

@etraut-openai
Copy link
Collaborator

@danfhernandez, thanks for the contribution. Looks like there's a CI test failure that needs to be fixed.

@etraut-openai etraut-openai added the needs-response Additional information is requested label Nov 13, 2025
@danfhernandez
Copy link
Contributor Author

@danfhernandez, thanks for the contribution. Looks like there's a CI test failure that needs to be fixed.

Fixed!

@etraut-openai etraut-openai removed the needs-response Additional information is requested label Nov 13, 2025
@danfhernandez danfhernandez changed the title feat: Add support for additional directories in TypeScript SDK feat: Add support for sandbox_workspace_write.writable_roots in TypeScript SDK Nov 13, 2025
danfhernandez and others added 2 commits November 12, 2025 20:13
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]>
@danfhernandez danfhernandez changed the title feat: Add support for sandbox_workspace_write.writable_roots in TypeScript SDK feat: Add support for --add-dir to exec and TypeScript SDK Nov 13, 2025

/// 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)]
Copy link
Collaborator

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

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Updated

@pakrym-oai pakrym-oai enabled auto-merge (squash) November 13, 2025 21:43
@pakrym-oai pakrym-oai disabled auto-merge November 13, 2025 21:47
@pakrym-oai pakrym-oai merged commit b4a53ae into openai:main Nov 13, 2025
24 checks passed
@github-actions github-actions bot locked and limited conversation to collaborators Nov 13, 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.

3 participants