Skip to content

v0.15.0

Choose a tag to compare

@github-actions github-actions released this 17 Oct 20:30
· 301 commits to main since this release

Added

  • OpenRouter's reasoning shows on transport: 'native'. The openrouter dialect reads the reasoning_details that OpenRouter sends, streamed or not. Each entry's text reaches on_chunk as reasoning chunks, so Zed's thought block and fascicle/ui show what the model reasoned, and each entry becomes a reasoning part that carries the entry itself. Before this, the dialect counted reasoning tokens and showed nothing.
  • A tool loop sends each model its own reasoning back, on both transports. AssistantContentPart gains a reasoning kind, and every kind takes provider_options, the data that its provider wants back (a thinking block's signature, an OpenRouter reasoning entry, Gemini's thought signature on a tool call), keyed by provider name. TurnResult.content holds a turn's parts in the order that the provider sent them, and the loop builds the next assistant message from it. openrouter native sends its entries back as reasoning_details, anthropic native sends each thinking and redacted_thinking block back as it came, and the ai_sdk transport gives every part's providerMetadata back as its providerOptions. Each provider gets back only the reasoning keyed with its own name, so a fallback never hands one vendor's signature to another. Until now every transport dropped a turn's reasoning between steps, so a Claude loop lost its thinking without a word and a Gemini 3 loop could be refused. ProviderOptions, the shape that every part's provider_options takes, is a named export now, and docs/providers.md gains a Reasoning in a Tool Loop section.
  • OpenRouter's reported charge becomes the step's cost. On transport: 'native', the openrouter dialect reads the cost that OpenRouter reports on every response into TurnResult.reported_cost_usd, and the loop records it as the step's cost, split across input, output, and cache tokens by their weight, with the cost event's source set to 'provider_reported'. A BYOK request counts the provider's charge (cost_details.upstream_inference_cost) as well as OpenRouter's fee. GenerateResult.cost, cost events, and every budget built on them now work on OpenRouter, where each step used to emit pricing_missing and record no cost. A reported charge wins over a pricing row, and provider_reported.openrouter keeps cost, is_byok, and cost_details as OpenRouter sent them.
  • A custom ai_sdk adapter can hand effort to the SDK and keep its reasoning. EffortTranslation gains reasoning, a level for the AI SDK's own reasoning option, and AiSdkProviderAdapter gains metadata_key, the key that its package writes providerMetadata under, which defaults to name. A custom adapter over @ai-sdk/anthropic that runs under a name of its own sets metadata_key: 'anthropic', or its reasoning stays behind.
  • examples/acp-coder takes --effort <level>. It's unset by default, because Claude Sonnet 5.5 decides on its own when to think and OpenRouter returns a summary of it, so Zed already shows a thought block. --effort high asks for more thinking, more often. An unknown level stops the agent at startup with a message that lists the levels it takes.
  • workspace_tools takes search_timeout_ms. Every search had the same 30 seconds to finish, and a repository that's too large to search in that time can now have longer. The budget is still what turns a pattern stuck backtracking into a tool error that the model can act on, and 30 seconds stays the default.
  • A read, a listing, and a search show their results on their cards. read_file, list_files, and search cards used to close with rawOutput alone, so Zed showed the call's title and nothing under it. Each card now closes with the text that the model read, in a code block whose fence outruns any backtick run in it, the way Claude Agent shows a read. A listing or a search goes in a code block as well, where Claude Agent shows plain text, because a matching line can hold markdown that Zed would render. rawOutput stays for the hosts that read it, and a failed call keeps its error text.

