Skip to content

codex-shell: bump CLI versions + disable autoupdate + skip-permissions#24

Merged
nprodromou merged 1 commit into
mainfrom
fix/cli-versions-and-launch-flags
May 11, 2026
Merged

codex-shell: bump CLI versions + disable autoupdate + skip-permissions#24
nprodromou merged 1 commit into
mainfrom
fix/cli-versions-and-launch-flags

Conversation

@nprodromou

Copy link
Copy Markdown
Owner

Summary

Three coupled changes that together get the agent containers booting into a current-version, no-banner, no-per-tool-prompt state without manual intervention.

  1. Bump pinned CLI versions to current npm latest:
    • CLAUDE_CODE_VERSION: 2.1.133 → 2.1.139
    • OPENAI_CODEX_VERSION: 0.129.0 → 0.130.0
  2. ENV DISABLE_AUTOUPDATER=true — suppresses the noisy TUI banner. Runtime auto-update can't succeed anyway (npm rename within /usr/bin/ requires root); image-time pinning + Renovate PRs are the actual update path.
  3. Add --dangerously-skip-permissions to the claude launch in bin/entrypoint.sh. Pod is the sandbox; per-tool prompts inside it break unattended task execution.

Test plan

  • Dockerfile + entrypoint diffs scoped + minimal
  • CI build green
  • Merge → main image build tags new sha
  • apk8s tag bump PR follows
  • Pods restart, in-TUI banner is clean (no "Auto-update failed"), claude --version is 2.1.139, no per-tool approval prompts during normal session

🤖 Generated with Claude Code

Three coupled changes that together make the agent containers boot
into a usable, current-version state without manual intervention.

1. Bump pinned CLI versions to current npm latest:
     CLAUDE_CODE_VERSION: 2.1.133 → 2.1.139
     OPENAI_CODEX_VERSION: 0.129.0 → 0.130.0
   This is what runtime auto-update was trying (and failing) to do.
   Letting Renovate own ongoing bumps via PRs matches the rest of
   the codex-shell pinning model.

2. ENV DISABLE_AUTOUPDATER=true. Runtime auto-update can't succeed
   inside the container anyway — npm rename within /usr/bin/ requires
   root, and the agent user is uid 10001. The chown patch (PR #23)
   covered /usr/lib/node_modules/@Anthropic-AI and the symlink itself
   but couldn't cover write-perms on the /usr/bin/ parent. With the
   ARG-pinned versions, suppressing the updater removes a noisy TUI
   banner without losing any actual version-update capability.

3. Add --dangerously-skip-permissions to the claude launch command.
   Without this, every restart drops the agent back into per-tool
   approval mode and unattended task execution stalls waiting for a
   human. The pod IS the sandbox boundary; the per-tool approval
   gate isn't load-bearing inside it.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@nprodromou nprodromou merged commit 144f630 into main May 11, 2026
2 checks passed
@nprodromou nprodromou deleted the fix/cli-versions-and-launch-flags branch May 11, 2026 21:59
@codex-prodromou

Copy link
Copy Markdown
Collaborator

Retroactive Codex review: blessed after merge.

The diff is limited to pinned CLI version bumps, DISABLE_AUTOUPDATER=true, and restoring Claude startup with --dangerously-skip-permissions. That matches the pod-as-sandbox automation model already used for Codex in this same entrypoint. build (codex) and build (claude) were green. No follow-up from this pass.

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.

3 participants