Skip to content

Upgrade devcontainer agents feature to v3#64

Merged
arv merged 1 commit into
mainfrom
arv/upgrade-agents-v3
Jun 25, 2026
Merged

Upgrade devcontainer agents feature to v3#64
arv merged 1 commit into
mainfrom
arv/upgrade-agents-v3

Conversation

@arv

@arv arv commented Jun 25, 2026

Copy link
Copy Markdown
Contributor

Summary

Upgrades the dev container to v3 of rocicorp/devcontainer-features/agents. v3.0.0 is a breaking release: it drops the bundled GitHub CLI (gh) and 1Password CLI (op), so the container no longer injects a GITHUB_TOKEN (or 1Password credentials) at shell start. See the migration note.

There is one dev container config in this repo (.devcontainer/devcontainer.json); no nested or src/* configs exist.

Changes

  • Pin bump.devcontainer/devcontainer.json: ghcr.io/rocicorp/devcontainer-features/agents:2:3. pnpm:1 is left as-is; no codexVersion option was set, so nothing else changed there.
  • Removed dead wiring — deleted the remoteEnv.GITHUB_TOKEN (${localEnv:GITHUB_TOKEN}) passthrough and the gh/1Password comments. These existed solely to authenticate the old bundled gh, which v3 no longer ships.
  • Lockfile refresh.devcontainer/devcontainer-lock.json regenerated: agents now resolves to the v3 digest (sha256:cb7bb04455…) and its dependsOn no longer lists github-cli, so the standalone github-cli:1 lock entry is removed. claude-code:1 and pnpm:1 are unchanged.
  • Dependabot — added .github/dependabot.yml with a devcontainers ecosystem entry (weekly, grouped). The configs live under the root .devcontainer/, so directory: "/" is correct.

Risk: risk-free

I grepped the repo for GITHUB_TOKEN, gh, op, OP_SERVICE_ACCOUNT, "GitHub CLI", and "1Password" — every hit was inside the devcontainer config/lock itself. Nothing in the repo (no lifecycle command, script, or in-container CI) actually invokes gh or op inside the container, so the token passthrough was already dead weight. github-cli was not re-added, because nothing needs it. The postCreateCommand is just pnpm install, and CI (.github/workflows/deploy.yml) runs on GitHub-hosted runners (pnpm + Vercel), unaffected by this change.

Note on the lockfile

@devcontainers/cli upgrade couldn't complete in the sandbox (egress policy blocks the ghcr.io blob host), so the lock was regenerated by resolving the agents:3 manifest digest directly from the registry. The recorded digest is the registry's authoritative Docker-Content-Digest, verified by hashing the manifest bytes — equivalent to what the CLI would write. A clean local devcontainer upgrade will be a no-op.

agents v3.0.0 is a breaking release that drops the bundled GitHub CLI
(gh) and 1Password CLI (op), so the container no longer injects a GitHub
token (or 1Password credentials) at shell start.

- Bump the agents pin :2 -> :3 in .devcontainer/devcontainer.json
- Remove the now-dead GITHUB_TOKEN passthrough in remoteEnv plus the
  gh/1Password comments. Verified nothing in the repo uses gh or op
  inside the container (no lifecycle command, script, or in-container
  CI), so this is behavior-preserving and github-cli was not re-added.
- Regenerate .devcontainer/devcontainer-lock.json: agents resolves to
  the v3 digest and no longer depends on github-cli, so the standalone
  github-cli lock entry is dropped. claude-code and pnpm are unchanged.
- Add .github/dependabot.yml with a devcontainers entry so feature
  updates are tracked weekly going forward.
@vercel

vercel Bot commented Jun 25, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
hello-zero Ready Ready Preview, Comment Jun 25, 2026 9:43am

Request Review

@github-actions github-actions Bot requested a review from grgbkr June 25, 2026 09:43
@arv arv added this pull request to the merge queue Jun 25, 2026
Merged via the queue into main with commit 048aa78 Jun 25, 2026
5 checks passed
@arv arv deleted the arv/upgrade-agents-v3 branch June 25, 2026 09:47
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