Changed

  • anthropic native sends effort as adaptive thinking. Effort low through max becomes thinking: { type: 'adaptive', display: 'summarized' } and output_config: { effort }, with the level as it is, in place of a thinking budget, and effort none sends neither. The max_tokens default keeps its numbers, and sampling parameters still apply only with effort none. A model older than Claude 4.6 refuses adaptive thinking, so effort on those models stops working on native. Set effort: 'none' and pass a budget as provider_options.anthropic.thinking, or use the ai_sdk transport, whose peer still sends those models a budget.
  • Effort on the ai_sdk transport goes through the AI SDK's own reasoning option. anthropic, bedrock, google, and openai hand the level to generateText and streamText and build none of it into their provider options, so each provider package maps it per model from a table that it keeps, and Fascicle's budget tables and its OpenAI clamp are gone. That changes what some levels send. Claude 4.6 and later get adaptive thinking with an effort on anthropic and bedrock, Gemini 3 gets a thinkingLevel and Gemini 2.5 a budget that the peer works out, and OpenAI gets xhigh and max as they are, where they used to clamp to high. The Anthropic and Bedrock peers, and Google's for Gemini 3, have no mapping for max, so a call at max runs at the model's default effort, with an SDK warning that Fascicle doesn't surface. openrouter still sends reasoning: { effort }, and a caller's provider_options still merge over the translation.
  • openrouter native sends effort as reasoning: { effort }. It used to send the flat reasoning_effort, clamped to high, and now sends the nested object that the ai_sdk transport sends, with every level passed through. An override in provider_options.openrouter.reasoning_effort should move to reasoning, which replaces the derived object whole. openai and lmstudio native still send the flat field.
  • AssistantContentPart has a third kind. Code that treats an assistant message's parts as text or else a tool call, in a custom native adapter or a prepare_step hook, now sends a reasoning part down its tool-call branch. TypeScript catches most of it, since a reasoning part has no id. Give reasoning a branch of its own that drops the part unless it carries your own provider's key. An assistant turn that carries reasoning or provider data also reaches history as an array of parts even when it called no tools, where it used to be a string.
  • OpenAI on ai_sdk sends references to its stored responses in a tool loop. The loop now gives the Responses API's item ids back, so while store is on, @ai-sdk/openai sends each earlier part as a reference to the stored response instead of its content, which is what keeps OpenAI's reasoning across a loop. An organization whose responses aren't stored sets provider_options.openai.store: false, and the peer sends the content and the encrypted reasoning itself.
  • list_files returns at most 1,000 paths a call. Past that, it returns the first 1,000 in sorted order and a note with the total, in the form that read_file and search already use, so the model knows to narrow its pattern or path. A listing of a very large repository used to come back whole, however much of the context it took. The tool's description states the cap.
  • write_file and edit_file refuse a file over a megabyte. Both read the whole file that they change, to show the change as a diff, and a diff carries that text twice, with the card's closing update carrying it a third time. A file over 1,000,000 bytes is now refused from its size before it's opened, with a message that points the model at run_command, and the permission prompt shows the refusal in place of the diff. A file at the limit works as before.
  • fascicle/mcp exports ServeFlowConfig in place of ServeFlowOptions. Fascicle names the type of a required argument *Config and an optional one *Options, and serve_flow's argument is required, so the type and the parameter are both config now. The old name goes without an alias, since the surface is pre-1.0, so code that imports ServeFlowOptions imports ServeFlowConfig instead.

Fixed

  • A turn's history keeps reply text apart across a tool card. The text before a tool call and the text after it were recorded with nothing between them, so the next turn's history read "...tool calls.All tests pass". The second run now starts on a blank line. What the client is sent is unchanged, since Zed already shows the two runs as separate messages.
  • examples/pr-improve's edit_file writes a replacement as the model gave it. When find matched once, the tool replaced it with String.prototype.replace, which reads $&, $$, and their kin in the replacement as patterns even when the search is a plain string. A shell snippet or a regular expression that the model wrote into a file was changed on its way in. A single match now splits and joins the way replace_all already did, and the way fascicle/acp's edit_file does.
  • anthropic native finishes a turn that OpenRouter streams. OpenRouter's Anthropic-compatible Messages endpoint ends every stream the way a chat-completions stream ends, with a data: [DONE] line after message_stop. The adapter read that line as an event that wasn't JSON and failed a turn that had already arrived in full. It now skips the line, and any other data that isn't JSON still fails the turn.
  • Effort works on current Claude models, on every transport. Every Claude model from 4.7 on refuses thinking: { type: 'enabled', budget_tokens } with a 400, and that's what anthropic native, anthropic on ai_sdk, and bedrock all sent for any effort but none. Each one now sends adaptive thinking with an effort, as the Changed entries above describe.
  • A failure that a compatible server reports mid-stream says what went wrong. OpenRouter reports an error that happens after a stream started as a frame with a top-level error, under the HTTP 200 that the stream began with. The core ignored that frame, so the turn failed as a truncated stream or a missing usage object, and OpenRouter's message was lost. It now throws a provider_error that carries the server's message, with the error's code as status when the code is a number, on every dialect. Before any chunk has streamed, a 429 or a 5xx retries the way the same HTTP status does, and after one, the turn fails as a stream interruption that names the message.

Internal

  • A live reasoning check, src/engine/__tests__/live/live_reasoning.test.ts, runs a three-step tool loop on OpenRouter, and on Claude through OpenRouter's Messages endpoint, and asserts that each request carries the last turn's reasoning back and that each OpenRouter run's cost matches the charges it reported. It's opt-in (LIVE_TESTS=1 and OPENROUTER_API_KEY), so pnpm check skips it.
  • The live smoke gains Claude Sonnet 5.5 on anthropic native and on ai_sdk, both through OpenRouter, and each of its cases names its provider beside the model id. CONTRIBUTING.md names the key for both.