Repository navigation
Releases
Push261128 — opencode v2 2.2.6→2.3.2 + v1 1.19.5-3
Push261128 — opencode v2 2.2.6 → 2.3.2 + v1 1.19.5-3
v2 (native, bionic)
- 2.2.6 / 2.2.7 / 2.3.0 / 2.3.1 / 2.3.2
- web UI archive 全部正常(strings /_assets/ = 7)
- 2.2.7+ 修复 ws 命名再导出导致启动即崩溃的问题(bun 内置 ws 缺 extension/subprotocol)
- 2.3.0 为 minor:子代理默认后台运行、转录默认折叠(可在设置里调回)
v1 (native)
- 1.19.5-3:bun 1.4.0 基 + bionic librust_pty(修复 POST /api/pty 段错误)
说明
- deb 全部使用 xz 压缩(Termux dpkg 不认 zstd)
- apt 用户:本 release 附带 Packages.gz,
apt update && apt install opencode可直接装 - Android 15/16 的 TUI 崩溃(issue #43/#46)在 2.2.6+ 已不再触发
校验
SHA256SUMS.txt 与本 release 资产同名对应。
Push261105 — v2 web UI archive repair (2.0.25→2.0.31) + v1 1.19.5 native restored
Push261105 — v2 web UI archive repair (2.0.25→2.0.31) + v1 1.19.5 native restored
English · 中文版 · 繁體中文 · 日本語 · Español
Overview
8 native versions, 16 packages (deb + pacman per version):
- v2 native
2.0.25–2.0.31(7 versions) — web UI/_assets/restored.
Upstream 2.0.25 rewrote theskipBuildguard inapp-assets.ts; the old
exact-string anchor silently stopped matching, the patch was skipped, and the
runtime shipped with zero embedded/_assets/entries —serveandpair
returned 404 on every/_assets/*request (white screen after login). The
fix: regex anchor instead of exact match, hard failure when the anchor is
missing, and a post-buildstringsassertion. - v1 native
1.19.5— restored after being withdrawn in the previous
batch. Root cause: bun ≥1.4.1 writes module graphs with UTF-16 bodies
(encoding=2) and 38 Text loader modules; the bun 1.4.0 base understands
neither (Invalid character '\0'/Unexpected identifier). Fixed by the
graph post-processortools/transplant/fix_graph_for_bun140.py(UTF-16→UTF-8,
Text→export default "...", namespace shim at consumption points, relocated
modules parked in a dead zone) — no bun recompile, no dependency on upstream
bun#47906. Packages also bundle the PTY splice
(lib/opencode1/pty/{librust_pty_arm64_musl_patched.so, shim.so}), so
POST /api/ptyworks.
Verification
| Check | Result |
|---|---|
strings -a <runtime> | grep -c '/_assets/' on v2 2.0.25–2.0.31 |
7 per version |
serve serves /_assets/* with 200 |
pass |
v1 1.19.5 TUI renders on screen |
pass |
v1 1.19.5 POST /api/pty returns a running process |
pass |
Self-check for installed v2 native packages:
strings -a $PREFIX/bin/opencode | grep -c '/_assets/'
# must be > 0Known Issues
- v1
1.19.5first paint on older devices may wait ~75 s during bootstrap;
a resize triggers a redraw and everything is normal afterwards. - v1
1.19.5and1.19.4are interchangeable for rollback. - Upstream bun#47906 remains open; this build does not depend on it.
- Within one generation, native / wrapper / compressed are mutually exclusive;
opencode1*(v1) andopencode*(v2) can coexist. All v1 packages are
versioned below2.0.0.
Install
curl -fsSL https://hope2333.github.io/repo/install.sh | sh -s -- --install opencode
pacman -S opencode # v2 mainline
pacman -S opencode1 # v1 mainline (coexists with v2)Links
Push261104 — Terminal fixes + wrapper backfill (v2 2.0.0→2.2.5, v1 1.18.30→1.19.5)
Push261104 — Terminal fixes + wrapper backfill (v2 2.0.0→2.2.5, v1 1.18.30→1.19.5)
English · 中文版 · 繁體中文 · 日本語 · Español
Overview
Two functional fixes plus a full backfill of both wrapper families. Both fixes
are in the "everything looks green but the feature never works" class: the TUI
and the HTTP server are healthy, and only the code path that actually opens a
terminal or reads a keystroke is broken.
v2 native 2.2.5-2 — PTY creation. POST /api/pty always returned
500 ERR_DLOPEN_FAILED. The TUI, serve and the Web UI were fine; only opening
a terminal (a TUI pane, a remote client attaching to PTY, /goal-style
operations) failed. Root cause: the embedded librust_pty was a glibc build and
bionic has no libpthread.so.0. The musl + symbol-shim route was tried and
rejected — it dlopens, but Bun then takes SIGSEGV@0x0 inside POST /api/pty,
because musl's runtime expectations far exceed what a handful of shimmed symbols
can cover. The fix compiles the bun-pty Rust crate natively for
aarch64-linux-android (540 KB; needs the termios 0.2.2 android cfg and a
static libunwind.a).
v1 native 1.19.4-2 — TUI is display-only. The TUI printed
^[]10;rgb:…, ^[[?1016;0$y, ^[P0+r4d73^[\ on entry and echoed mouse
reports as 0;108;22M. Not a parser problem: the launcher ran the TUI in a
background process group (so it could capture crash stderr for SIGSEGV), which
means the TUI never held the terminal foreground and never left canonical/echo
mode (stty reads isig icanon echo). Keys needed Enter to arrive, and the
terminal's replies to startup probes were echoed back as junk. Fix: run the
launcher in the foreground (crash logging and exit codes unchanged), plus an
equal-length binary guard that generalises opentui's CPR guard into "drop
everything after a second ESC", so Termux cannot concatenate probe replies into
the input stream.
Wrapper backfill. v2 opencode-wrapper previously covered only
2.0.23–2.0.27 and v1 opencode1-wrapper only 1.18.32–1.19.4. Both are now
continuous: v2 2.0.0–2.2.5, v1 1.18.30–1.19.5, each version as deb +
pacman. Two real pipeline defects were fixed along the way: family-v2-wrapper
never fetched the glibc tarball (it only expected it to exist, so 2.1.x/2.2.x
all failed with RC=2), and wrapper-native hardcoded package/bin/opencode
while 2.0.19–2.0.22 ship a different in-archive layout. The mis-named
opencode1-wrapper_2.1.* / 2.2.* packages (v2 versions packed by the v1
script) were removed.
120 assets: v2 native opencode 2.2.5 (PKGREL 2) and v1 native opencode1
1.19.4 (PKGREL 2), deb + pacman .pkg.tar.xz (4); v2 wrapper
opencode-wrapper 2.0.0–2.2.5, 43 versions deb + pacman (86); v1 wrapper
opencode1-wrapper 1.18.30–1.19.5, 12 versions deb + pacman (24); SHA256SUMS.txt
(native) and SHA256SUMS-wrappers.txt (110 wrapper packages). The four repo
artifacts on this tag (hope2333.db, hope2333.db.tar.gz, 2 mirrorlist files)
are published by the site CI.
| Family | Generation | Package | Format | Notes |
|---|---|---|---|---|
| native (mainline) | v2 | opencode |
deb + pacman .pkg.tar.xz |
2.2.5 PKGREL 2 — bionic-native librust_pty; PTY creation works |
| native (mainline) | v1 | opencode1 |
deb + pacman .pkg.tar.xz |
1.19.4 PKGREL 2 — foreground launcher; TUI input works |
| wrapper (appendix) | v2 | opencode-wrapper |
deb + pacman | 2.0.0–2.2.5 complete; exact --version gate per build |
| wrapper (appendix) | v1 | opencode1-wrapper |
deb + pacman | 1.18.30–1.19.5 complete |
Mutual exclusion: across generations opencode1 (v1) and opencode (v2) CAN
coexist side by side; within one generation install exactly ONE of native /
wrapper / compressed.
Not in this batch: compressed/UPX lines, and v1 native 1.19.5 (see Known Issues).
Install
curl -fsSL https://hope2333.github.io/repo/install.sh | sh -s -- --install opencode
pacman -S opencode # v2 mainline (or opencode-wrapper)
pacman -S opencode1 # v1 mainline (coexists with v2)Manual (pinned):
pacman -U opencode-2.2.5-2-aarch64.pkg.tar.xz # v2 native
pacman -U opencode1-1.19.4-2-aarch64.pkg.tar.xz # v1 native
dpkg -i opencode_2.2.5-2_aarch64.deb
dpkg -i opencode1_1.19.4-2_aarch64.debBUILD LOG
20261104: v2 native 2.2.5-2 — PTY fix; musl+shim attempted and rejected (dlopen ok, SIGSEGV@0x0 inside POST /api/pty); bun-pty Rust crate rebuilt for aarch64-linux-android (termios android cfg + static libunwind.a)
20261104: v1 native 1.19.4-2 — launcher moved to the foreground process group (raw mode restored); reply-batch ESC guard added before UPX
20261104: wrapper backfill (v2) — 2.0.19–2.0.22, 2.1.0–2.1.4, 2.2.0–2.2.5; pipeline fixes: auto npm pack when the glibc tgz is missing, in-archive binary lookup for legacy layouts (commit 4f31824)
20261104: wrapper backfill (v2) — 2.0.0–2.0.18, 2.0.28–2.0.31 completed after freeing disk (17 versions had failed with tar: Wrote only N bytes)
20261104: wrapper backfill (v1) — 1.18.30–1.19.3 gap-fill plus 1.19.5 (12 versions, deb + pacman)
20261104: mis-named opencode1-wrapper_2.1.* / 2.2.* (deb + pacman) removed
20261104: opencode1 1.19.5 native WITHDRAWN — see Known Issues; the deb and pacman packages were removed from this tag after failing the runtime check
Latest: v2.2.5 (v2) / v1.19.4 (v1)
Verification
- Android 9 / kernel 3.18.140 (device oscar):
POST /api/ptyreturns a live
zsh(status: running); serve / TUI / keystroke / 15 s all pass — v2
regression clean - Android 16 / kernel 6.6.118 (host):
opencode v2.2.5 --version;serve
starts;POST /api/ptyreturns a running process with a pid — the PTY fix
holds on the newer platform - v1 input:
sttyreads-icanonafter launch; keystrokes reach the input
box without Enter; first screen contains norgb:/$yjunk - wrapper version gate: every v2 wrapper build asserts
--versionequals the
target version exactly — 43/43 pass; disk-exhaustion failures
(tar: Wrote only N bytes) were re-run, not waived - package payload gate: the finished package is unpacked and its runtime
binary is executed, asserting--versionmatches. The gate deliberately targets
the runtime, notusr/bin/*— the launcher hardcodes absolute$PREFIXpaths,
so running it from an unpacked tree execs the host's installed binary and
reports the installed version instead of the packaged one - asset reconciliation: remote
digestcompared against localsha256sum
output for every uploaded asset (not sampled) — 0 missing, 0 mismatch
Known Issues
- v1 native
1.19.5is withdrawn. The revive pipeline produces a binary that
starts but segfaults (Segmentation fault at address 0x40) on both Android 9 /
3.18.140 and Android 16 / 6.6.118. Grafting the 1.19.5 module graph onto a 1.4.0
bun base corrupts the payload (SyntaxError: Invalid character: '\0'), while a
1.4.2 base yields a binary that reports the right version and then crashes —
1.4.2 is known to fault at0x40on bionic (issue #23). The v11.19.5
wrapper package is unaffected and is available. - The two bun bases are not interchangeable. The revive path (A line: graft a
module graph) and the compile path (B line: bun runs the build) need different
versions. Both are recorded intools/transplant/config/bun-bind.jsonas
revive_target/compile_target. - Android 11+ coverage is limited. Primary verification remains Android 9;
this batch adds a PTY smoke test on Android 16. Full TUI interaction should
still be judged on Android 9 / 3.18. - wrapper is the appendix line. Prefer native when available; within one
generation wrapper and native are mutually exclusive, v1 and v2 coexist.
Links
2.2.5 1.19.4 v2.0.32+v2.1.[0-4]+v2.2.[0-5] v1.18.[33-35]+v1.19.[0-4]
Push261103 — Asset Update
Overview
Batch covering the whole verified range in one place:
- v2 native —
2.0.32,2.1.0–2.1.4,2.2.0–2.2.5(12 versions) - v1 native —
1.18.33–1.18.35,1.19.0–1.19.4(8 versions)
Every version ships as deb and pacman (.pkg.tar.xz): 40 assets plus
SHA256SUMS.txt.
All packages are the native family — zero-glibc Android binaries built from
upstream source (B line) with android-bun, TUI rendered by a bionic
libopentui.so rebuilt from source. No wrapper, no proot, no musl.
Verification
Every version in this batch passed the device criteria on the reference
machine (kernel 3.18.140-mokee, Android 9, aarch64):
install → --version → serve HTTP 200 → TUI frame ≥ 800 B → keystroke echo → 15 s survival → no crash/degrade markers
2.2.0–2.2.5 were re-verified for this batch on 2026-11-03; the remaining
versions were verified on the same device in their own build rounds.
Locally each package also passes verify-artifact (seccomp shim present in the
runtime binary, web UI archive embedded for v2).
Which version should I pick?
| Line | Renderer ABI | Notes |
|---|---|---|
v2 2.0.32 |
opentui 0.5.17 | last of the 2.0 line |
v2 2.1.0–2.1.4 |
opentui 0.6.8 | first upstream line on the ot_* context ABI |
v2 2.2.0–2.2.1 |
opentui 0.7.0 | newer renderer, TUI renamed FFI surface |
v2 2.2.2–2.2.5 |
opentui 0.7.0 → 0.8.0 | 2.2.2 drops upstream @opencode-ai/pty; 2.2.3+ re-adds it as @opencode/pty, 2.2.4+ pins 0.4.0 |
v1 1.18.33–1.19.4 |
opentui 0.4.5 | legacy generation, still maintained |
These are separate ABI tracks — pick by the line you need, not by "newest wins".
Do not downgrade between tracks unless you know the renderer ABI matches.
Install
# Debian/Ubuntu on Termux (deb)
pkg install xz-utils
dpkg -i opencode_<ver>_aarch64.deb # v2
dpkg -i opencode1_<ver>_aarch64.deb # v1
# Arch/pacman on Termux
pacman -U opencode-<ver>-1-aarch64.pkg.tar.xz # v2
pacman -U opencode1-<ver>-1-aarch64.pkg.tar.xz # v1opencode (v2) and opencode1 (v1) install side by side; they do not share a
runtime path.
Integrity
SHA256SUMS.txt in the assets lists every package. Verify with
sha256sum -c SHA256SUMS.txt.
2.1.4 v2.0.32+v2.1.4
Push261026 — Asset Update
Overview
New batch: upstream v2 2.0.32 and v2 2.1.4, both in the native
family (B-line source build with android bun) as deb + pacman .pkg.tar.xz.
4 assets plus SHA256SUMS.txt.
Why two versions: 2.0.32 is the last of the 2.0 line (opentui 0.5.17) and
2.1.4 is the first upstream release on the 0.6.x renderer ABI (opentui 0.6.8).
They are separate ABI tracks — pick by the version line you need, not by
"newest wins".
| Family | Package | Format | Notes |
|---|---|---|---|
| v2 native (mainline) | opencode |
deb + pacman .pkg.tar.xz |
Zero-glibc bionic ELF, direct exec |
| v2 wrapper (appendix) | opencode-wrapper |
deb + pacman .pkg.tar.xz |
glibc loader wrapper |
| v2 compressed (UPX) | opencode-compressed |
deb + pacman .pkg.tar.gz |
UPX --best |
| v1 native (mainline) | opencode1 |
deb + pacman .pkg.tar.xz |
Zero-glibc bionic ELF, direct exec |
| v1 wrapper (appendix) | opencode1-wrapper |
deb + pacman .pkg.tar.xz |
glibc payload |
| v1 compressed (UPX) | opencode1-compressed |
deb + pacman .pkg.tar.gz |
UPX --best |
This batch builds the v2 native line only (2.0.32 and 2.1.4). The wrapper
and compressed families were not built or verified this cycle, and v1 ships
no new version here: the v1 packages already on the shelf remain
opencode1 1.19.3 (see BUILD LOG history and the v1 rows above). Upstream
v1 1.19.4 exists but still pins effect 4.0.0-beta.83, which segfaults on this
target through the standard transplant pipeline; it needs the source-rebuild
track before it can ship.
2.1.4 blocker found and fixed in this cycle: the first 2.1.4 build paired
the 0.6.8 JS with the 0.5.x-era bionic libopentui.so (a hardcoded single
path), so the TUI aborted with Symbol "ot_scene_set_hooks" not found —
exactly the wrong-ABI substitution this project refuses to ship. The renderer
library is now selected per OPENTUI_VER, versions without a matching bionic
build hard-fail, and FFI symbols are gated per ABI. The 0.6.8 library was
rebuilt from upstream sst/OpenTUI v0.6.8 source for bionic (export surface
diffed against the upstream glibc artifact: 0 missing of 1829).
Family matrix & coexistence
Mutual exclusion: within one generation you install exactly one of native /
wrapper / compressed (opencode ↔ opencode-wrapper cannot coexist;
opencode-compressed Provides opencode). Across generations opencode1*
(v1) and opencode* (v2) can be installed together. v1 packages are
< 2.0.0, v2 packages are >= 2.0.0.
When v2 and opencode1 coexist, older packages still need
dpkg --force-overwrite for the shared seccomp shim path; a later batch
removes that conflict.
Install
Configure the software source (once)
# One-liner: configure sources and install (pacman + apt in one go)
curl -fsSL https://hope2333.github.io/repo/install.sh | sh -s -- --install opencode
# Manual:
# pacman — append to $PREFIX/etc/pacman.conf:
# [hope2333-meta]
# Server = https://hope2333.github.io/repo/Termux/pacman/
# SigLevel = Optional TrustAll
# (then install hope2333-mirrorlist to get the [hope2333] multi-server fallback source)
# apt — write to $PREFIX/etc/apt/sources.list.d/hope2333.list:
# deb [trusted=yes arch=aarch64] https://github.com/Hope2333/opencode-termux/releases/latest/download/ ./
Install from the software source (apt / pacman — latest version per package)
pacman -S opencode # v2 native mainline
pacman -S opencode-wrapper # v2 wrapper appendix
pacman -S opencode-compressed # v2 UPX compressed
pacman -S opencode1 # v1 native mainline (coexists with v2)
apt update && apt install opencode
Manual install (pinned version)
pacman -U opencode-2.1.4-1-aarch64.pkg.tar.xz
dpkg -i opencode_2.1.4_aarch64.deb
pacman -U opencode-2.0.32-1-aarch64.pkg.tar.xz
dpkg -i opencode_2.0.32_aarch64.deb
BUILD LOG
20261025: v2.0.32 native deb + pkg first upload
20261026: v2.1.4 native deb + pkg first upload + SHA256SUMS.txt
20261029: unified repo db / mirrorlist backfill (site-rebuild self-heal)
Latest: v2.1.4 (v1 shelf: v1.19.3)
Verification
- Version continuity: v2 2.0.{0-32} no gaps, plus 2.1.4; v1 shelf 1.19.{0-3}
SHA256SUMS.txtmatches hosted assets:sha256sum -c SHA256SUMS.txtmake verify-artifactPASS for both versions (seccomp harden + web UI assets)- On-device (Android 9, kernel 3.18.140, aarch64): 2.0.32 —
--versionOK,
serveHTTP 200, TUI 123,184 B alive past 15 s; 2.1.4 —--versionOK,
serveHTTP 200, TUI 101,980 B with tmux capture of the full UI (banner,
prompt, session list), alive past 15 s - Shell test suite: 99 ok
Links
- GitHub: https://github.com/Hope2333/opencode-termux
- Software source guide: https://hope2333.github.io/zh_CN/wiki/guides/software-source.html
- Release notes (this batch, zh_CN): https://hope2333.github.io/zh_CN/wiki/opencode-termux/release/Push261026.html
2.0.27 1.19.0 v2.0.[23-27] v1.18.35+v1.19.0
Push261013 — Asset Update (v2 2.0.23–2.0.27 + v1 1.18.35/1.19.0, all families)
Overview
New batch: upstream v2 2.0.23–2.0.27 (5 versions) and v1 1.18.35 / 1.19.0
(2 versions, incl. the new 1.19.0 minor line), each shipped in all three
families: native, UPX-compressed (deb + pacman), and wrapper (deb only,
per the established wrapper convention).
36 assets: v2 native opencode 2.0.23–2.0.27 + v1 native opencode1
1.18.35/1.19.0, each as deb + pacman .pkg.tar.xz (14 packages); compressed
opencode-compressed 2.0.23–2.0.27 + opencode1-compressed 1.18.35/1.19.0,
each as deb + pacman .pkg.tar.gz (14 packages); wrapper opencode-wrapper
2.0.23–2.0.27 + opencode1-wrapper 1.18.35/1.19.0 as deb (7 packages); plus
SHA256SUMS.txt (35 entries).
Rel rule: every package in this batch is a first release → pkgrel=1.
Build provenance: v2 native compiled from source (android bun, B-line
build-bionic.sh) with per-version dependency pins (opentui 0.5.14/0.5.16/
0.5.17 matching each upstream version, pty 0.2.0); v1 native via the
transplant revive pipeline (bun 1.4.0 base); compression via the in-repo
tools/compressed-one.sh (UPX -4, ratio ≈ 31–38%). Every package smoke-tested
(--version version-gate + --dbpath --help + TUI probe) before upload; every
upload verified for state/size/sha256-digest.
Family matrix & coexistence
- Same generation is mutually exclusive:
opencodevsopencode-wrapper
vsopencode-compressed(v2);opencode1vsopencode1-wrappervs
opencode1-compressed(v1). - Cross-generation coexistence:
opencode1*packages may be installed
alongsideopencode*packages. - v1 packages cover opencode
< 2.0.0; v2 packages cover>= 2.0.0.
Install
# pacman (official termux repo config assumed)
pacman -U ./opencode-2.0.27-1-aarch64.pkg.tar.xz
# deb
dpkg -i ./opencode_2.0.27_aarch64.debBUILD LOG
20261013: v2.0.{23-27} native / wrapper / compressed + v1.18.35 + v1.19.0 native / wrapper / compressed first upload
Latest: v2.0.31 (v1: v1.19.3)
Verification
- Version continuity: v2 2.0.0–2.0.27 and v1 1.18.8–1.18.35 + 1.19.0 are all
on-shelf across Push260803 → this tag. SHA256SUMS.txtcovers all 35 packages; verify with
sha256sum -c SHA256SUMS.txt.- Cross-generation matrix: install
opencode(v2) andopencode1(v1)
together — data isolation maintained by the per-generation launchers.
Links
v2.0.22 v1.18.34 v2.0.[0-21] v1.18.[30-33]
Push261005 — Asset Update (RC6 fleet raw)
Overview
RC6 fleet batch — raw (uncompressed) original packages from RC4 (Push260928)
through each generation's latest upstream. This is the compression input
batch: UPX packing is outsourced, and the opencode[1]-compressed family was
slated to be backfilled to this same tag once produced. Wrapper family (appendix)
is backfilled as deb only; wrapper pacman packages are not in this batch
(build path pending).
Compressed backfill is now complete: v1 opencode1-compressed
1.18.30–1.18.34 (2026-10-08) and v2 opencode-compressed 2.0.0–2.0.22
(2026-10-09/11) are on this tag, each version as deb + pacman .pkg.tar.gz.
175 assets: v2 native opencode 2.0.0–2.0.22 (23 versions) + v1 native
opencode1 1.18.30–1.18.34 (5 versions), each as pacman .pkg.tar.xz + deb
(56 packages); legacy UPX transplants opencode[1]-native-*-upx.xz
(28 assets, retained); compressed backfill — v2 opencode-compressed
2.0.0–2.0.22 (23 versions) + v1 opencode1-compressed 1.18.30–1.18.34
(5 versions), each as deb + pacman .pkg.tar.gz (56 packages); v2 wrapper
opencode-wrapper (1.18.30–1.18.31, 2.0.0–2.0.18; 21 versions) + v1 wrapper
opencode1-wrapper (1.18.30–1.18.32; 3 versions) as deb (24 packages), plus
SHA256SUMS.txt, hope2333.db (+ .tar.gz) and 8 mirrorlist files (repo
self-heal).
Rel fix: the pacman packages were first uploaded with a placeholder
-90 rel, then re-packaged and re-uploaded with the correct per-version
pkgrel — rule: historical max rel for that version + 1; versions never
released before start at 1. Only the rel metadata changed; every package
payload is byte-identical to the -90 source (full per-package sha256
reconciliation, not sampled).
Provenance (per docs/fleet-manifest.md, per-package sha256):
fresh-compile— 9 versions: all 5 v1 + v2 2.0.19–2.0.22repack-from-RC4-asset— 19 versions: v2 2.0.0–2.0.18 (byte-identical
payloads to the already-verified on-shelf RC4 assets)
All packages are the fleet rebuild generation (NDK r27c, not stripped) —
a different source lineage from the old transplant generation; native debs
have been rebuilt to this generation in full, so the batch is
generation-consistent (deb filenames carry no rel and are unchanged).
Previous batch tag Push260903: its -90 packages have been cleared;
historical assets there are retained.
| Family | Generation | Package | Format | Notes |
|---|---|---|---|---|
| native (mainline) | v2 | opencode |
deb + pacman .pkg.tar.xz |
fleet rebuild (NDK r27c, not stripped); raw uncompressed; per-version pkgrel (1–6) |
| native (mainline) | v1 | opencode1 |
deb + pacman .pkg.tar.xz |
same generation, direct exec; per-version pkgrel (1 or 4) |
| compressed (UPX) | v2 | opencode-compressed |
deb + pacman .pkg.tar.gz |
UPX-compressed runtime; backfilled |
| compressed (UPX) | v1 | opencode1-compressed |
deb + pacman .pkg.tar.gz |
UPX-compressed runtime; backfilled |
| wrapper (appendix) | v1 + v2 | opencode-wrapper / opencode1-wrapper |
deb | deb backfill (appendix line); wrapper pacman pending |
Mutual exclusion: across generations opencode1 (v1) and opencode (v2)
CAN coexist side by side; within the same generation install exactly ONE of
native / wrapper / compressed.
Install
curl -fsSL https://hope2333.github.io/repo/install.sh | sh -s -- --install opencode
pacman -S opencode # v2 mainline (or opencode-wrapper)
pacman -S opencode1 # v1 mainline (coexists with v2)Manual (pinned):
pacman -U opencode-2.0.22-1-aarch64.pkg.tar.xz # v2 native (new version, pkgrel=1)
pacman -U opencode1-1.18.34-1-aarch64.pkg.tar.xz # v1 native (new version, pkgrel=1)
dpkg -i opencode_2.0.22_aarch64.debBUILD LOG
20261005: first upload — v2.0.[0-22] + v1.18.[30-34] native raw (deb + pacman), fleet B-line rebuild (NDK r27c, not stripped); 9 fresh-compile + 19 repack-from-RC4-asset
20261005: rel-fix — pacman pkgrel corrected from placeholder 90 to per-version rule (historical max rel + 1; never-released versions start at 1); payload byte-identical (full sha256 reconciliation vs 90-rel sources); all 90-rel assets removed; SHA256SUMS rebuilt covering all 56 packages; repo db + mirrorlist on tag
20261006: backfill — wrapper appendix deb line: v2 opencode-wrapper 1.18.30–1.18.31 + 2.0.[0-18] (21 debs) + v1 opencode1-wrapper 1.18.[30-32] (3 debs); SHA256SUMS rebuilt covering all 80 packages
20261008: compressed backfill — v1 opencode1-compressed 1.18.[30-34] (deb + pacman, 10 packages)
20261009: compressed backfill — v2 opencode-compressed 2.0.[0-12] (deb + pacman, 26 packages), UPX-compressed runtime, per-version smoke-tested before upload
20261011: compressed backfill — v2 opencode-compressed 2.0.[13-22] (deb + pacman, 20 packages), completed across three upload attempts (network-resilient re-run with per-package verify)
20261012: SHA256SUMS rebuilt covering all 174 assets (incl. compressed backfill)
Latest: v2.0.22 (v2) / v1.18.34 (v1)
Verification
- Batch checks (raw input): 28/28 pacman zero UPX magic, zero relative
usr/
members, naming zero violations (discover_releaseregex) - 9 fresh-compile versions three-way reconciliation: upstream tag commit ==
checkout HEAD == in-package--version - Shape consistency: v2 2.0.19–2.0.22 members identical to 2.0.18; v1 four
versions identical to 1.18.32 - Rel-fix reconciliation: all 28 re-packaged pacman payloads byte-identical
to the 90-rel sources (full sha256, not sampled) - Compressed backfill: all 28 versions (v2 2.0.0–2.0.22 + v1 1.18.30–1.18.34)
smoke-tested in an isolated sandbox before upload (--versionversion match--dbpath --help, full XDG/HOME isolation)
SHA256SUMS.txtrebuilt: covers all 174 other assets (56 native
deb+pacman, 28 legacy upx.xz transplants, 56 compressed, 24 wrapper deb,
2 repo db, 8 mirrorlist)- Recheck tools:
tools/a2/fleet-manifest.py --check,
tools/a2/fleet-provenance.py --check --verify-payload
Links
2.0.31 1.19.3 v2.0.[23-31] v1.18.[30-35]+v1.19.[0-3]
Push261016 — seccomp hardening fix (issue #36) + v2 2.0.28–2.0.31 + v1 1.19.1–1.19.3
Overview
Two things in this batch:
- Issue #36 fix (seccomp hardening) —
opencode1native packages shipped
without thelibopencode-crhandler.soseccomp shim being interposed
(DT_NEEDEDmissing), so on Android 12 (seccomp blocksclose_range) the
process died withSIGSYSat startup — even--version. Root cause: three
broken links in the harden wiring (the v1family-nativechain never called
harden-native; the v2 direct-build path bypassed it; the compressed tool
compressed un-hardened runtimes). Fixed:family-nativenow hardens;
harden-nativeis path-parameterized;tools/compressed-one.shhardens
before UPX (and refuses un-hardened external binaries). Affected packages
repacked with the shim interposed and re-uploaded (see repack list below). - New versions — v2 2.0.28–2.0.31 (4 versions) and v1 1.19.1–1.19.3
(3 versions), each in all three families (native, UPX-compressed, wrapper
deb-only).
84 assets: 83 packages + SHA256SUMS.txt.
Repacked (issue #36 fix — same versions, hardened)
| Family | Versions | Formats |
|---|---|---|
opencode (v2 native) |
2.0.23–2.0.27 | deb + .pkg.tar.xz |
opencode1 (v1 native) |
1.18.30–1.18.34, 1.18.35, 1.19.0 | deb + .pkg.tar.xz |
opencode-compressed |
2.0.23–2.0.27 | deb + .pkg.tar.gz |
opencode1-compressed |
1.18.30–1.18.34, 1.18.35, 1.19.0 | deb + .pkg.tar.gz |
All repacked binaries now carry DT_NEEDED[0]=libopencode-crhandler.so (the
shim interposes close_range with -ENOSYS), zero-displacement surgical patch
proven; the shim ships inside every package.
New versions
| Family | Versions | Formats |
|---|---|---|
opencode (v2 native) |
2.0.28–2.0.31 | deb + .pkg.tar.xz |
opencode1 (v1 native) |
1.19.1–1.19.3 | deb + .pkg.tar.xz |
opencode-compressed |
2.0.28–2.0.31 | deb + .pkg.tar.gz |
opencode1-compressed |
1.19.1–1.19.3 | deb + .pkg.tar.gz |
opencode-wrapper |
2.0.28–2.0.31 | deb only |
opencode1-wrapper |
1.19.1–1.19.3 | deb only |
All first releases → rel=1. v2 native compiled from source with per-version
opentui pins (0.5.14/0.5.16/0.5.17 by upstream catalog); v1 native via
transplant (bun 1.4.0 base, predict passed 7/7). Every package smoke-tested
(--version gate + isolated --dbpath --help + TUI probe) and upload-verified
(state/size/sha256).
Family matrix & coexistence
- Same generation is mutually exclusive: native / wrapper / compressed
(v2opencode*; v1opencode1*). - Cross-generation coexistence:
opencode1*may coexist withopencode*. - v1 packages cover opencode
< 2.0.0; v2 packages cover>= 2.0.0. - Wrapper pacman packages are not in this batch (deb-only convention).
Install
pacman -U ./opencode-2.0.31-1-aarch64.pkg.tar.xz
dpkg -i ./opencode_2.0.31_aarch64.debBUILD LOG
20261017: v2.0.{23-31} native / wrapper / compressed + v1.18.{30-35} + v1.19.{0-3} native / wrapper / compressed first upload
20261018: v1.18.35 + v1.19.{0-3} compressed backfill + SHA256SUMS.txt
Latest: v2.0.31 (v1: v1.19.3)
Verification
- Version continuity: v2 2.0.0–2.0.31, v1 1.18.8–1.18.35 + 1.19.0–1.19.3.
SHA256SUMS.txtcovers all 83 packages:sha256sum -c SHA256SUMS.txt.- Hardening spot check:
readelf -dW usr/lib/opencode/runtime/opencode | grep crhandler(native) or
afterupx -d(compressed) — expectlibopencode-crhandler.so.
Links
Push260930 — RC5 (B1 native-gnu 定版)
⚠️ 已撤销 / REVOKED(2026-10-01)本轮发布撤销:发布门升级为「UPX 压制通过」硬性要求,实测 stock UPX 5.2.1 对 v2 bionic 镜像致死(匿名映射丢失 .bun 区 → 零页无文件回填 → SIGSEGV,机制取证见 ops-lessons §11 与 ra-mechanism.md)。38 件资产保留仅供存档,勿安装;官方源已回退 RC4(Push260928,B2 native-musl) 口径。UPX 兼容问题解决后将以新 tag 重新发布。
REVOKED: the release gate now hard-requires the UPX-packed variant to pass; stock UPX is fatal to v2 bionic images (anon-mapping page loss on the .bun region). Assets kept for archive only — the repo shelf has been rolled back to RC4 (Push260928).
Push260930 — RC5 (B1 native-gnu 定版)
Overview
RC5 = B1(native-gnu)定版 per RFC discussions/29:
v2 native 全 19 版(2.0.0-2.0.18)以 gnu PTY 资产延续重建上架(PKGREL=5),
seccomp shim 照常随包(#17/#24 修复不回退)。双线并行的第一支定版——
RC6 将以 B2(native-musl)收口。
38 assets(v2 native 19 版 deb + pacman),逐件 digest 对账。
| 对比 | B1(本版 RC5) | B2(RC4 已上架 / RC6 定版) |
|---|---|---|
| PTY 助手 | 上游 gnu 变体原样(延续现状) | musl 全静态变体(#27 修复) |
| 运行面 | 绝大多数环境稳定(含零 glibc) | 全环境含脆弱内核 |
| 纯度 | 含 glibc 元素(纯度洁癖扣分) | 零 glibc 沾染 |
同代互斥:B1 与 B2 二选一;与 wrapper/compressed 家族同代亦互斥。跨代 v1 可共存。
Install
curl -fsSL https://hope2333.github.io/repo/install.sh | sh -s -- --install opencode
pacman -S opencode # v2 mainline(本版 = B1 gnu 定版,PKGREL=5)
pacman -S opencode1 # v1 mainline(跨代共存)Manual (pinned): pacman -U opencode-2.0.18-5-aarch64.pkg.tar.xz
BUILD LOG
20260930: RC5 — B1 native-gnu 定版(19 版 PKGREL=5,PTY_VARIANT=gnu 重建,逐版 gnu≥1/musl=0 断言)
Latest: v2.0.18 (v2) / v1.18.33 (v1)
Verification
- digest 对账 38/38;wrapper 版本门(RC4 批次延续)
- PTY_VARIANT 双模式验收:musl 模式 musl=2/gnu=0、gnu 模式 gnu=2/musl=0(2.0.12 双跑)
- stale-serve-kill hook 仅 v2 2.0.[0-3](hook 注册表)
Links
v2.0.18 v1.18.33 v2.0.[0-17] v1.18.[30-32]
Push260928 — Asset Update (RC4)
Overview
RC4 — the RC3 two-generation family, corrected and completed. Headline fixes:
v2 native packages now ship the seccomp shim (fixes SIGSYS "Bad system call"
on older kernels, #17/#24), and the PTY helper is now a fully static musl
binary (fixes the glibc PTY dlopen failure, #27). Version coverage extended:
v2.0.13–2.0.18 added to both native and wrapper; v1.18.33 added (A-line).
96 assets (v2 native 38 + v2 wrapper 38 + v1 20), plus repo db/mirrorlist
(site-rebuild self-heal). All digest-verified against local sha256.
| Family | Generation | Package | Format | Notes |
|---|---|---|---|---|
| native (mainline) | v2 | opencode |
deb + pacman .pkg.tar.xz |
Zero-glibc bionic ELF; PKGREL=4, seccomp shim + musl pty included |
| native (mainline) | v1 | opencode1 |
deb + pacman .pkg.tar.xz |
Zero-glibc bionic ELF, direct exec |
| wrapper (appendix) | v2 | opencode-wrapper |
deb + pacman .pkg.tar.xz |
bun-termux-loader wrap |
| wrapper (appendix) | v1 | opencode1-wrapper |
deb + pacman .pkg.tar.xz |
glibc runtime payload |
| compressed (UPX) | v1 | opencode1-compressed |
deb + pacman .pkg.tar.gz |
UPX 外包压制,见 opencode-compressed-branch |
Mutual exclusion: across generations opencode1 (v1) and opencode (v2)
CAN coexist side by side; within the same generation install exactly ONE of
native / wrapper / compressed.
Install
curl -fsSL https://hope2333.github.io/repo/install.sh | sh -s -- --install opencode
pacman -S opencode # v2 mainline (or opencode-wrapper)
pacman -S opencode1 # v1 mainline (coexists with v2)Manual (pinned):
pacman -U opencode-2.0.18-4-aarch64.pkg.tar.xz # v2 native (PKGREL=4)
pacman -U opencode1-1.18.33-3-aarch64.pkg.tar.xz # v1 native (PKGREL=3)
dpkg -i opencode_2.0.18_aarch64.debBUILD LOG
20260928: RC4 — v2 native PKGREL=4 seccomp shim shipped (issues #17/#24); bionic static-musl PTY helper (issue #27); v2.0.18 added; stale-serve-kill hook scoped to v2 2.0.[0-3]
20260928: RC4 backfill — v2.0.[13-17] native PKGREL=4 + v1.18.33 A-line PKGREL=3 + v2 wrapper 2.0.[13-18] PKGREL=3
Latest: v2.0.18 (v2) / v1.18.33 (v1)
Verification
- Per-asset digest reconciliation: remote API digest == local sha256, 96/96
- A-line goldens PASS (1.18.33); wrapper exact-version gate 19/19 (13 + 6 backfill)
- pty purity: per-version embedded-hash assertion (musl >=1 / gnu =0) on all 19 native builds
- hook gating verified live (fires on 2.0.0, silent on 2.0.5)
releases/latest-> Push260928; Push260922 marked prerelease (archived)
Links
- GitHub: https://github.com/Hope2333/opencode-termux
- Software source guide: https://hope2333.github.io/wiki/guides/software-source.html
- Docs:
docs/dual-track-install.md/docs/transplant.md/docs/ops-lessons-rc3.md