Commit Graph
15 Commits
Author SHA1 Message Date
starr-openaiandCodex a11f4795e3 Draft environment-backed skills and project docs
Co-authored-by: Codex <noreply@openai.com>
2026-03-20 19:21:42 -07:00
starr-openaiandCodex 2de2b1bfbd Implement environment-bound exec plumbing
Co-authored-by: Codex <noreply@openai.com>
2026-03-20 18:52:02 -07:00
starr-openaiandCodex b0b16a2693 Align exec-server handler naming and fs defaults
Restore the app-server fs default onto Environment::default(), bring back a sync local Environment default for that path, and rename the process RPC adapter to match the filesystem handler style.

Co-authored-by: Codex <noreply@openai.com>
2026-03-19 16:31:44 -07:00
starr-openaiandCodex fa160b1699 Split exec process into local and remote implementations
Match the filesystem structure from #15232 for exec process: expose the trait on Environment, keep LocalProcess as the real implementation, use RemoteProcess as the network proxy, and make ProcessHandler a thin RPC adapter over LocalProcess.

Co-authored-by: Codex <noreply@openai.com>
2026-03-19 16:22:03 -07:00
starr-openaiandCodex 3001e1e7b4 Fix exec-server local filesystem compile path
Apply the pending formatting reorderings and switch the server-side
filesystem default to LocalFileSystem so the current PR compiles again.

Co-authored-by: Codex <noreply@openai.com>
2026-03-19 15:21:27 -07:00
starr-openaiandCodex 76978d5a83 Use LocalFileSystem directly in FsApi default
Remove the temporary Environment::local_filesystem() helper and export
LocalFileSystem so fs-only defaults can construct the local filesystem
directly without going through Environment.

Co-authored-by: Codex <noreply@openai.com>
2026-03-19 15:06:06 -07:00
starr-openaiandCodex 048438a44a Rename environment process accessor to get_executor
Drop the stale remote_exec_server_client() accessor now that Environment
exposes the process capability directly, and rename the capability getter
to get_executor() on the environment trait and concrete type.

Co-authored-by: Codex <noreply@openai.com>
2026-03-19 15:03:44 -07:00
starr-openaiandCodex e60eeec4bf Make Environment construction async-only for process setup
Remove sync Default from Environment, construct the local process client
with connect_in_process() in create(None), and switch the fs-only app
server default to a local filesystem constructor.

Co-authored-by: Codex <noreply@openai.com>
2026-03-19 14:56:20 -07:00
starr-openaiandCodex bdfd5abcca Reuse in-process ExecServerClient for local ExecProcess
Remove the duplicate direct-handler local process implementation and make
the local ExecProcess path delegate to the existing in-process
ExecServerClient. Keep lazy initialization only to support sync
Environment::default().

Co-authored-by: Codex <noreply@openai.com>
2026-03-19 14:44:29 -07:00
starr-openaiandCodex 7bbc0a4e15 Use a direct local ExecProcess implementation
Replace the in-process client wrapper with a local ExecProcess that owns
ExecServerHandler directly and forwards process notifications to the
trait event stream. This keeps the default Environment process path
entirely local instead of routing through ExecServerClient.

Co-authored-by: Codex <noreply@openai.com>
2026-03-19 14:36:47 -07:00
starr-openaiandCodex 2d52d35c09 Replace unavailable exec stub with local ExecProcess
Give Environment a real local ExecProcess implementation by default and
keep remote mode selecting the websocket-backed client when configured.
The local implementation lazily initializes an in-process exec-server
client on first use.

Co-authored-by: Codex <noreply@openai.com>
2026-03-19 14:31:47 -07:00
starr-openaiandCodex 7eebdbd3a8 Use local exec process by default in Environment::create
Fall back to an in-process exec-server client when no remote URL is
configured, so constructed Environment values have a real process
capability in both local and remote modes.

Co-authored-by: Codex <noreply@openai.com>
2026-03-19 14:23:58 -07:00
starr-openaiandCodex 952b7212b3 Introduce exec process capability traits
Add a narrow ExecProcess trait for process lifecycle RPCs and expose it
from Environment behind an ExecutorEnvironment trait. Keep the first cut
behavior-preserving by delegating remote mode to the existing
ExecServerClient and returning an unavailable process stub for default
local Environment values.

Co-authored-by: Codex <noreply@openai.com>
2026-03-19 14:18:10 -07:00
pakrym-oai 1837038f4e Add experimental exec server URL handling (#15196)
Add a config and attempt to start the server.
2026-03-19 18:25:11 +00:00
pakrym-oai dee03da508 Move environment abstraction into exec server (#15125)
The idea is that codex-exec exposes an Environment struct with services
on it. Each of those is a trait.

Depending on construction parameters passed to Environment they are
either backed by local or remote server but core doesn't see these
differences.
2026-03-19 08:31:14 -07:00