From 198904eba5247694957cb05c557980f36ea19034 Mon Sep 17 00:00:00 2001 From: Adeloye Adetayo Date: Fri, 13 Nov 2026 15:31:47 +0000 Subject: [PATCH 1/4] feat: pin OpenCode 2.3.0 with OpenTUI 0.8.4 Upstream skipped 2.2.8. Source a6b15d3, renderer d4a2af2 on the same Zig 0.17.0. --- .release/v2.3.0-highlights.md | 7 +++++++ .release/v2.3.0.md | 37 +++++++++++++++++++++++++++++++++++ tools/supply-chain-lock.json | 13 +++++++++++- 3 files changed, 56 insertions(+), 1 deletion(-) create mode 100644 .release/v2.3.0-highlights.md create mode 100644 .release/v2.3.0.md diff --git a/.release/v2.3.0-highlights.md b/.release/v2.3.0-highlights.md new file mode 100644 index 0000000..1a851e2 --- /dev/null +++ b/.release/v2.3.0-highlights.md @@ -0,0 +1,7 @@ +### Highlights + +- **Subagents work in the background**: they return their session ID straight away and report back when idle, so you keep working in the parent session. +- **Quieter transcripts**: each run of tool calls and thoughts collapses into one activity row; set verbosity to `medium` or `high` to see every step again. +- **A new renderer**: OpenTUI 0.8.4, still built for bionic against Zig 0.17. +- **Shell commands survive handoffs**: output is kept when a command is interrupted, and a timed-out command can move to the background behind `shell_timeout_background`. +- **Remote local models list faster**: Ollama, LM Studio and vLLM discovery waits 15 seconds per request instead of 1. diff --git a/.release/v2.3.0.md b/.release/v2.3.0.md new file mode 100644 index 0000000..21c8989 --- /dev/null +++ b/.release/v2.3.0.md @@ -0,0 +1,37 @@ +# OpenCode 2.3.0 for Termux + +The first release after 2.2.7. Upstream skipped 2.2.8, so this is a normal minor bump: subagents now run in the background, the transcript folds tool calls behind one row, and the TUI moves to OpenTUI 0.8.4. The package is unchanged in shape — the same bundle on Termux's own `bun`, the same `apt` and `install.sh` paths. + +## What changed upstream (2.2.7 → 2.3.0) + +- **Subagents run in the background**: a subagent returns its session ID immediately, keeps working, and reports to the parent whenever it goes idle. Several can run at once while you keep typing in the parent session, and a subagent that goes idle with its own background work still running says so instead of looking finished. +- **Quieter transcripts by default**: each run of tool calls and thoughts collapses into one activity row. Verbosity now defaults to `low`; set **Verbosity** to `medium` or `high` in settings, or `session.verbosity` in the TUI config, to see every step. An existing setting is kept. +- **Shell commands survive handoffs**: they keep their output when interrupted, and a command whose timeout expires can move to the background behind the `shell_timeout_background` flag. +- **Local model discovery is more patient**: Ollama, LM Studio and vLLM get 15 seconds per request instead of 1, so remote or tunnelled endpoints list their models and a slow endpoint no longer delays the rest. +- **Providers can present a client certificate** for gateways that require mutual TLS, with `settings.tls` accepting `{file:}` and `{env:}` like `apiKey`. +- **Code Mode returns simpler results**: `write` and `edit` return their confirmation as a string, `patch` returns an empty result, and `skill` returns the skill directory and content. Calling a namespace as if it were a tool now suggests up to three real tools under it. +- **MCP events** are available experimentally behind the `mcp_events` flag. +- **Also**: agents are told when a session is a fork, tool output truncation keeps the beginning of the output, tail reads no longer load the whole file, case-only renames in patches work on case-insensitive filesystems, and plugin-provided themes update live. + +Desktop-only changes in 2.3.0 (Jump to message, the Recent and customizable session sidebars, Mermaid zoom, queued-prompt shortcuts) do not apply to this Termux build. + +## What changed in this Android build + +- **OpenTUI 0.8.4** replaces 0.8.1. It is still built here for bionic against Zig 0.17.0 with the same `--libc` schema and the `limits.h` shadow, and one stripped renderer asset still ships instead of the four Bun emits. +- **The package is unchanged**: the same bundle at `$PREFIX/lib/opencode/` with a launcher at `$PREFIX/bin/opencode`, still run by Termux's `bun` with `bun`, `libc++` and `ripgrep` as declared dependencies rather than embedded ones. +- **Publishing is now one tag run**: pushing `v2.3.0` builds, verifies, signs the APT index and releases in the same workflow run, so the published files are always the ones that run built. A broken release gets a higher `package_revision` and a tag of its own (`v2.3.0-2`) instead of a silent overwrite. +- **Bionic's pointer tags still reach the FFI untouched**: the Scudo `pointer tag … was truncated` abort stays fixed. + +## Install + +```sh +pkg install bun ripgrep libc++ +curl -fsSL https://raw.githubusercontent.com/Spectra010s/opencode-termux/native-android/install.sh | sh +``` + +Or through the signed APT source, so `apt upgrade` keeps it current: + +```sh +curl -fsSL https://raw.githubusercontent.com/Spectra010s/opencode-termux/native-android/setup-apt.sh | sh +apt install opencode +``` diff --git a/tools/supply-chain-lock.json b/tools/supply-chain-lock.json index cc7a7a4..9edc71e 100644 --- a/tools/supply-chain-lock.json +++ b/tools/supply-chain-lock.json @@ -1,6 +1,6 @@ { "schema_version": 1, - "current": "2.2.7", + "current": "2.3.0", "package_revision": 1, "opencode": { "2.0.26": { @@ -32,6 +32,12 @@ "source_sha256": "493e29d872f1cd9604ef3de609f0278e093c0f8066719e4166efc6544d16f34d", "bun_version": "1.4.4", "opentui_version": "0.8.1" + }, + "2.3.0": { + "commit": "a6b15d33daf6ab7d35569f6d711fdb630b9f04e7", + "source_sha256": "61b96281d3604596829788a9e433ba61898fa4b56d3f70bd5704e48cb84f0209", + "bun_version": "1.4.4", + "opentui_version": "0.8.4" } }, "bun_pty": { @@ -72,6 +78,11 @@ "commit": "9a09079c0c7ad0fb2d55404f66a5c453204328dd", "zig_version": "0.17.0", "zig_x86_64_linux_sha256": "1cbe9df9f27e6b78d14ccbca43b6703a404ef79ef1c463de901d7f088d4e2026" + }, + "0.8.4": { + "commit": "d4a2af24ba50636da5f222367f91746a1bf89644", + "zig_version": "0.17.0", + "zig_x86_64_linux_sha256": "1cbe9df9f27e6b78d14ccbca43b6703a404ef79ef1c463de901d7f088d4e2026" } }, "source_build_bun_1_4_4": { From cec5af211ab6d4ac6c55623b306ce0489260bdcf Mon Sep 17 00:00:00 2001 From: Adeloye Adetayo Date: Thu, 19 Nov 2026 15:00:16 +0000 Subject: [PATCH 2/4] release: pin 2.3.2 and add its release notes The lock moves to upstream 2.3.2 (c0ad18b) with OpenTUI 0.8.4 unchanged, so the next tag is v2.3.2 and the package 2.3.2-1. Upstream wrapped the install-method error in a ternary, so the patcher follows that shape instead of matching the bare message. Adds .release/v2.3.2.md for the release body and .release/v2.3.2-highlights.md for the TUI banner. Neither has a preamble, same as upstream's bodies. --- .release/v2.3.0-highlights.md | 7 ------- .release/v2.3.0.md | 37 ---------------------------------- .release/v2.3.2-highlights.md | 7 +++++++ .release/v2.3.2.md | 37 ++++++++++++++++++++++++++++++++++ tools/patch-opencode-source.py | 10 +++++---- tools/supply-chain-lock.json | 8 +++++++- 6 files changed, 57 insertions(+), 49 deletions(-) delete mode 100644 .release/v2.3.0-highlights.md delete mode 100644 .release/v2.3.0.md create mode 100644 .release/v2.3.2-highlights.md create mode 100644 .release/v2.3.2.md diff --git a/.release/v2.3.0-highlights.md b/.release/v2.3.0-highlights.md deleted file mode 100644 index 1a851e2..0000000 --- a/.release/v2.3.0-highlights.md +++ /dev/null @@ -1,7 +0,0 @@ -### Highlights - -- **Subagents work in the background**: they return their session ID straight away and report back when idle, so you keep working in the parent session. -- **Quieter transcripts**: each run of tool calls and thoughts collapses into one activity row; set verbosity to `medium` or `high` to see every step again. -- **A new renderer**: OpenTUI 0.8.4, still built for bionic against Zig 0.17. -- **Shell commands survive handoffs**: output is kept when a command is interrupted, and a timed-out command can move to the background behind `shell_timeout_background`. -- **Remote local models list faster**: Ollama, LM Studio and vLLM discovery waits 15 seconds per request instead of 1. diff --git a/.release/v2.3.0.md b/.release/v2.3.0.md deleted file mode 100644 index 21c8989..0000000 --- a/.release/v2.3.0.md +++ /dev/null @@ -1,37 +0,0 @@ -# OpenCode 2.3.0 for Termux - -The first release after 2.2.7. Upstream skipped 2.2.8, so this is a normal minor bump: subagents now run in the background, the transcript folds tool calls behind one row, and the TUI moves to OpenTUI 0.8.4. The package is unchanged in shape — the same bundle on Termux's own `bun`, the same `apt` and `install.sh` paths. - -## What changed upstream (2.2.7 → 2.3.0) - -- **Subagents run in the background**: a subagent returns its session ID immediately, keeps working, and reports to the parent whenever it goes idle. Several can run at once while you keep typing in the parent session, and a subagent that goes idle with its own background work still running says so instead of looking finished. -- **Quieter transcripts by default**: each run of tool calls and thoughts collapses into one activity row. Verbosity now defaults to `low`; set **Verbosity** to `medium` or `high` in settings, or `session.verbosity` in the TUI config, to see every step. An existing setting is kept. -- **Shell commands survive handoffs**: they keep their output when interrupted, and a command whose timeout expires can move to the background behind the `shell_timeout_background` flag. -- **Local model discovery is more patient**: Ollama, LM Studio and vLLM get 15 seconds per request instead of 1, so remote or tunnelled endpoints list their models and a slow endpoint no longer delays the rest. -- **Providers can present a client certificate** for gateways that require mutual TLS, with `settings.tls` accepting `{file:}` and `{env:}` like `apiKey`. -- **Code Mode returns simpler results**: `write` and `edit` return their confirmation as a string, `patch` returns an empty result, and `skill` returns the skill directory and content. Calling a namespace as if it were a tool now suggests up to three real tools under it. -- **MCP events** are available experimentally behind the `mcp_events` flag. -- **Also**: agents are told when a session is a fork, tool output truncation keeps the beginning of the output, tail reads no longer load the whole file, case-only renames in patches work on case-insensitive filesystems, and plugin-provided themes update live. - -Desktop-only changes in 2.3.0 (Jump to message, the Recent and customizable session sidebars, Mermaid zoom, queued-prompt shortcuts) do not apply to this Termux build. - -## What changed in this Android build - -- **OpenTUI 0.8.4** replaces 0.8.1. It is still built here for bionic against Zig 0.17.0 with the same `--libc` schema and the `limits.h` shadow, and one stripped renderer asset still ships instead of the four Bun emits. -- **The package is unchanged**: the same bundle at `$PREFIX/lib/opencode/` with a launcher at `$PREFIX/bin/opencode`, still run by Termux's `bun` with `bun`, `libc++` and `ripgrep` as declared dependencies rather than embedded ones. -- **Publishing is now one tag run**: pushing `v2.3.0` builds, verifies, signs the APT index and releases in the same workflow run, so the published files are always the ones that run built. A broken release gets a higher `package_revision` and a tag of its own (`v2.3.0-2`) instead of a silent overwrite. -- **Bionic's pointer tags still reach the FFI untouched**: the Scudo `pointer tag … was truncated` abort stays fixed. - -## Install - -```sh -pkg install bun ripgrep libc++ -curl -fsSL https://raw.githubusercontent.com/Spectra010s/opencode-termux/native-android/install.sh | sh -``` - -Or through the signed APT source, so `apt upgrade` keeps it current: - -```sh -curl -fsSL https://raw.githubusercontent.com/Spectra010s/opencode-termux/native-android/setup-apt.sh | sh -apt install opencode -``` diff --git a/.release/v2.3.2-highlights.md b/.release/v2.3.2-highlights.md new file mode 100644 index 0000000..5e01366 --- /dev/null +++ b/.release/v2.3.2-highlights.md @@ -0,0 +1,7 @@ +### Highlights + +- **Timed-out commands keep running**: a shell command still running when its timeout expires moves to the background instead of being killed. +- **Subagents work in the background**: they return their session ID straight away and report back when idle, so you keep working in the parent session. +- **Quieter transcripts**: each run of tool calls and thoughts collapses into one activity row; set verbosity to `medium` or `high` to see every step again. +- **GPT-6.2 caching fixed**: the system prompt is cached from the second step, so Copilot `gpt-6.2-sol` drops from about 14,000 uncached tokens per step to 3. +- **Compaction without the wait**: the summary is written in the background, so your next prompt does not pause for it. diff --git a/.release/v2.3.2.md b/.release/v2.3.2.md new file mode 100644 index 0000000..a2bd8ae --- /dev/null +++ b/.release/v2.3.2.md @@ -0,0 +1,37 @@ +# OpenCode 2.3.2 for Termux + +## What changed upstream (2.2.7 → 2.3.2) + +- **Subagents run in the background**: a subagent returns its session ID immediately, keeps working, and reports to the parent whenever it goes idle. Several can run at once while you keep typing in the parent session, and one that goes idle with its own background work still running says so instead of looking finished. +- **Quieter transcripts by default**: each run of tool calls and thoughts collapses into one activity row. Verbosity now defaults to `low`; set **Verbosity** to `medium` or `high` in settings, or `session.verbosity` in the TUI config, to see every step. An existing setting is kept. +- **Timed-out shell commands keep running**: a command still running when its timeout expires moves to the background instead of being killed, so long builds finish and report back. The `shell_timeout_background` flag is gone, and a foreground `timeout: 0` now means the default 120 seconds. +- **Background compaction**: as a session nears automatic compaction the summary is written in the background, so the next prompt does not wait for it. Turn it off with `compaction.background: false`; an unused background summary still costs tokens. +- **GPT-6.2 prompt caching**: the system prompt is sent as a leading developer message on every Responses route — OpenAI, Copilot, Zen, Azure, OpenRouter — so it is cached from the second step. On Copilot `gpt-6.2-sol`, uncached input per step dropped from about 14,000 tokens to 3, and `/responses/compact` reads the same cached prefix. +- **GPT-6.2 with ChatGPT sign-in**: 6.2 Sol and Astra, plus their fast variants, appear in the model picker. +- **`CLAUDE.md` is read again** in any directory that has no `AGENTS.md`, with `~/.claude/CLAUDE.md` as the global fallback; `OPENCODE_DISABLE_CLAUDE_CODE` skips it. +- **Local model discovery is more patient**: Ollama, LM Studio and vLLM get 15 seconds per request instead of 1, so remote or tunnelled endpoints list their models and a slow endpoint no longer delays the rest. +- **Providers can present a client certificate** for gateways that require mutual TLS, with `settings.tls` accepting `{file:}` and `{env:}` like `apiKey`. Agents are told when a session is a fork, tool output truncation keeps the beginning of the output, and plugin-provided themes update live. +- **Code Mode returns simpler results**: `read` gives `text`, `directory` or `media` instead of base64, `write` and `edit` return their confirmation as a string, `patch` returns an empty result, and `skill` returns the skill directory and content. + +Desktop-only changes in these releases (Jump to message, the Recent and customizable session sidebars, plugin update buttons, Mermaid zoom, comment-on-selection, queued-prompt shortcuts) do not apply to this Termux build. + +## What changed in this Android build + +- **OpenTUI 0.8.4** replaces 0.8.1. It is still built here for bionic against Zig 0.17.0 with the same `--libc` schema and the `limits.h` shadow, and one stripped renderer asset still ships instead of the four Bun emits. +- **The package is unchanged**: the same bundle at `$PREFIX/lib/opencode/` with a launcher at `$PREFIX/bin/opencode`, run by Termux's `bun`, with `bun`, `libc++` and `ripgrep` declared as dependencies rather than embedded. +- **Publishing is one tag run**: pushing `v2.3.2` builds, verifies, signs the APT index and releases in the same workflow run, so the published files are the ones that run built. A broken release gets a higher `package_revision` and a tag of its own (`v2.3.2-2`) instead of a silent overwrite. +- **Bionic's pointer tags still reach the FFI untouched**: the Scudo `pointer tag … was truncated` abort stays fixed. + +## Install + +```sh +pkg install bun ripgrep libc++ +curl -fsSL https://raw.githubusercontent.com/Spectra010s/opencode-termux/native-android/install.sh | sh +``` + +Or through the signed APT source, so `apt upgrade` keeps it current: + +```sh +curl -fsSL https://raw.githubusercontent.com/Spectra010s/opencode-termux/native-android/setup-apt.sh | sh +apt install opencode +``` diff --git a/tools/patch-opencode-source.py b/tools/patch-opencode-source.py index b093372..37a9fb0 100644 --- a/tools/patch-opencode-source.py +++ b/tools/patch-opencode-source.py @@ -208,10 +208,12 @@ def main() -> None: ) replace_once( updater, - ' new Error(\n' - ' "Could not detect the installation method. Update with your package manager or download the latest release.",\n', - ' new Error(\n' - ' "Could not detect the installation method. See https://github.com/Spectra010s/opencode-termux#install for manual installation.",\n', + ' error\n' + ' ? managedMessage(error)\n' + ' : "Could not detect the installation method. Update with your package manager or download the latest release.",\n', + ' error\n' + ' ? managedMessage(error)\n' + ' : "Could not detect the installation method. See https://github.com/Spectra010s/opencode-termux#install for manual installation.",\n', ) replace_once( updater, diff --git a/tools/supply-chain-lock.json b/tools/supply-chain-lock.json index 9edc71e..5b67582 100644 --- a/tools/supply-chain-lock.json +++ b/tools/supply-chain-lock.json @@ -1,6 +1,6 @@ { "schema_version": 1, - "current": "2.3.0", + "current": "2.3.2", "package_revision": 1, "opencode": { "2.0.26": { @@ -38,6 +38,12 @@ "source_sha256": "61b96281d3604596829788a9e433ba61898fa4b56d3f70bd5704e48cb84f0209", "bun_version": "1.4.4", "opentui_version": "0.8.4" + }, + "2.3.2": { + "commit": "c0ad18b402eb2827fc1ee71c171b1177b3fc02d1", + "source_sha256": "cb6486bf0e8a5fb49b5367beca7685e45f311bfe2a38b2ad15c6a3e3bdcf8bc9", + "bun_version": "1.4.4", + "opentui_version": "0.8.4" } }, "bun_pty": { From f18ef6816d0df239856780eba5b252cc19f1f45b Mon Sep 17 00:00:00 2001 From: Adeloye Adetayo Date: Thu, 19 Nov 2026 15:40:06 +0000 Subject: [PATCH 3/4] docs: give Termux users pkg commands, not apt pkg install opencode upgrades just that package; apt upgrade walks the whole system. --- .release/v2.3.2.md | 4 ++-- README.md | 2 +- docs/ops/apt-repository.md | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/.release/v2.3.2.md b/.release/v2.3.2.md index a2bd8ae..32bfdcd 100644 --- a/.release/v2.3.2.md +++ b/.release/v2.3.2.md @@ -29,9 +29,9 @@ pkg install bun ripgrep libc++ curl -fsSL https://raw.githubusercontent.com/Spectra010s/opencode-termux/native-android/install.sh | sh ``` -Or through the signed APT source, so `apt upgrade` keeps it current: +Or through the signed APT source, so `pkg install opencode` picks up new versions: ```sh curl -fsSL https://raw.githubusercontent.com/Spectra010s/opencode-termux/native-android/setup-apt.sh | sh -apt install opencode +pkg install opencode ``` diff --git a/README.md b/README.md index e979218..bcf37e4 100644 --- a/README.md +++ b/README.md @@ -31,7 +31,7 @@ The setup script adds this project's signed source and its public key; it does n ## Upgrade -`opencode upgrade` (or its `opencode update` alias, or `/update` in the TUI) runs this project's installer for the requested version. Under APT, use `apt update && apt install --only-upgrade opencode` instead: the launcher refuses to replace a package-owned file. +`opencode upgrade` (or its `opencode update` alias, or `/update` in the TUI) runs this project's installer for the requested version. Under APT, use `pkg update && pkg install opencode` instead: the launcher refuses to replace a package-owned file. ## Uninstall diff --git a/docs/ops/apt-repository.md b/docs/ops/apt-repository.md index 8aa22e4..acf1907 100644 --- a/docs/ops/apt-repository.md +++ b/docs/ops/apt-repository.md @@ -56,7 +56,7 @@ failure here means the release is already suspect. `setup-apt.sh`. `Hash Sum mismatch` — the `Packages` file and the deb disagree, usually because -a release was replaced. `apt clean && apt update`. +a release was replaced. `apt clean && pkg update`. `404` on the deb — `Packages` points at a basename that the release does not have. Compare `Filename:` in the index with `gh release view`. @@ -74,5 +74,5 @@ version, because the index only names the newest release asset. ```sh rm -f "$PREFIX/etc/apt/sources.list.d/opencode-termux.list" rm -f "$PREFIX/etc/apt/keyrings/opencode-termux.gpg" -apt update +pkg update ``` From 0f1f2e26f9c21faeaefe4cd13717b41bc452fc18 Mon Sep 17 00:00:00 2001 From: Adeloye Adetayo Date: Thu, 19 Nov 2026 16:26:41 +0000 Subject: [PATCH 4/4] test: match installer checks to libc++ dependency --- tests/unit/install-deps.bats | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/tests/unit/install-deps.bats b/tests/unit/install-deps.bats index a969d7e..e180570 100644 --- a/tests/unit/install-deps.bats +++ b/tests/unit/install-deps.bats @@ -2,7 +2,7 @@ # Unit tests for install.sh's runtime dependency handling. # # 2.2.7 runs on Termux's bun package instead of shipping a compiled ELF, so bun -# and ripgrep are real dependencies: the installer must install them through +# ripgrep and libc++ are real dependencies: the installer must install them through # pkg rather than handing the user a second command to run. load '../lib/helper' @@ -50,31 +50,33 @@ teardown() { clean_tmpdir } -@test "installs missing bun and ripgrep through pkg" { +@test "installs missing bun, ripgrep and libc++ through pkg" { run env PATH="$TOOLS" "$BASH_BIN" "$INSTALLER" - [[ "$output" == *"Installing dependencies: bun ripgrep"* ]] - [ "$(cat "$TEST_TMPDIR/pkg-args")" = "install -y bun ripgrep" ] + [[ "$output" == *"Installing dependencies: bun ripgrep libc++"* ]] + [ "$(cat "$TEST_TMPDIR/pkg-args")" = "install -y bun ripgrep libc++" ] } @test "skips pkg when the caller opts out" { run env PATH="$TOOLS" OPENCODE_INSTALL_DEPS=0 "$BASH_BIN" "$INSTALLER" [ "$status" -eq 1 ] - [[ "$output" == *"opencode needs: bun ripgrep"* ]] - [[ "$output" == *"pkg install bun ripgrep"* ]] + [[ "$output" == *"opencode needs: bun ripgrep libc++"* ]] + [[ "$output" == *"pkg install bun ripgrep libc++"* ]] [ ! -e "$TEST_TMPDIR/pkg-args" ] } @test "reports the manual command when pkg itself fails" { run env PATH="$TOOLS" PKG_STATUS=1 "$BASH_BIN" "$INSTALLER" [ "$status" -eq 1 ] - [[ "$output" == *"Run it yourself: pkg install bun ripgrep"* ]] + [[ "$output" == *"Run it yourself: pkg install bun ripgrep libc++"* ]] } -@test "does not install anything when both are already present" { +@test "does not install anything when all dependencies are already present" { for tool in bun rg; do printf '#!/bin/sh\nexit 0\n' > "$TOOLS/$tool" chmod 0755 "$TOOLS/$tool" done + mkdir -p "$PREFIX/lib" + : > "$PREFIX/lib/libc++_shared.so" run env PATH="$TOOLS" "$BASH_BIN" "$INSTALLER" [[ "$output" != *"Installing dependencies"* ]] [ ! -e "$TEST_TMPDIR/pkg-args" ]