Skip to content

Conversation

@pakrym-oai
Copy link
Collaborator

@pakrym-oai pakrym-oai commented Nov 10, 2025

Unified exec isn't working on Linux because we don't provide the correct arg0.

The library we use for pty management doesn't allow setting arg0 separately from executable. Use the same aliasing strategy we use for apply_patch for codex-linux-sandbox.

Use #[ctor] hack to dispatch codex-linux-sandbox calls.

Addresses #6450

Copy link
Contributor

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

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.

ℹ️ About Codex in GitHub

Your team has set up Codex to 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 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

… ARM

Add comments noting that the ctor logic for test binary aliasing is not supported on ARM architecture, and conditionally skip affected test on ARM targets.
Move path entry and alias dispatch logic from arg0_dispatch_or_else to a new arg0_dispatch function, allowing reuse in test setup. Update tests to use arg0_dispatch directly. Fix minor regex in unified_exec test. Move 'ctor' dev-dependency to dev-dependencies only in core crate.
core: fix codex-windows-sandbox dependency name
pty: add newline after env insertion for clarity
@pakrym-oai pakrym-oai enabled auto-merge (squash) November 11, 2025 01:02
@pakrym-oai pakrym-oai disabled auto-merge November 11, 2025 01:17
@pakrym-oai pakrym-oai merged commit 6c36318 into main Nov 11, 2025
23 of 25 checks passed
@pakrym-oai pakrym-oai deleted the pakrym/alias-codex-linux-sandbox branch November 11, 2025 01:17
@github-actions github-actions bot locked and limited conversation to collaborators Nov 11, 2025
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.

4 participants