From 6bb89fbf96ea5ca9f2fa7d19b64ec8bf0632eefe Mon Sep 17 00:00:00 2001 From: Hasan Basbunar Date: Wed, 25 Nov 2026 17:55:07 +0100 Subject: [PATCH] CHANGELOG v1.59.1, docs/opencode.md: opencode's free models in the Agent tab again Co-Authored-By: Claude Opus 5.5 --- CHANGELOG.md | 25 +++++++++++++++++++++++++ docs/opencode.md | 3 ++- 2 files changed, 27 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index c9ac95ed..336efd11 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,30 @@ # Changelog +## v1.59.1 (2026-11-25): opencode's free models in the Agent tab again + +On OpenCode 2, the Agent tab's model picker no longer listed opencode's own hosted provider and its free models +(big-pickle and the others), which 1.x lists beside the box's lanes: from v1.56.0, the config install.sh generates for +OpenCode 2 denied that provider (`policies`, `provider.use` on `opencode`), a choice nobody had made. As in 1.x, for +everyone (decision 1595, 2026-11-25). + +- **The generated config denies no provider**: opencode's hosted provider is listed again with its free models (ten on + 2026-11-25) beside this box's, in the Agent tab and in `oc`. The default model and the small model stay the box's + lane, so nothing leaves the box unless a cloud model is picked by hand. Measured on 2.3.2 in a sandbox, with a trap + in the hosted provider's place: a session on the default model sent its turn, its title and its compaction to the + box's provider and nothing to the trap; a turn on `opencode/big-pickle` picked by hand reached the trap, its title + still went to the box's provider; and a real call to `opencode/big-pickle` answered. +- **An update takes the deny out of the copy**: a fresh install of v1.56.0 to v1.59.0 copied the generated config, + deny included, as the user's global config, which opencode reads too (measured: with the deny there, the free models + stay hidden whatever the generated config says). `oc-merge-limits.py --remove-provider-deny` takes it out when + `policies` holds exactly that deny, after a backup; a policy of your own stays, and the install says so. The Agent + tab's server restarts on that change, as on any change of either config. +- **To keep them out**: `"disabled_providers": ["opencode"]` in `~/.config/opencode/opencode.json`. 2.x reads it as + the same deny (`config/normalize.ts` of 2.3.2), 1.x as it always has, and no install touches that key. +- Unchanged: `share: "disabled"`, `websearch: false`, `update: "disable"` and the shell and webfetch deny rules of the + generated config; the config purge of `uninstall.sh --yes` still counts a copy holding the old deny as this box's. + +Docs: docs/opencode.md (the OpenCode 2 section). + ## v1.59.0 (2026-11-24): the Inkling 2 Mini lane on SGLang, its KV cache holding its whole 1M window Thinking Machines' Inkling 2 Mini (Apache-2.0, released on 2026-11-20) becomes a lane of every box, as the other lanes diff --git a/docs/opencode.md b/docs/opencode.md index b1f66ba7..cf0fcf1b 100644 --- a/docs/opencode.md +++ b/docs/opencode.md @@ -133,7 +133,8 @@ What the 2.x server is, measured on 2.3.0 on this box (the binary, its answers a - the unit's `ExecStart` says `--print-logs --log-level info`: 2.x refuses the capitals 1.x wants (`Invalid value for flag --log-level: "INFO"`), so the flag's case follows the major. - the health probe is `GET /api/info`, JSON behind the Basic auth, and it must be read as JSON: `/global/health` answers the app's HTML page with a 200 on 2.x (the 1.x health route), so a probe that takes any 200 certifies a dead server. - `/api/config`, `/api/provider`, `/api/model` answer the provider options after resolving `{file:...}`: the box's API key came back in clear on each of them, and `/api/credential` carries stored secrets too. The Agent relay reads these answers, scrubs every secret and refuses what it cannot read (compressed, not JSON, oversized), and asks for identity encoding to begin with. A path is classified after normalizing it, because the server's router answers `/api//config` and `/foo/../api/config` as `/api/config`. -- the generated 2.x config adds what the 2.x defaults would otherwise leave open: `policies` denying `provider.use` on the `opencode` provider (without it its free cloud models answer on `/api/model`, and an agent with no provider named goes there), `share: "disabled"`, `websearch: false`, `update: "disable"`, and the `permissions` array (this repo's exfiltration denies, last-match-wins, kept under `--auto`, measured 2026-11-14). Those v2 keys are written only under the v2 choice: 1.19.5 will not start with a `permissions` key in its config. +- the generated 2.x config adds what the 2.x defaults would otherwise leave open: `share: "disabled"`, `websearch: false`, `update: "disable"`, and the `permissions` array (this repo's exfiltration denies, last-match-wins, kept under `--auto`, measured 2026-11-14). Those v2 keys are written only under the v2 choice: 1.19.5 will not start with a `permissions` key in its config. +- opencode's own hosted provider stays listed, with its free models (big-pickle and the others: ten on 2026-11-25), beside this box's providers, in the Agent tab and in `oc`, as 1.x always listed it. From v1.56.0 to v1.59.0 the generated 2.x config denied it (`policies`, `provider.use` on `opencode`) and the free models were gone from the picker; since v1.59.1 no provider is denied (decision 1595, 2026-11-25), and an update takes that exact deny out of your global config, where a fresh install of those releases had copied it (`oc-merge-limits.py --remove-provider-deny`; a policy of your own stays). Nothing leaves the box unless you pick a cloud model: the default model and the small model are this box's lane, which serves every session's turns, its title and its compaction (measured on 2.3.2 in a sandbox, with a trap in the hosted provider's place: nothing reached it until a cloud model was picked by hand, and even then the session's title stayed on the box). To keep the hosted provider out, put `"disabled_providers": ["opencode"]` in `~/.config/opencode/opencode.json`: 2.x reads it as that same deny (`config/normalize.ts` of 2.3.2), 1.x as it always has, and no install touches it. - the approvals the unit injects ride `OPENCODE_CONFIG_CONTENT`, which the server merges last (it is the document without a path in `/api/config`); the Agent panel reads the served documents, with the server's own matcher (`oc-permissions.py`, read in 2.3.0's bundle: `*` any run, `?` exactly one character, brackets and dot literal, whole-text match), and says in its guard line whether the exfiltration denies still deny. - 2.x reads neither `OPENCODE_PERMISSION` nor `OPENCODE_EXPERIMENTAL_OUTPUT_TOKEN_MAX` (dead names in the unit would lie): the output cap is the model's `limit.output`, which the table writes as 32,000, measured on the build's own requests. - since 2.3.1, 2.x reads `CLAUDE.md` of every directory without an `AGENTS.md`, and `~/.claude/CLAUDE.md` as the global fallback, into every prompt (measured on 2.3.2 in a sandbox: both files land in the system message of each request). On a box that is the owner's private file leaving in every Agent tab prompt, so the 2.x unit and the 2.x `oc` launcher both set `OPENCODE_DISABLE_CLAUDE_CODE_PROMPT=1`, the documented switch read at server start (`packages/cli/src/server-process.ts` of 2.3.2; `0` is not truthy there, so it can be brought back by hand). The 1.x unit and launcher are unchanged.