Repository navigation
Orca v0.5.25
Orca v0.5.25
Orca keeps replies cut short by Esc or the output limit, shows provider retries as they happen, and tells you when opening a saved session requires a newer version.
Changes
- Keep a reply cut short. If you press Esc after the model has written visible text, the reply stays on screen with
(interrupted). At the output limit it stays with(stopped at the output limit). You can ask the model to continue, even after resuming the session. Orca drops unfinished tool calls, and ACP clients keep the text they already received without a reload or duplicate reply. The turn still endsCancelledorFailed, respectively, with the same exit code as before. - See when a provider retry will run. The terminal status line shows
Retrying in <n>s (attempt <k> of <max>): <reason>, including any shared cooldown in the wait.orca exec --output-format jsonlreportsprovider.retrywithattempt,max_attempts,delay_ms,kindandreason. The attempt count reflects HTTP sends already made. After a successful retry,context.updatedshows that request's input tokens.usage.updatedand cost budgets still include usage reported by failed attempts. - Know when a session needs a newer Orca. The picker shows
Newer version(newer_version) when a transcript uses a higherschema_versionor contains an unrecognized required record. Resume, fork, rename and export refuse the session withplease upgrade Orca to open it. - Background commands report completion during the turn. The model sees the notice at the next step where its tool calls have settled. If the model is giving its final answer, the notice waits for the next turn. It includes up to the last 8 KiB of output and tells the model which
task_idandcursorto pass totask_read_outputfor earlier output still on hand. Orca skips the notice whentask_waitortask_read_outputhas already returned the final status to the model, or the model has calledtask_stop. - MCP server instructions reach the model. The
instructionsreturned by a server'sinitializecall go in a separate system message after Orca's internal context. Each<mcp_server_instructions>block applies to that server's tools and resources. Orca limits the text to 32 KiB per server and the message to 64 KiB and 4,096 tokens. The instructions arrive with the server's tools, including for child agents, and are withdrawn if the connection is invalidated.
Fixes
- DeepSeek errors use the HTTP status. HTTP 429 is
RateLimit, 5xx isServer, and a context-length 400 or 413 isContextExceeded. A number in the error text, such as5000 tokens, no longer triggers a retry on its own. A rejected key readsDeepSeek rejected the API key. A balance refusal readsDeepSeek reports an insufficient account balance. HTTP diagnostics are redacted and bounded to 4 KiB, with(HTTP <status>, request id <id>)when both values are available. - Orca's tools keep their places under DeepSeek's cap. Built-in and configured external tools take priority, and MCP tools fill the remaining places in name order. At startup, Orca warns if the available tools can exceed the limit. With no external tools configured, it estimates how many MCP tools may be omitted and points to
disabled_toolsandenabled_tools. When the list of omitted tools changes and is nonempty, Orca reports the count and up to the first three names inDeepSeek request left out <count> tools: <names>. The request limit is 128. - A stopped
run_scriptkeeps its log. When a script reaches its time or memory limit, the result includes the lines it logged before stopping, up to the usual output limit. editandwrite_filepreserve CRLF.editmatches multiline text with normalized line endings in a file whose line endings are mostly CRLF, then writes CRLF back. When overwriting a file,write_filechecks for a CRLF majority in the first 64 KiB to choose the line endings.- Session listings and search honor the transcript. Listings refresh outdated index entries in batches before applying filters, and search skips unrecognized records marked
"ignorable": true. A transcript with a repeated top-level key or missing metadata is marked unhealthy.
Compatibility
- Session health and records. Consumers of session listings may see
newer_version. Orca 0.5.25 skips unknown records marked"ignorable": trueand preserves their bytes and position on rewrite or export. A fork copies the records Orca understands. Orca 0.5.24 and earlier refuse sessions containing those unknown records, even with the flag.session.metanow accepts unknown fields. Changes that require a newer reader still raiseschema_version. - Provider events and errors. The new JSONL event
provider.retryis live only and leaves session files unchanged.ProviderErrorcan includehttp_statusandrequest_id, which are omitted when unavailable. - Kept replies. A cut-short assistant reply is recorded as an ordinary completed response with an optional
cut_shortfield that older Orca versions ignore. In JSONL,model.response.completedcarriescut_shortasinterruptedoroutput_limit. - MCP requests. DeepSeek's 128-tool limit now gives Orca's own tools priority. The separate MCP instructions message changes request bytes only for sessions whose MCP servers send instructions.
- Prompt cache. The system prompt now says
A background command's completion is reported at your next step in this turn, or when the next turn starts.This changes the cached prompt prefix once after upgrading for every session that receives the shell-command guidance, including default sessions.
Verification
Regression tests cover reading and rewriting newer session records, retry timing and usage, background-command notices in the next model request, and replaying a kept reply with the v0.5.23 record format. Tests also cover CRLF writes, stopped-script logs and MCP tool selection. Release gates run with framework retries disabled. Linux and native Windows x64/ARM64 checks must pass on the final main commit before tagging.
cargo check
env -u NODE_OPTIONS node scripts/release/verify-version-sync.mjs
env -u NODE_OPTIONS npm --prefix site ci
env -u NODE_OPTIONS npm --prefix site run build
env -u NODE_OPTIONS npm --prefix site run check:seo
cargo fmt --all -- --checkUpgrade
npm install -g @blade-ai/orca@0.5.25
orca --versionOr install the native binary with the installer on https://orcaagent.dev/.