Add js_repl host helpers and exec end events#10672
Merged
Conversation
This was referenced Feb 4, 2026
8bb2e54 to
67d6633
Compare
67d6633 to
8dd500e
Compare
8dd500e to
676bc7d
Compare
676bc7d to
c4f3cd8
Compare
c4f3cd8 to
333601f
Compare
333601f to
ff24d97
Compare
ff24d97 to
608b2c1
Compare
608b2c1 to
0b33c6c
Compare
bca106c to
f5a4f98
Compare
f5a4f98 to
527e459
Compare
527e459 to
c83a628
Compare
c83a628 to
d1d2143
Compare
d1d2143 to
79583a3
Compare
79583a3 to
611bc38
Compare
611bc38 to
c6ae99e
Compare
c6ae99e to
7a9453e
Compare
7a9453e to
25fa388
Compare
owenlin0
reviewed
Feb 12, 2026
owenlin0
reviewed
Feb 12, 2026
git-stack-id: fjord/js_repl_seq---4hn_dcnepr036e git-stack-title: Add js_repl host helpers and exec end events
owenlin0
approved these changes
Feb 12, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
This PR adds host-integrated helper APIs for
js_repland updates model guidance so the agent can use them reliably.What’s included
codex.tool(name, args?)in the JS kernel sojs_replcan call normal Codex tools.codex.statecodex.tmpDirjs_repltool calls through the standard tool router path.js_replexecution completion/end event behavior with existing tool logging patterns.project_doc) to document:codex.tool(...)view_image(codex.tmpDir+codex.tool("view_image", ...))console.log/codex.tool, avoid directprocess.std*)Why
codex.tool(...)js_replbehavior more consistent with existing tool execution and event/logging patterns.js_replsafely and effectively.Testing
codex.toolcalls fromjs_repl(including shell/MCP paths)view_imagejs_replguidancegit stack
1Add feature-gated freeform js_repl core runtime #106742Add js_repl host helpers and exec end events #106723Add js_repl_tools_only model and routing restrictions #106714Add feature-gated js_repl polling flow #106735Add optional js_repl isolation and vendored Node runtime #10670