mirror of
https://github.com/openai/codex.git
synced 2026-12-02 00:31:03 +00:00
## What changed Let in-process sessions and hosts using stdio or gRPC supply trusted JavaScript helpers. Run each helper before the cell's module in the same V8 context, only when the cell exposes a unique matching binding with the expected tool name and namespace. Report ambiguous bindings and preload failures as bounded cell errors. Suppress V8 diagnostics on stdout so they cannot corrupt stdio protocol frames. ## Testing Add coverage for per-session helper selection, exact tool matching, ambiguous bindings, and bounded compile and execution errors. A stdio subprocess test checks that a failed preload leaves another session on the same connection usable. Allow more time for existing CLI and MCP integration tests to connect, start their test server, or shut down. GitOrigin-RevId: f9f037de7f9d6018ae755b38475c4131ca7ba1f0
17 lines
386 B
Rust
17 lines
386 B
Rust
mod cell_actor;
|
|
mod output;
|
|
mod runtime;
|
|
mod service;
|
|
mod session_runtime;
|
|
mod ui;
|
|
mod v8_init;
|
|
|
|
pub(crate) type TaskFailureHandler = std::sync::Arc<dyn Fn(String) + Send + Sync>;
|
|
|
|
pub use codex_code_mode_protocol::*;
|
|
pub use service::InProcessCodeModeSession;
|
|
pub use service::ToolPreload;
|
|
pub use ui::run as run_ui_sandbox;
|
|
pub use v8_init::V8JitMode;
|
|
pub use v8_init::initialize_v8;
|