mirror of
https://github.com/hasso5703/alzeo.git
synced 2026-12-05 20:34:17 +01:00
CHANGELOG v1.59.1, docs/opencode.md: opencode's free models in the Agent tab again
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
ade00a01bb
commit
6bb89fbf96
2 files changed
+27
-1
No files matched your search
+2
-1
@@ -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.
|
||||
|
||||
Reference in new issue
Block a user