Skip to content

Commit 29dc58f

Browse files
authored
Merge branch 'main' into fix/moonshot-provider-fixes
2 parents 194066f + 116b70e commit 29dc58f

42 files changed

Lines changed: 334 additions & 159 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
---
2+
"zoo-code": patch
3+
---
4+
5+
Fix Anthropic provider silently replacing a custom/unrecognized `apiModelId` with the hardcoded default model.
6+
7+
`AnthropicHandler.getModel()` coerced any `apiModelId` not present in the static `anthropicModels` table down to `anthropicDefaultModelId` ("claude-sonnet-4-5"), and that coerced id was what actually got sent as `model` in the API request -- silently ignoring a user-configured custom model name (e.g. a custom Anthropic-compatible deployment or proxy). This produced confusing "model does not exist" errors for the default model instead of the model the user actually selected (#418).
8+
9+
The same fallback also affected capability lookups used to build the `thinking` request parameter: an unrecognized id fell back to the default model's info, which can be from an older model generation with a different API contract, causing the request to use the legacy `thinking: {type: "enabled", budget_tokens}` shape and get rejected with a 400 by models that require `{type: "adaptive"}`.
10+
11+
The model id sent to the API now always honors a user-configured `apiModelId`. For unrecognized values, capabilities are best-effort guessed by matching known model-family substrings (mirroring the existing `BedrockHandler.guessModelInfoFromId` heuristic) instead of defaulting to `anthropicDefaultModelId`'s info.

CHANGELOG.md

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,24 @@
11
# Zoo Code Changelog
22

3+
## [3.68.0]
4+
5+
### Minor Changes
6+
7+
- Add Friendli provider with GLM-5.2 support for another hosted way to use the latest GLM model (#722 by @Lee-Si-Yoon, PR #721 by @Lee-Si-Yoon)
8+
- Add native thinking/reasoning support for Ollama models to preserve reasoning output end-to-end (#831 by @navedmerchant, PR #832 by @navedmerchant)
9+
- Fix(anthropic): honor custom `apiModelId` selections instead of silently defaulting to `claude-sonnet-4-5` (#418 by @tatianadenel-devops, #843 by @grizmin, PR #842 by @grizmin)
10+
- Fix(ollama): correctly handle tool results and prevent premature context condensing (#847 by @navedmerchant, PR #848 by @navedmerchant)
11+
- Improve Anthropic Vertex Claude content block handling for more reliable responses (#788 by @daewoongoh, PR #789 by @daewoongoh)
12+
- Fix(task-lifecycle): preserve the parent-child link when a delegated subtask is interrupted (#560 by @edelauna, PR #787 by @edelauna)
13+
- Refactor: remove the deprecated `openai-error-handler` shim and use the shared `error-handler` directly (#766 by @daewoongoh, PR #767 by @daewoongoh)
14+
- Feat(nightly-publish): publish Open VSX pre-releases and skip nightly publish on release merges (#784 by @edelauna, PR #790 by @edelauna)
15+
- Fix(ci): don't skip fork-PR label reconciliation on scheduled and manual runs (PR #234 by @app/roomote)
16+
- Fix(label-pr-review-state): detect merge conflicts and label PRs with `has-conflicts` (PR #269 by @app/roomote)
17+
- Chore(deps): update the `github/codeql-action` digest to `411c4c9` (PR #803 by @app/renovate)
18+
- Chore(deps): update `@types/react` to `v18.3.31` (PR #805 by @app/renovate)
19+
- Chore(deps): update `axios` to `v1.18.1` (PR #806 by @app/renovate)
20+
- Chore: merge the v3.66.0 release preparation branch into `main` (PR #795 by @navedmerchant)
21+
322
## [3.66.0]
423

524
### Minor Changes

README.md

Lines changed: 9 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -53,22 +53,15 @@
5353
You can find a quick guide for migrating from Roo Code to Zoo Code in the [Roo→Zoo migration guide](https://docs.zoocode.dev/roo-to-zoo-migration). We plan to try and help users as they transition over, we have our [Reddit](https://www.reddit.com/r/ZooCode) and [Discord](https://discord.gg/VxfP4Vx3gX)
5454
for this exact support, so if you are having problems or if you have question, jump on and ask.
5555

56-
## What's New in v3.66.0
57-
58-
- **Claude Sonnet 5 support** — the latest Claude model is now available across Anthropic, Bedrock, and Vertex providers
59-
- **Semble v0.4.1 upgrade** — flattened result parsing and localized status messages
60-
- **Task-lifecycle status transition guard** — a new status transition guard and startup delegation reconciliation prevent invalid task state transitions
61-
- Fix: LiteLLM cache key collision and silent fallback to a non-existent default model
62-
- Fix: reliable auto context condensing for the VS Code Language Model API
63-
- Fix: ThinkingBudget now supports `xhigh` and all extended reasoning effort values
64-
- Fix: round-trip DeepSeek `reasoning_content` in thinking mode to prevent 400 errors
65-
- Fix: base64-encode Gemini `thoughtSignature` bypass token to fix the Vertex AI empty-response loop
66-
- Fix: provider cache reset after settings import
67-
- Fix: atomically serialize `reopenParentFromDelegation`
68-
- Fix: shell default profile name type guard
69-
- Security: dependency-review, invisible-char detection, and least-privilege workflow permissions
70-
- Upgrade `@anthropic-ai/sdk` to 0.104.1 and `@anthropic-ai/vertex-sdk` to 0.17.1
71-
- Dependency and tooling updates
56+
## What's New in v3.68.0
57+
58+
- **Friendli provider with GLM-5.2 support** — use the latest GLM model through Friendli.
59+
- **Native Ollama thinking/reasoning support** — preserve reasoning output end-to-end when you use Ollama models.
60+
- **Anthropic custom `apiModelId` fix** — custom Anthropic model IDs now stay selected instead of silently falling back to `claude-sonnet-4-5`.
61+
- Fix: Ollama provider tool result handling and premature context condensing.
62+
- Fix: preserve the parent-child task link when a delegated subtask is interrupted.
63+
- Improve Anthropic Vertex Claude content block handling for more reliable responses.
64+
- CI, nightly publishing, and dependency/tooling updates.
7265

7366
<details>
7467
<summary>🌐 Available languages</summary>

locales/ca/README.md

Lines changed: 9 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

locales/de/README.md

Lines changed: 9 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

locales/es/README.md

Lines changed: 9 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

locales/fr/README.md

Lines changed: 9 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

locales/hi/README.md

Lines changed: 9 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

locales/id/README.md

Lines changed: 9 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

locales/it/README.md

Lines changed: 9 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)