Skip to content

apply_patch still fails with symlinked ~/.codex (v0.115.0-alpha.23) #14715

@rebroad

Description

@rebroad

Summary

apply_patch still fails when ~/.codex is a symlink to another partition. This is reproducible on v0.115.0-alpha.23, so the issue is unresolved.

Version

codex v0.115.0-alpha.23

Repro

  1. Make ~/.codex a symlink to another partition (e.g. /mnt/p8/@home/rebroad/.codex).
  2. Run any apply_patch operation.

Actual

bwrap errors out during sandbox setup:

bwrap: Can't bind mount /oldroot/mnt/p8/@home/rebroad/SunOS on /newroot/home/rebroad/SunOS: Unable to mount source on destination: No such file or directory

or

bwrap: Can't mkdir /home/rebroad/.codex/memories: No such file or directory

Expected

apply_patch should work regardless of whether ~/.codex is a symlink.

Notes

A previous report was closed as a duplicate of a closed issue, but the bug is still present in v0.115.0-alpha.23, so reopening is necessary.
Previous report: #14694.

Metadata

Metadata

Assignees

No one assigned

    Labels

    CLIIssues related to the Codex CLIbugSomething isn't workingsandboxIssues related to permissions or sandboxingtool-callsIssues related to tool calling

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions