Skip to content

OpenCode 2.4.2 for Termux - #3

Merged
Spectra010s merged 33 commits into
native-androidfrom
feat/2.4.2
Nov 27, 2026
Merged

Spectra010s merged 33 commits into
native-androidfrom
feat/2.4.2

Conversation

@Spectra010s

Copy link
Copy Markdown
Owner

Pins OpenCode 2.4.2, OpenTUI 0.9.9 and Zig 0.17.1. Includes the bionic build fixes, the installer fix and the repo cleanup.

Source 6f051405 (2.4.1), source_sha256 2e6432bb, the same 1.4.4 builder Bun.
Patchers checked offline before any CI run: the two source patchers and both
OpenTUI chunk patchers apply to 0.9.4 unchanged, and the four buffer/renderer
guards in patch-opentui-android.py are no longer needed because upstream now
clamps those paths itself.
Drops the pointer fix, the unchanged package layout and the tag-run policy; none of them are changes in 2.4.1.
Removes packing/pacman, scripts/package/package_pacman*.sh, the v1 tools
(clean-release, build-compressed, maintain), docs/history, and the wrapper,
compressed and standalone Makefile targets. The Makefile now exposes bundle,
deb, status, selfcheck, test and clean. Docs and script comments that pointed
at the removed files are pruned.
2.4.1 was never released. The lock goes from 2.3.2 to 2.4.2 (fc31a48) and the
release notes cover 2.3.2 -> 2.4.2. OpenTUI 0.9.9 requires Zig 0.17.1, the
same version as 0.9.4.
Released 2.3.2, pinned 2.4.2, OpenTUI 0.9.9, and the bundle-libcxx step that
still needs the bionic --libc file.
Deletes the wrapper/standalone deb packagers, the on-device transplant
comparison pipeline, the system-skills hook runner and manifests, the
build-pure workflow, the prebuilt loader binaries, .omo/ and the docs that
described them. What remains under tools/transplant is swap_tui.py (the guard
gate the workflow imports) and config/bun-bind.json (the Bun base pin the
workflow cross-checks).

Docs and AGENTS maps now list only the files that exist; the bundle build,
packaging, signed index and plugin lifecycle are unchanged.
Android has os.tag == .linux, so build.zig's static-library branch spawns
bundle-libcxx, whose nested `zig build-lib` never receives the bionic --libc
file. Zig has no bundled bionic libc, so that step fails. The bundle ships
only the shared libopentui.so; the patch now excludes .android from the
static-archive branch.

Verified against the pinned 0.9.9 tree with Zig 0.17.1: the patch is
idempotent, zig fmt --check is clean, and build.zig compiles.
Drop the BUN_SOURCE_TARGET_ELF override injected into build.ts's
compileExecutable by patch-opencode-source.py; nothing sets the variable and
the bundle build calls build.ts --skip-install. Remove android_bun and
source_build_bun_1_4_0 from the lock and the android_bun row from the build
guide; no code reads them.
Remove rules for deleted v1 packaging dirs, pacman artifacts, .omo/ and
version-specific tarballs. Add dist/ for the CI APT index and one __pycache__/
rule covering every depth.
Delete README.es.md, README.ja.md, README.zh.md and README.zht.md. They were
v1-era text with only the build block updated. Update AGENTS.md for the
removals and for the applied bundle-libcxx fix.
Both pinned the v1 musl PTY helper and are read by nothing. The lock at
tools/supply-chain-lock.json is the only version source.
All CI, installer, script and doc references now use ./supply-chain-lock.json.
The two Python readers resolve it relative to the repo root.
Actions call scripts/ci/*.sh directly, so the top-level wrapper is gone.
Local commands in AGENTS.md, CONTRIBUTING.md, the execution checklist and the
test bootstrap comment now name the scripts themselves.
All helper executables now live under scripts/; the OpenTUI tlsdesc shim
moves to scripts/opentui/ and the two knowledge bases merge into
scripts/AGENTS.md. Actions, docs and the patch script use the new paths.
The workflow now runs scripts/opentui/check-ffi-guard.py on the unstripped
libopentui.so instead of importing has_ffi_guard from transplant/swap_tui.py.
The unused v1 swap tool and scripts/transplant/ are removed.
The metadata step still read scripts/transplant/config/bun-bind.json and
android_bun from the lock after both were removed, so the build failed before
OpenTUI was compiled. Keep the OpenTUI commit/Zig checks.
Delete docs/reference/plugin-packaging-design.md and its links. The document
described a package-manager-driven plugin model that was never implemented;
plugin operations are covered by docs/guides/plugin-management.md.
Keep New TUI look, Automations, Video generation, Images and videos cost
less, and Esc Takes Back Your Last Message. Upstream embeds at most five
highlights, so the other three were never shown in the TUI banner.
The 0.9.9 bundle-libcxx step is skipped for Android rather than wired to the
bionic --libc file. The shipped shared renderer is built with that file.
Describe the flat GitHub Releases repo, how gen-packages-index.py and the
signing scripts build it, and what setup-apt.sh does on a device. Remove
docs/ops/execution-checklist.md: its release steps duplicate other docs and
its plugin/system-skills steps refer to removed components.
The docs/ tree now holds the index, the two guides and the APT runbook;
there is no ops/ subdirectory. All links point at docs/apt-repository.md.
Describe only scripts/plugin-manager.sh's current commands and the local
file:// snapshot workflow. Drop the archived external builder route, the
removed system-plugin path and the claim that the helper covers both
runtime lines.
Delete plugin-manager.sh, plugin-selfcheck.sh, their unit tests and the guide
that documented them. The paths and singular "plugin" key they used came from
Hope's v1 tooling; upstream OpenCode handles plugin lifecycle itself. No
plugin-specific code, docs or tests remain in this repo.
Replace the stale context-checkpoint text with what is patched in the pinned
OpenCode and OpenTUI trees and why: platform assumptions, pointer tagging,
loader slots, the libc++ bundling skip, the guard gate and the resulting
bundle shape. Remove the claim that the old single-ELF line remains on disk.
Move native-v2-build.md to docs/ root so docs/ has no subdirectories, then
rewrite the root, docs, scripts and packing AGENTS files to match the current
tree: no Makefile, no plugin scripts, no ops/ or reference/ dirs, root lock,
flat APT runbook at docs/apt-repository.md.
The curl installer copied packing/launcher/opencode unchanged, leaving
__OPENCODE_VERSION__ in the launcher User-Agent, and its no-argument tag was
still v2.2.7. Substitute the version before installing the launcher, guard
against a leftover placeholder, and move the default tag to v2.4.2.
The tag line was already in install.sh; changing it was not part of the fix.
Keep release_tag=v2.2.7 and only stamp __OPENCODE_VERSION__ in the launcher.
Remove the hardcoded tag. The no-argument path downloads SHA256SUMS from
releases/latest/download, derives the bundle asset name from it, and installs
that version. --version still resolves an exact tag and validates the asset.
Signing now happens in publish-native-android.yml. The repair workflow expected
a SHA256SUMS-apt asset that current releases do not publish, and had not run
since 2026-11-04.
@Spectra010s
Spectra010s merged commit 05bef10 into native-android Nov 27, 2026
3 checks passed
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