Skip to content

Route unified exec process startup through remote exec-server#15087

Draft
starr-openai wants to merge 2 commits intostarr/exec-server-unified-exec-clean-full-backupfrom
starr/pr-14862-remote-exec-command-mvp
Draft

Route unified exec process startup through remote exec-server#15087
starr-openai wants to merge 2 commits intostarr/exec-server-unified-exec-clean-full-backupfrom
starr/pr-14862-remote-exec-command-mvp

Conversation

@starr-openai
Copy link
Contributor

@starr-openai starr-openai commented Mar 18, 2026

Summary

  • add experimental config for a websocket exec-server endpoint plus optional remote workspace root mapping
  • route unified exec process/session creation through a remote backend when configured
  • wrap remote exec-server sessions behind UnifiedExecProcess so exec_command can stream output, write stdin, and terminate over the existing protocol
  • sketch the filesystem end-state by making codex_environment::Environment pluggable and adding a remote exec-server filesystem adapter
  • add a narrow smoke test for codex exec using a local websocket exec-server as the remote stand-in

Scope

  • this draft now includes both the remote exec_command MVP and a filesystem-backend shape sketch so we can review the end state before splitting into smaller PRs
  • no project-doc, skills, or app-server command routing changes in this draft
  • remote mode fails fast for sandboxed exec and inherited FDs instead of falling back to local

Validation

  • cargo check -p codex-core --lib
  • cargo check -p codex-exec-server --lib
  • cargo check -p codex-app-server --lib
  • just fmt
  • just fix -p codex-core -p codex-exec-server -p codex-app-server
  • earlier on the first commit: cargo test -p codex-core --lib --no-run --message-format=short
  • earlier on the first commit: cargo test -p codex-exec --test all remote_exec_server -- --nocapture

Add experimental config for a websocket exec-server endpoint, select a remote backend at the unified-exec process creation seam, and wrap remote sessions behind the existing process abstraction so exec_command can stream output, write stdin, and terminate over the current exec-server protocol.

Co-authored-by: Codex <noreply@openai.com>
@github-actions
Copy link
Contributor


Thank you for your submission, we really appreciate it. Like many open-source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution. You can sign the CLA by just posting a Pull Request Comment same as the below format.


I have read the CLA Document and I hereby sign the CLA


You can retrigger this bot by commenting recheck in this Pull Request. Posted by the CLA Assistant Lite bot.

Make codex_environment::Environment pluggable, add a remote exec-server filesystem adapter, and wire sessions to use the remote-backed filesystem when the experimental exec-server endpoint is configured so process and filesystem become sibling backend capabilities.

Co-authored-by: Codex <noreply@openai.com>
web_search_mode: constrained_web_search_mode.value,
web_search_config,
use_experimental_unified_exec_tool,
experimental_unified_exec_exec_server_websocket_url,
Copy link
Collaborator

Choose a reason for hiding this comment

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

This should be exec_server_url

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants