Skip to content

Verify Codex git commits on Linux sandbox #1161

Closed

Description

@currentbits

On macOS, #1160 (commit 07aab234) makes Codex workspace-write able to git add/commit by listing the checkout gitdir (and linked-worktree objects/refs/logs) in sandbox_workspace_write.writable_roots. Linux bubblewrap is different: openai/codex#14338 and #19786 report that a later read-only bind mount on .git / gitdir: wins even when the path is in writable_roots, so git add fails with Read-only file system on index.lock.

Reproduce on Linux with Codex CLI: a standalone repo and a linked worktree, both outside /tmp, codex sandbox -c sandbox_mode=workspace-write with Solenta's computed writable_roots, then git add and git commit. If the RO mount still wins, implement a Linux-specific workaround (do not grant the whole common dir, which would make sibling worktree indexes writable) and extend electron/test/codex-git-sandbox.test.js so it fails closed on Linux instead of false-passing.

Filed from a Solenta suggested-work chip.

Activity

  1. added and removed on Sep 9, 2026
  2. currentbits commented on Sep 9, 2026

    @currentbits
    OwnerAuthor

    Landed from Solenta thread "Verify Codex git commits on Linux sandbox". Closed on merge.

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions