Skip to content

chore(deps): move docker/base to Node 26 (Debian trixie) - #384

Merged
artempartos merged 1 commit into
developfrom
chore/node-26-base
Oct 1, 2026
Merged

artempartos merged 1 commit into
developfrom
chore/node-26-base

Conversation

@artempartos

@artempartos artempartos commented Oct 1, 2026 •

Copy link
Copy Markdown
Contributor

This PR moves the agent base image docker/base from node:24-slim to node:26-slim, which every agent image builds on. It supersedes #374. That PR changed only the two FROM lines, and the image doesn't build with only that change.

Timing. Node 26 becomes Active LTS on 2026-10-28, and Node 24 drops to maintenance on 2026-10-20 (Node release schedule). This lands as its own PR rather than inside the weekly dependency batch (#382). Merge whenever suits; holding it until the 28th is also reasonable.

It's an OS jump too: Debian bookworm → trixie

node:24-slim is bookworm and node:26-slim is trixie. Three changes follow from that:

Change Why
mitmproxy 10.2.4 → 11.0.2 Trixie ships Python 3.13. mitmproxy 10.2.4 pins zstandard/msgpack releases with no 3.13 wheels, and building them from source fails in the image (Python.h: No such file). That is why #374 can't build. 11.0 is the first mitmproxy release that supports 3.13, and 11.0.2 installs from wheels alone on arm64 and amd64. Our calls (CertStore.from_store and the flow/stream hooks in mitm_logger.py) still work, and proxied traffic is still logged (smoke test below).
libevent-core-2.1-7 → libevent-core-2.1-7t64 The 64-bit time_t transition renamed the package. The old name is now just an alias the t64 package provides, so the real name is used.
Base is about 250 MB larger (1.81 → 2.06 GB on arm64) On trixie, libgbm1 (which Chrome links) depends on mesa-libgallium. That keeps libllvm19 and libz3-4 (about 180 MiB) installed after libgl1-mesa-dri is purged. Removing them would mean forcing dpkg, which breaks apt for agents, so they stay. Every agent image pulls this extra size on a cold node.

Comment-only fixes: the tmux note (trixie ships tmux 3.5a), the Node version in the base's component list, the browser-trim note, and connector_manifest.rb's runtime list (which still said node:22-slim).

Verification

PR CI builds no docker/* image (images.yml runs only on main-images, tags and the weekly canary), so this was built and smoke-tested locally.

  • Base (arm64): builds. Its own browser probe passes as root and as the non-root user. The tmux 3.7c build and the static ttyd binary run.
  • All seven agents build against the new base: antigravity-cli, claude-code, codex, cursor-cli, gemini-cli, grok, kiro-cli.
  • Smoke test, each agent:
    • node -v prints v26.10.0.
    • Ports 7681, 7682 and 4040 return 200.
    • Startup shows ✅ for MITM, the HTTP/2 logger, watcher, OpenVSCode, tmux and ttyd, with no ⚠️ or errors.
    • The CLI runs in the tmux pane: antigravity 1.1.27, claude-code 2.1.281, codex 0.156.1, cursor 2026.09.28, gemini 0.57.0, grok 1.0.41, kiro 2.26.1.
    • An HTTP/2 request made under NODE_OPTIONS=--require /opt/mitm/http2-logger.js appears in /var/log/mitm/http.log.
  • Which CLIs actually run on the image's Node: only codex and gemini. claude, agy, kiro and grok are native binaries, and cursor ships its own Node 24. codex reached its sign-in screen and gemini its folder-trust prompt, and both had their real traffic logged.
  • Watcher tests: 9/9 pass under Node 26.
  • Node 25 and 26 breaking changes (both are crossed going from 24 to 26): I searched our JS for every removed or newly deprecated API (http2-logger.js, aixle-redact.js, watcher/, auth-check/, probe-browser.js). Nothing matches. gemini's native node-pty loads.
  • amd64 (what prod EKS nodes run): checked with docker buildx --platform linux/amd64.
    • The base builds in 5 minutes, and its browser probe passes as root and as the non-root user.
    • The codex image builds on it. In a container: x86_64, node -v v26.10.0, codex-cli 0.156.1, ports 7681 and 7682 return 200, and all six startup checks show ✅.

The same on develop, not caused by this PR:

  • ttyd 1.7.7 prints unrecognized option: R. Port 7682 still comes up read-only.
  • gemini's keytar can't load without libsecret.
  • npm 11.19 warns that grok's and gemini's install scripts aren't covered by allowScripts.

Not verified: an authenticated CLI session against a real provider.

🤖 Generated with Claude Code

Node 26 becomes Active LTS on 2026-10-28 and Node 24 drops to
maintenance on 2026-10-20, so the agent images move now, in a PR of
their own, rather than inside a routine dependency batch.

node:26-slim is built on Debian trixie, not bookworm, so the bump is an
OS jump as well:

- trixie ships Python 3.13. mitmproxy 10.2.4 pins zstandard and msgpack
  releases with no 3.13 wheels, whose source builds need cffi 1.16 and
  Python headers the image does not carry, so the build failed. 11.0 is
  the first mitmproxy release that supports 3.13; 11.0.2 installs from
  wheels alone (plus pure-Python pyperclip) on arm64 and amd64.
- After the 64-bit time_t transition libevent-core-2.1-7 survives only
  as a name libevent-core-2.1-7t64 provides, so the real package is
  named instead.
- trixie's libgbm1, which Chrome links, now depends on mesa-libgallium,
  so purging libgl1-mesa-dri no longer removes LLVM. libllvm19 and
  libz3-4 stay installed and the base grows by about 250 MB (1.81 GB to
  2.06 GB on arm64).

Supersedes #374, which changed only the two FROM lines and fails to
build at the mitmproxy install.

Signed-off-by: Artem Petrov <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
@artempartos

Copy link
Copy Markdown
Contributor Author

I checked this branch with real agent sessions launched by the app, not just docker run.

Setup. I ran an isolated stack from this branch (its own network, ports and database; see docs/project/worktree-stack.md) with the agent images built from it as aixle/*:n26 and AGENT_IMAGE_TAG=n26. Signed in as the seeded company admin, I clicked Profile → Agent Runtimes → Authenticate. That starts an auth_setup session through the normal Temporal admission path (AdmittedPhaseActivity → mark_session_ready) and opens the terminal in the browser through Traefik → ttyd → tmux.

OpenAI Codex (aixle/codex:n26). The CLI uses the image's Node.

  • Inside the session container: node -v v26.10.0, Debian 13 (trixie), mitmproxy 11.0.2.
  • codex login --device-auth printed Welcome to Codex [v0.156.1] and a real one-time code from auth.openai.com.
  • Codex's Node launcher (node /usr/local/bin/codex) was running and polling.
  • The proxy logged its auth.openai.com/api/accounts/deviceauth/usercode and /token requests.

Claude Code (aixle/claude-code:n26).

  • Welcome to Claude Code v2.1.281 with the theme picker.
  • Enter, typed in the browser, moved it to "Select login method", so input from the browser to the CLI works.

Closing each dialog stopped and removed its session container. The stack, its volumes and the :n26 images are torn down.

Not done: a logged-in session that runs a prompt (that needs real provider credentials).

🤖 Generated with Claude Code

@artempartos
artempartos merged commit 4a51f05 into develop Oct 1, 2026
7 checks passed
aixle-com Bot pushed a commit that referenced this pull request Dec 2, 2026
ActionCable parses frames from unauthenticated clients with
websocket-driver 0.8.2, which is open to remote DoS and message
corruption (CVE-2026-140016, CVE-2026-140015). 0.9.1 needs
websocket-extensions >= 0.2.0, so that moves to 0.3.0 too. Only the
lockfile changes; rails stays at 8.1.4.1.

Refs #384

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Signed-off-by: Evgeny Agafonov <[email protected]>
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.

1 participant