Repository navigation
Comparing changes
Open a pull request
base repository: sprisa/opencode-server
base: pr/opencode-release/v
head repository: sprisa/opencode-server
compare: main
- 18 commits
- 26 files changed
- 3 contributors
Commits on Oct 29, 2026
-
feat: opencode release v1.19.5 (#80)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Configuration menu - View commit details
-
Copy full SHA for 0720c1e - Browse repository at this point
Copy the full SHA 0720c1eView commit details
Commits on Oct 30, 2026
-
feat: track opencode v2 as default (v2.2.4), keep v1 supported via ve…
…rsion-v1.txt (#81) - version.txt pins v2 (2.2.4, published with :latest and :v2); version-v1.txt pins v1 (1.19.5, published with mutable :v1) - release-checker: per-major matrix, one bump PR per track (upstream releases/latest is still pinned to v1, so filter the releases list by tag pattern) - Dockerfile: use opencode.ai/v2/install for v2 versions (the v1 installer rejects v2) - bump-version.sh: optional version-file arg - release-notes.sh: prev tag lookup stays within the same major line - Taskfile: task update syncs both files; task publish publishes both tracks (:latest+:v2 / :v1; skips existing GitHub Releases); docker:build:v1/docker:push:v1 for the v1 track
Configuration menu - View commit details
-
Copy full SHA for 2f6cd10 - Browse repository at this point
Copy the full SHA 2f6cd10View commit details
Commits on Oct 31, 2026
-
Configuration menu - View commit details
-
Copy full SHA for fcc6ccc - Browse repository at this point
Copy the full SHA fcc6cccView commit details -
feat: opencode release v2.2.5 (#82)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Configuration menu - View commit details
-
Copy full SHA for 8d11bb3 - Browse repository at this point
Copy the full SHA 8d11bb3View commit details
Commits on Nov 7, 2026
-
feat: opencode release v2.2.6 (#84)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Configuration menu - View commit details
-
Copy full SHA for a79d7ca - Browse repository at this point
Copy the full SHA a79d7caView commit details
Commits on Nov 11, 2026
-
Configuration menu - View commit details
-
Copy full SHA for 2a8b630 - Browse repository at this point
Copy the full SHA 2a8b630View commit details
Commits on Nov 13, 2026
-
feat: opencode release v2.3.0 (#86)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Configuration menu - View commit details
-
Copy full SHA for 7fddf71 - Browse repository at this point
Copy the full SHA 7fddf71View commit details -
feat: lock mise tools at build time; add Codex, Claude Code, clonetre…
…e and cloudflared; rewrite README (#87) ## Summary - **New lazy-installed tools:** Codex (`codex`), Claude Code (`claude`), clonetree (`clonetree`) and cloudflared (`cloudflared`). - **Tools moved to mise core:** gh, jq, ripgrep, fd, micro and Ruby. They used the `github` or `zerobrew` backends before. - **Build-time lockfile:** each image locks its mise tools when it's built, so first runs skip the version lookup. - **Fixed Ruby:** the old zerobrew Ruby couldn't load its own standard library. - **README rewrite** for newcomers, with Kubernetes and Claude/ChatGPT sign-in sections. - **Tests moved to `tests/`,** plus a new lockfile regression test. ## Tools The new tools install on first use, like the rest: | Tool | Command | Backend | |---|---|---| | Codex | `codex` | mise core | | Claude Code | `claude` | mise core | | cloudflared | `cloudflared` | mise core | | clonetree | `clonetree` | github (not in the mise registry) | These tools moved from `github` or `zerobrew` to mise core, the same tools under their mise registry names: - gh, jq, ripgrep, fd and micro, from `github` - Ruby, from `zerobrew` wget, nano and Sapling stay where they were, because the mise registry doesn't have them. ### Ruby was broken under zerobrew `ruby --version` worked, but Ruby looked for its standard library under the Homebrew Cellar, which doesn't exist in the image. So every `require` failed, including `json` and `rbconfig`, and so did every `gem` command. Ruby now comes from mise core as a prebuilt build, with `ruby.compile = false` because the image has no compiler. Prebuilt gems such as nokogiri install normally. Gems that compile native code need `sudo apt-get install build-essential` first. ## Build-time lockfile Adding Codex exposed a problem. Codex's release list is about 10 MB: it has 87 prereleases among its last 100 releases and about 236 files per release. Downloading it takes around 11 seconds, and mise gives up after 3. Because mise resolves every `latest` entry in the config on a tool's first run, the Codex lookup slowed every tool: | First run in a fresh container | Before | After | |---|---|---| | `jq` | 8.4s | 0.6s | | `gh` (no `GITHUB_TOKEN`) | 7.9s | 0.8s | | `codex` | hung past 90s | 3.7s | The Dockerfile now runs `mise lock -g` at build time and writes `/etc/mise/mise.lock`. That records the newest release of each `latest` tool, with its download URL and checksum. At runtime, mise downloads straight from the locked URL, with no version lookup and no GitHub API calls. - **`mise-config.toml` still says `latest`.** Each new image locks the newest releases. An older image keeps the versions from its own build and never goes back to looking them up. - **The lock step references `OPENCODE_VERSION`,** so each opencode release builds a new lock instead of reusing a cached layer. To refresh tool versions without changing the opencode version, build with `--no-cache`. - **The `opencode` user owns `/etc/mise`,** because mise writes a temp file next to the lockfile whenever it checks it. - **Tools the image doesn't ship** (`mise use go`, a project's own `mise.toml`) resolve `latest` at runtime as before, and don't create lockfiles. - **For tools the image does ship,** a bare `mise use jq` keeps the image's locked version. `mise use jq@latest` and `mise upgrade jq` get the newest release. The README and the agent instruction file explain this. ## README - **Rewritten to read top to bottom:** what the image is, a quick start, tools, configuration, deploying, versions, and development. - **Quick start:** keeps the original `-v $(pwd):/home/opencode` command. It adds a two-mount option for working on an existing project without writing opencode's files into it. - **New Kubernetes section,** noting that we run this image in production for Codeplace. It covers storage, `fsGroup: 1000`, passing the password from a Secret, and TCP probes. - **New "Use your Claude or ChatGPT subscription" section:** - **Claude:** run `claude auth login` in opencode's web terminal, then connect the Claude agent in the UI. - **ChatGPT:** use opencode's device code sign-in, after turning on **Enable device code sign-in for Codex, Excel, PowerPoint, and Word** in ChatGPT's App security settings. - **Fixed stale or incorrect docs:** - Removed `n <version>`, which isn't in the image. - v1 images only read `OPENCODE_SERVER_PASSWORD`. - v1 log levels are uppercase. - A generated password changes on every restart. ## Tests - **Moved all test scripts to `tests/`** and updated `pr-test.yml` to match. - **New `tests/test-mise-lock-e2e.sh`,** which runs without `GITHUB_TOKEN` on purpose. It checks that: - every mise core and github tool is locked to an exact version; - `jq`, `codex`, `gh` and `clonetree` install their locked versions on first run with no version lookup, and the lockfile doesn't change; - a bare `mise use shellcheck` resolves the newest release and writes no lockfile; - on a simulated old image, the locked version is used with no lookup, a bare `mise use jq` keeps it, and `mise use jq@latest` and `mise upgrade jq` get the newest release; - a bare `mise upgrade` upgrades the image's tools and rewrites the lockfile. - **Ruby regression check in `test-toolchain-e2e.sh`:** it checks that Ruby's standard library folders exist, loads `json`, `openssl` and `psych`, installs and loads a gem, and runs `bundle --version`. It fails on the old zerobrew Ruby. - **New CI check** that the new tools are set up to install on first use. ## Testing Run locally on arm64 against a fresh build: - `tests/test-release-automation.py` and `tests/test-bump-version.sh` pass. - The server, toolchain, home-tools and mise-lock e2e tests pass. - The lockfile test fails on an image built without the lockfile. Run by hand on that image, its lookup check flagged 87 lookup requests on `jq`'s first run. - Each tool installed and ran on first use. - A cloudflared quick tunnel served a page through its public `trycloudflare.com` URL. - `claude auth login` prints a sign-in link and accepts a pasted code inside the container. CI covers amd64.
Configuration menu - View commit details
-
Copy full SHA for 0f66006 - Browse repository at this point
Copy the full SHA 0f66006View commit details -
perf: shrink the image by 127 MB; add Homebrew e2e tests; fix PR size…
… report (#88) ## Summary The image drops from 774 MB to 647 MB unpacked (−16%) and from 342 MB to 268 MB compressed (−22%), measured locally on arm64. The amd64 image is about 8 MB larger. Homebrew keeps working, and a new end-to-end test covers it. ## Size reductions | Change | Saved | |---|---| | Don't ship Homebrew's portable Ruby | 45 MB | | Shallow-clone Homebrew | 56 MB | | Strip the mise binary | 18 MB | | Remove Bun's native library left in `/tmp` | 7 MB | | Limit the final `chown` | avoids copying zerobrew's files into a new layer | - **Portable Ruby:** the build's `brew cleanup` downloads it. Now brew downloads it on its first Ruby-backed command (about 4 seconds), like a fresh Homebrew install. - **Shallow clone:** `--depth 1` of the pinned release instead of a `--filter=blob:none` partial clone. `.git` goes from 64 MB to 7.9 MB. Unlike deleting `.git`, it's still a real repository. The clone step also fetches `main`'s tip (about 2 MB), so the first `brew update` doesn't print `error: Not a valid ref: refs/remotes/origin/main`. - **mise:** the release binary includes debug symbols; stripping takes it from 147 MB to 129 MB. - **Bun's library:** the build's `opencode --version` check leaves Bun's native library (7.4 MB) in `/tmp`, plus opencode logs under `/root`. Bun unpacks the library again at runtime. - **`chown`:** the last step only changes ownership of the home files it creates. Running `chown -R` on the whole home folder copied zerobrew's files into a new layer. Considered and left alone: - **opencode binary (246 MB):** a compiled Bun binary, which breaks if stripped. - **Perl (52 MB):** a hard dependency of `git`. - **Ubuntu base:** only about 3 MB is hidden by our `rm -rf`, so squashing it isn't worth it. - **mise's musl build:** the same size as the glibc build. ## Homebrew `brew update` and `brew upgrade` give the same results on the shallow clone as on the published image's full clone: Homebrew goes from 7.0.11 to 7.0.13, and an outdated formula upgrades. Exit codes alone can't catch a broken Homebrew. With `.git` deleted, every command still exits 0, but `brew --version` reports `Homebrew >=4.3.0 (shallow or no git repository)`. Then `brew update` downloads every branch and lands on unreleased `main` (for example `7.0.13-128-gfc51ba6`). New `tests/test-homebrew-e2e.sh` runs in about 30 seconds and checks: - **Setup:** - `brew` is on `PATH` in login and non-login shells, and the `opencode` user can write to it. - API mode is on, with no homebrew-core tap. - **Repository:** - `.git` exists and is a shallow clone, with `origin/main` present. - HEAD is the pinned release tag and matches `brew --version`. - Portable Ruby isn't shipped. - **First use:** the first `brew config` downloads Homebrew's portable Ruby and runs on it. - **`brew doctor`:** only the two warnings the image already had (no compiler, and the files the build deletes from the checkout). - **Install:** `jq` with its `oniguruma` dependency, linked and running, with no missing libraries. - **Upgrade:** `brew outdated` and `brew upgrade` on a relabeled `hello`. - **Removal:** `brew uninstall` plus `brew autoremove` remove both `jq` and `oniguruma`. - **Taps:** tap, trust and `brew info` on a third-party tap. - **Cleanup:** `brew cleanup`. - **Update:** `brew update` prints no error lines and ends on a clean release version. The README now documents a limitation the published images already have. Homebrew counts any formula without a bottle as a build from source, and refuses those unless `gcc` or `clang` is on `PATH`, even when the formula only copies a prebuilt binary. Most third-party taps hit this. - **Binary-only formulas:** `sudo apt-get install -y gcc` (about 170 MB) is enough. - **Formulas that really compile:** these need `build-essential` (about 260 MB). - **`brew install gcc`:** doesn't help, because it only installs versioned names like `gcc-16`. ## PR size report GitHub's runners use containerd image storage, which made the size comment inconsistent: - **The size shown** came from `docker images`, which reports unpacked plus compressed bytes (1.17 GB for about 782 + 353 MB). - **The difference** was computed from `docker image inspect`, which reports compressed bytes only. New `scripts/image-size.sh` measures both sizes directly: - **Unpacked:** the sum of the layer sizes. - **Compressed:** the gzipped `docker save` output. `pr-build.yml` now uses it for both images and reports both numbers for the baseline and the PR, with a difference for each. The baseline comparison also runs when `mise-config.toml` or `mise-instructions.md` change, since both are copied into the image. ## Testing On arm64, against a fresh build: - All six suites pass: Homebrew, server, toolchain, home-tools, mise lock and release automation. - The Homebrew test fails on an image with Homebrew's `.git` deleted. - `brew update` and `brew upgrade` were compared side by side with the published `2.3.0` image. - The size report step was dry-run in Ubuntu with a smaller image, a bigger one, and no baseline.
Configuration menu - View commit details
-
Copy full SHA for a6801bf - Browse repository at this point
Copy the full SHA a6801bfView commit details -
perf: reuse unchanged image layers between releases (#89)
Publishing ran buildx with no build cache on a fresh runner, so every step re-ran and got new layer digests. Pulling 2.3.0 over 2.2.7 downloaded 311 MB of the 353 MB amd64 image, although only the opencode binary changed. - Publish with a build cache at ghcr.io/sprisa/opencode-buildcache, one tag per line (v2, v1), kept off Docker Hub so users only see release tags. Each push reads both and writes its own, ignoring cache export errors. The Publish workflow logs in to ghcr.io with GITHUB_TOKEN (packages: write). - Copy mise-config.toml and mise-instructions.md after the opencode binary, so editing them doesn't rebuild it. - Declare IMAGE_CREATED just before the labels at the end. Declared earlier, the build time was in every later RUN's cache key. - Add APT_REFRESH, set to the current month by the Taskfile, so the cached apt layer still picks up Ubuntu updates monthly. - Stop stripping the mise binary. QEMU can't run a stripped mise (ld.so assertion), which broke emulated multi-arch builds, and it only saved 3 MB compressed. Simulated two publishes on fresh builders sharing only a local registry cache: pulling 2.3.0 over 2.2.7 downloads 124 MB (amd64) / 123 MB (arm64), just the opencode binary plus a few KB. A new APT_REFRESH month re-runs apt.
Configuration menu - View commit details
-
Copy full SHA for 5d9ed01 - Browse repository at this point
Copy the full SHA 5d9ed01View commit details
Commits on Nov 20, 2026
-
Configuration menu - View commit details
-
Copy full SHA for 374405d - Browse repository at this point
Copy the full SHA 374405dView commit details -
feat: opencode release v1.19.6 (#90)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Configuration menu - View commit details
-
Copy full SHA for aa89813 - Browse repository at this point
Copy the full SHA aa89813View commit details -
feat: opencode release v2.3.1 (#93)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Configuration menu - View commit details
-
Copy full SHA for db90ff5 - Browse repository at this point
Copy the full SHA db90ff5View commit details -
feat: opencode release v2.3.2 (#94)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Configuration menu - View commit details
-
Copy full SHA for c017bab - Browse repository at this point
Copy the full SHA c017babView commit details
Commits on Nov 24, 2026
-
Configuration menu - View commit details
-
Copy full SHA for 9ac97e1 - Browse repository at this point
Copy the full SHA 9ac97e1View commit details -
Configuration menu - View commit details
-
Copy full SHA for c4afd80 - Browse repository at this point
Copy the full SHA c4afd80View commit details
Commits on Nov 26, 2026
-
Configuration menu - View commit details
-
Copy full SHA for e4dabe3 - Browse repository at this point
Copy the full SHA e4dabe3View commit details
Commits on Nov 29, 2026
-
feat: opencode release v2.4.3 (#98)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Configuration menu - View commit details
-
Copy full SHA for 2485a56 - Browse repository at this point
Copy the full SHA 2485a56View commit details
This comparison is taking too long to generate.
Unfortunately it looks like we can’t render this comparison for you right now. It might be too big, or there might be something weird with your repository.
You can try running this command locally to see the comparison on your machine:
git diff pr/opencode-release/v...main