Skip to content

fix(codex): warn about missing Linux sandbox prerequisites - #1258

Merged
Edd88-pixel merged 3 commits into
coder:mainfrom
Edd88-pixel:codex/codex-linux-prerequisites
Nov 19, 2026
Merged

Edd88-pixel merged 3 commits into
coder:mainfrom
Edd88-pixel:codex/codex-linux-prerequisites

Conversation

@Edd88-pixel

Copy link
Copy Markdown
Collaborator

Why

The module validates codex --version but does not check Linux sandbox prerequisites, so installation can succeed without bwrap.

Changes

  • Warn without failing installation when bwrap is missing on Linux.
  • Document bubblewrap requirements and Ubuntu 24.04’s AppArmor caveat.
  • Test missing/present bwrap, user-managed configuration, and non-Linux behavior.

System packages and host security settings remain managed by the workspace image or template owner.

Type of Change

  • Bug fix
  • Documentation

Module Information

Path: registry/coder-labs/modules/codex
Version: 5.5.0 → 5.5.1
Breaking change: No

Validation

  • Bun: 43 tests passed.
  • Terraform: 20 tests passed.

Related Issues

Closes #1251

@Edd88-pixel
Edd88-pixel requested a review from 35C4n0r November 16, 2026 14:49
@Edd88-pixel
Edd88-pixel marked this pull request as ready for review November 16, 2026 14:52
@Edd88-pixel Edd88-pixel self-assigned this Nov 16, 2026

@35C4n0r 35C4n0r 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.

@Edd88-pixel even with bubblewrap installed I get this error

codex sandbox echo "hello World"
bwrap: No permissions to create a new namespace, likely because the kernel does not allow non-privileged user namespaces. See <https://deb.li/bubblewrap> or <file:///usr/share/doc/bubblewrap/README.Debian.gz>.

This looks like a docker/container runtime related privilage issue, since I don't get this error on my local. If you feel this is out f the scope of this PR, please create an issue and resolve it in a new PR.

@Edd88-pixel
Edd88-pixel requested a review from 35C4n0r November 17, 2026 18:49
@Edd88-pixel
Edd88-pixel merged commit b405252 into coder:main Nov 19, 2026
8 checks passed
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.

codex: document and check Linux bubblewrap/AppArmor prerequisites

2 participants