Skip to content

Add optional js_repl isolation and vendored Node runtime#10670

Draft
fjord-oai wants to merge 3 commits intofjord/js_repl_seq---4hn_deh_pjc2v_from
fjord/js_repl_seq---4hn_df54gsg6af
Draft

Add optional js_repl isolation and vendored Node runtime#10670
fjord-oai wants to merge 3 commits intofjord/js_repl_seq---4hn_deh_pjc2v_from
fjord/js_repl_seq---4hn_df54gsg6af

Conversation

@fjord-oai
Copy link
Contributor

@fjord-oai fjord-oai commented Feb 4, 2026

External (non-OpenAI) Pull Request Requirements

Before opening this Pull Request, please read the dedicated "Contributing" markdown file or your PR may be closed:
https://github.com/openai/codex/blob/main/docs/contributing.md

If your PR conforms to our contribution guidelines, replace this text with a detailed and high quality description of your changes.

Include a link to a bug report or enhancement request.

git stack

@fjord-oai fjord-oai changed the base branch from fjord/js_repl_seq---4hn_deh_pjc2v_ to main February 4, 2026 20:15
@fjord-oai fjord-oai force-pushed the fjord/js_repl_seq---4hn_df54gsg6af branch from ba72a13 to 3d292c8 Compare February 4, 2026 20:15
@fjord-oai fjord-oai changed the base branch from main to fjord/js_repl_seq---4hn_deh_pjc2v_ February 4, 2026 20:15
@fjord-oai fjord-oai changed the base branch from fjord/js_repl_seq---4hn_deh_pjc2v_ to main February 4, 2026 21:13
@fjord-oai fjord-oai force-pushed the fjord/js_repl_seq---4hn_df54gsg6af branch from 3d292c8 to 46cde12 Compare February 4, 2026 21:13
@fjord-oai fjord-oai changed the base branch from main to fjord/js_repl_seq---4hn_deh_pjc2v_ February 4, 2026 21:13
@fjord-oai fjord-oai changed the base branch from fjord/js_repl_seq---4hn_deh_pjc2v_ to main February 4, 2026 22:15
@fjord-oai fjord-oai force-pushed the fjord/js_repl_seq---4hn_df54gsg6af branch from 46cde12 to 8a2d2d7 Compare February 4, 2026 22:15
@fjord-oai fjord-oai changed the base branch from main to fjord/js_repl_seq---4hn_deh_pjc2v_ February 4, 2026 22:15
@fjord-oai fjord-oai changed the base branch from fjord/js_repl_seq---4hn_deh_pjc2v_ to main February 4, 2026 22:39
@fjord-oai fjord-oai force-pushed the fjord/js_repl_seq---4hn_df54gsg6af branch from 8a2d2d7 to 3400169 Compare February 4, 2026 22:39
@fjord-oai fjord-oai changed the base branch from main to fjord/js_repl_seq---4hn_deh_pjc2v_ February 4, 2026 22:39
@fjord-oai fjord-oai changed the base branch from fjord/js_repl_seq---4hn_deh_pjc2v_ to main February 5, 2026 03:16
@fjord-oai fjord-oai force-pushed the fjord/js_repl_seq---4hn_df54gsg6af branch from 3400169 to 8093818 Compare February 5, 2026 03:16
@fjord-oai fjord-oai changed the base branch from main to fjord/js_repl_seq---4hn_deh_pjc2v_ February 5, 2026 03:16
@fjord-oai fjord-oai changed the base branch from fjord/js_repl_seq---4hn_deh_pjc2v_ to main February 5, 2026 04:54
@fjord-oai fjord-oai force-pushed the fjord/js_repl_seq---4hn_df54gsg6af branch from 8093818 to 7df6e4f Compare February 5, 2026 04:54
@fjord-oai fjord-oai changed the base branch from main to fjord/js_repl_seq---4hn_deh_pjc2v_ February 5, 2026 04:54
@fjord-oai fjord-oai changed the base branch from fjord/js_repl_seq---4hn_deh_pjc2v_ to main February 5, 2026 05:29
@fjord-oai fjord-oai force-pushed the fjord/js_repl_seq---4hn_df54gsg6af branch from 7df6e4f to 7484eb0 Compare February 5, 2026 05:29
@fjord-oai fjord-oai changed the base branch from main to fjord/js_repl_seq---4hn_deh_pjc2v_ February 5, 2026 05:29
@fjord-oai fjord-oai changed the base branch from fjord/js_repl_seq---4hn_deh_pjc2v_ to main February 5, 2026 16:31
@fjord-oai fjord-oai force-pushed the fjord/js_repl_seq---4hn_df54gsg6af branch from 7484eb0 to 030277a Compare February 5, 2026 16:32
@fjord-oai fjord-oai changed the base branch from main to fjord/js_repl_seq---4hn_deh_pjc2v_ February 5, 2026 16:32
@fjord-oai fjord-oai changed the base branch from fjord/js_repl_seq---4hn_deh_pjc2v_ to main February 5, 2026 17:27
@fjord-oai fjord-oai force-pushed the fjord/js_repl_seq---4hn_df54gsg6af branch from 030277a to 25dfdc4 Compare February 5, 2026 17:27
@fjord-oai fjord-oai changed the base branch from fjord/js_repl_seq---4hn_deh_pjc2v_ to main February 18, 2026 04:50
@fjord-oai fjord-oai force-pushed the fjord/js_repl_seq---4hn_df54gsg6af branch from 0b00f02 to 2e792e5 Compare February 18, 2026 04:50
@fjord-oai fjord-oai changed the base branch from main to fjord/js_repl_seq---4hn_deh_pjc2v_ February 18, 2026 04:50
git-stack-id: fjord/js_repl_seq---4hseucc1sxf70k
git-stack-title: Stop filtering model tools in js_repl_tools_only mode
git-stack-id: fjord/js_repl_seq---4hn_deh_pjc2v_
git-stack-title: Add feature-gated js_repl polling flow
git-stack-id: fjord/js_repl_seq---4hn_df54gsg6af
git-stack-title: Add optional js_repl isolation and vendored Node runtime
@fjord-oai fjord-oai changed the base branch from fjord/js_repl_seq---4hn_deh_pjc2v_ to main February 18, 2026 04:59
@fjord-oai fjord-oai force-pushed the fjord/js_repl_seq---4hn_df54gsg6af branch from 2e792e5 to 84432da Compare February 18, 2026 04:59
@fjord-oai fjord-oai changed the base branch from main to fjord/js_repl_seq---4hn_deh_pjc2v_ February 18, 2026 04:59
aaronl-openai pushed a commit that referenced this pull request Feb 18, 2026
## Summary
This change removes tool-list filtering in `js_repl_tools_only` mode and
relies on the normal model tool descriptions, while still enforcing that
tool execution must go through `js_repl` + `codex.tool(...)`.

## Motivation
The previous `js_repl_tools_only` filtering hid most tools from the
model request, which diverged from standard tool-list behavior and made
signatures less discoverable. I tested that this filtering is not
needed, and the model can follow the prompt to only call tools via
`js_repl`.

## What Changed
- `filter_tools_for_model(...)` in `core/src/tools/spec.rs` is now a
pass-through (no filtering when `js_repl_tools_only` is enabled).
- Updated tests to assert that model tools are not filtered in
`js_repl_tools_only` mode.
- Updated dynamic-tool test to assert dynamic tools remain visible in
model tool specs.
- Removed obsolete test helper used only by the old filtering
assertions.

## Safety / Behavior
- This commit does **not** relax execution policy.
- Direct model tool calls remain blocked in `js_repl_tools_only` mode
(except internal `js_repl` tools), and callers are instructed to use
`js_repl` + `codex.tool(...)`.

## Testing
- `cargo test -p codex-core js_repl_tools_only`
- Manual rollout validation showed the model can follow the `js_repl`
routing instructions without needing filtered tool lists.



#### [git stack](https://github.com/magus/git-stack-cli)
- 👉 `1` #12069
- ⏳ `2` #10673
- ⏳ `3` #10670
@fjord-oai fjord-oai force-pushed the fjord/js_repl_seq---4hn_deh_pjc2v_ branch 19 times, most recently from 1c662b9 to 5d92d44 Compare February 20, 2026 06:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

oai PRs contributed by OpenAI employees

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

Comments