Skip to content

Remove TUI legacy Windows sandbox dependency - #27490

Merged
etraut-openai merged 2 commits into
mainfrom
etraut/remove-tui-legacy-windows-sandbox
Jun 11, 2026
Merged

Remove TUI legacy Windows sandbox dependency#27490
etraut-openai merged 2 commits into
mainfrom
etraut/remove-tui-legacy-windows-sandbox

Conversation

@etraut-openai

@etraut-openai etraut-openai commented Jun 10, 2026

Copy link
Copy Markdown
Contributor

Why

This is part of an ongoing attempt to eliminate the TUI's direct dependency on core features. When we moved the TUI to the app server, we left a legacy_core shim that re-exported some remaining core symbols for the TUI. The intent was to eventually remove all of these.

In this PR, we remove the symbols related to the Windows sandbox.

The change should be behavior-neutral and low risk because it's just refactoring and removal of code that is now effectively dead.

When working on this PR, I noticed a big existing problem that affects mixed-platform remoting. For example, if you run the TUI on a Linux box and remote into a Windows box, the TUI logic doesn't properly handle Windows sandbox setup properly. Fixing this is beyond the scope of this PR, but I've left a TODO comment in place so we don't forget.

What changed

  • Move the remaining TUI-specific sandbox level, setup, telemetry, and read-root helpers into codex-tui, calling codex-windows-sandbox directly.
  • Remove the Windows sandbox namespace and read-root grant re-exports from the client-side legacy_core facade.
  • Remove the dormant pre-elevation prompt fallback guarded by the permanently enabled ELEVATED_SANDBOX_NUX_ENABLED switch. The reachable elevated and non-elevated setup flows remain unchanged.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: ef6ead70f6

ℹ️ About Codex in GitHub

Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".

Comment thread codex-rs/app-server-client/src/lib.rs
@etraut-openai etraut-openai changed the title [codex] Remove TUI legacy Windows sandbox dependency Remove TUI legacy Windows sandbox dependency Jun 10, 2026
@etraut-openai
etraut-openai force-pushed the etraut/remove-tui-legacy-windows-sandbox branch from 4053560 to 44494bb Compare June 11, 2026 03:16
@etraut-openai
etraut-openai merged commit 1e5b87b into main Jun 11, 2026
45 of 47 checks passed
@etraut-openai
etraut-openai deleted the etraut/remove-tui-legacy-windows-sandbox branch June 11, 2026 16:23
@github-actions github-actions Bot locked and limited conversation to collaborators Jun 11, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants