1897 Commits
Author SHA1 Message Date
BellmanandWatch 0492eb3aa5 release: v0.1.16 (#3411)
- Bump version 0.1.15 -> 0.1.16
- Add CHANGELOG entry for #3410 hook BrokenPipe fix

Co-authored-by: Watch <watch@local>
v0.1.16
2026-11-27 20:46:25 +00:00
Jay Pokale 365fa14cf8 fix(runtime): tolerate BrokenPipe when writing the hook payload to stdin (#3410)
A hook that exits without reading all of its stdin closes the pipe while
CommandWithStdin::output_with_stdin is still writing the JSON payload.
The write fails with BrokenPipe, and the error was propagated, so the hook
was reported as "failed to start ...: Broken pipe (os error 32)" even
though it ran and exited normally. A failed PreToolUse hook then denies
the tool call, and a failed PostToolUse hook marks the tool result as an
error.

Any payload larger than the pipe buffer (64 KiB on Linux) triggers it for
a hook that does not read stdin. The payload carries tool_input twice, so
a write_file of about 40 KB is enough.

plugins/src/hooks.rs already tolerates BrokenPipe for the same reason
(ROADMAP #25). Apply the same handling to the runtime hook runner, and
add a regression test.
2026-11-27 20:34:02 +00:00
Bellmanandclawdbot 0210856f6b docs(changelog): correct v0.1.15 gateway docs attribution (#3409)
Co-authored-by: clawdbot <clawdbot@ultraworkers.dev>
2026-11-27 05:10:42 +00:00
BellmanandWatch 52bbfccb2a release: v0.1.15 (#3408)
Co-authored-by: Watch <watch@local>
v0.1.15
2026-11-27 04:17:06 +00:00
tree-zbyandtree-zby 41837f8d82 feat(api): allow hosts to add outbound headers to model requests (#3407)
Adds an optional per-client ExtraHeadersHook. Hosts that need routing, quota or cache-affinity metadata can install it with with_extra_headers_provider on AnthropicClient, OpenAiCompatClient or ProviderClient; headers are applied inside send_raw_request after the JSON body is built.

There is no global state and no behaviour change when no provider is installed. count_tokens does not go through send_raw_request, so it stays unannotated. Transport-owned headers and malformed names/values are dropped, so a broken hook cannot rewrite credentials or fail a call.

Co-authored-by: tree-zby <203675912+tree-zby@users.noreply.github.com>
2026-11-27 04:04:54 +00:00
BellmanandWatch 1849213241 test(runtime): give bash unit tests a realistic timeout on slow Windows ARM runners (#3406)
- Increased timeout from 1_000ms to 30_000ms in executes_simple_command,
  disables_sandbox_when_requested, and prevents_stdin_hangs_by_redirecting_to_null
  tests to account for git-bash cold start delays on Windows ARM runners
- Added clear error message to executes_simple_command assertion that includes
  stderr for better debugging of future timeout failures
- Fixes CI flake: ultraworkers/claw-code ca875261 run 45476362842 and 578e910b run 45815130318

Co-authored-by: Watch <watch@local>
2026-11-26 13:02:52 +00:00
AL Global 578e910bd8 docs: rename UberLLM to MartLLM (#3405)
UberLLM is now MartLLM: same service, accounts and API keys. New site https://martllm.com, API base URL https://api.martllm.com/v1 (the old uberllm.dev addresses keep working).
2026-11-26 11:56:57 +00:00
Joseph Perla ecd697f9f2 docs: document TrustedRouter OpenAI-compatible gateway setup (#3403)
Adds a TrustedRouter section to docs/local-openai-compatible-providers.md: OPENAI_BASE_URL/OPENAI_API_KEY setup, the local/ hatch for vendor-prefixed ids (incl. trustedrouter/auto), the 64k output-token note, and the public /v1/models listing.
2026-11-26 03:01:25 +00:00
Jianbo Maand2867297362mjb-sketch ca8752613b docs: document TeamoRouter OpenAI-compatible gateway setup (#3402)
Co-authored-by: 2867297362mjb-sketch <2867297362@qq.com>
2026-11-24 20:01:24 +00:00
Hashim Syedandhsyed02 a5c2775e81 docs: document Straitly OpenAI-compatible gateway setup (#3400)
Co-authored-by: hsyed02 <hsyed02@student.ubc.ca>
2026-11-23 18:03:38 +00:00
Owaid0723666andOwaid0723666 659f630cce docs: document onomeo OpenAI-compatible gateway setup (#3399)
Co-authored-by: Owaid0723666 <174245396+Owaid0723666@users.noreply.github.com>
2026-11-23 16:01:59 +00:00
d53a088278 docs: document WorldRouter OpenAI-compatible gateway setup
Co-authored-by: Opgeek-1 <173865771+Opgeek-1@users.noreply.github.com>
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-23 10:01:56 +00:00
Bellman eb6f730839 release: v0.1.14 (#3397)
release: v0.1.14
v0.1.14
2026-11-23 01:58:17 +00:00
MUGUNDAN 054447e6c2 [CI] Add CI support for building and testing Claw-Code on Windows ARM64 (#3393)
* Add Windows ARM64 build to release workflow

* Add Windows ARM64 build to release workflow
2026-11-22 19:33:26 +00:00
Wei-Lun Li dcf154793a fix(runtime): match CRLF line endings in edit_file (#3387)
read_file and grep_search return a file's lines joined with `\n`, so a
multi-line old_string quoted from a CRLF file never matched and
edit_file failed with "old_string not found in file". On Windows that is
every multi-line edit in a checkout made with Git's default
core.autocrlf=true.

When every line break in the file is `\r\n`, convert old_string and
new_string to CRLF before matching, so the edit applies and inserted
lines keep the file's line endings. LF and mixed files are unchanged.
2026-11-22 19:25:00 +00:00
Thibault Jaigu c3d19aa7d8 docs: document Requesty OpenAI-compatible gateway setup (#3391) 2026-11-22 19:21:07 +00:00
DrSkyle 56c53efa64 fix(tools): expose selector parameter in read_file schema and description (#3395) 2026-11-22 19:19:29 +00:00
Matthew Charles Vladislav Busel dae4337e8b feat(runtime): add Gemini, OpenAI pro, and long-context pricing tiers (#3389)
Adds Gemini API rows and the missing o1-pro, o3-pro, gpt-5.x-pro and
gpt-5.3-codex rows to OPENAI_COMPATIBLE_PRICING, and a per-request
pricing_for_request() that applies the Haiku 5.5 >100K, OpenAI >272K and
Gemini >200K prompt tiers. Usage::estimated_cost_usd uses it, since it
prices one response. pricing_for_model() and aggregated session totals are
unchanged.
2026-11-22 19:17:57 +00:00
Wei-Lun Li 4fb176c65d fix(runtime): prune heavy directories in grep_search (#3388)
grep_search walked and read every file under its root, including .git,
node_modules and target. glob_search already prunes these directories
(#2986), and docs/g002-security-verification-map.md says both search tools
do. In a Rust checkout with a 2.5 GB target/ directory, one grep_search
call took about 2.3 s instead of about 0.13 s, with the same results.

Use the same pruning for grep_search, and never prune the search root
itself, so a search the caller points into node_modules or target still
works for both tools.
2026-11-22 19:17:35 +00:00
Vlad Shulcz f3b0bd5058 docs: list deja-vu in ecosystem section (#3390)
Add deja-vu under community integrations for local cross-agent session memory across Claw Code and 46 other coding agents.
2026-11-22 19:14:49 +00:00
Dror Meirovich 078a27ece5 fix(cli): honor configured output token limits (#3385)
* test(cli): serialize cwd-dependent tests

* fix(cli): honor configured output token limits
2026-11-22 19:10:46 +00:00
Victor He 508b4d862d docs: document HopBase OpenAI-compatible gateway setup (#3384) 2026-11-10 14:59:17 +09:00
henrikdukefossandClaude Opus 5.5 f51a33a896 docs: document Standard Compute OpenAI-compatible gateway setup (#3383)
* docs: document Standard Compute OpenAI-compatible gateway setup

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* docs: align Standard Compute routing sentence with its docs

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-09 12:02:36 +00:00
Bellman 6a29e08883 Merge pull request #3382 from ultraworkers/release/v0.1.13
release: v0.1.13
v0.1.13
2026-11-09 12:07:40 +09:00
clawdbot 7041894439 release: v0.1.13 2026-11-09 03:01:44 +00:00
generaltony007andgeneraltony007 333298ae53 fix(api): retry 529 overloaded and gateway-flake 400 responses (#3381)
* fix(api): retry 529 + gateway-400 in anthropic provider

Co-authored-by: generaltony007 <144252170+GeneralTony007@users.noreply.github.com>

* fix(api): retry 529 + gateway-400 in openai_compat provider

Co-authored-by: generaltony007 <144252170+GeneralTony007@users.noreply.github.com>

* fix(api): correct EOF whitespace in openai_compat

Co-authored-by: generaltony007 <144252170+GeneralTony007@users.noreply.github.com>

---------

Co-authored-by: generaltony007 <144252170+GeneralTony007@users.noreply.github.com>
2026-11-09 02:07:20 +00:00
Bellmanandclawdbot fe2b64ae9e ci(release): build macOS arm64 on macos-15; macos-14 runners are no longer supported (#3380)
Co-authored-by: clawdbot <clawdbot@ultraworkers.dev>
2026-11-08 20:21:40 +00:00
Bellman bd4043a83e Merge pull request #3379 from ultraworkers/release/v0.1.12
release: v0.1.12
v0.1.12
2026-11-09 05:08:25 +09:00
clawdbot 072892ff1e release: v0.1.12 2026-11-08 20:02:31 +00:00
Dror Meirovichandclawdbot 407a6c62f8 fix(windows): fix native runtime compatibility and enable workspace t… (#3378)
* fix(windows): fix native runtime compatibility and enable workspace tests

Fix shell discovery, hook quoting, native path handling and OAuth
randomness on Windows, make the test fixtures portable, and run the
full workspace test suite in the Windows CI job.

* test(plugins): make lifecycle fixtures Windows-compatible

* fix(windows): address workspace test failures

---------

Co-authored-by: clawdbot <clawdbot@ultraworkers.dev>
2026-11-08 19:45:52 +00:00
Rohan BhartiandClaude ca48ec7500 test(tools): cover NotebookEdit cell-type switching, id collisions and unknown ids (#3377)
Co-authored-by: Claude <noreply@anthropic.com>
2026-11-06 21:56:45 +00:00
Penguin Secret Agencyandsang nguyen ab8561dc37 docs: document UberLLM OpenAI-compatible gateway setup (#3376)
Co-authored-by: sang nguyen <sangnguyen@sangs-MacBook-Pro-5.local>
2026-11-05 07:01:42 +09:00
Bellman 747e160b59 Merge pull request #3374 from ultraworkers/release/v0.1.11
release: v0.1.11
v0.1.11
2026-11-04 22:02:52 +09:00
knowhyandknowhy 6ac59ab90b docs: document LLMTR OpenAI-compatible gateway setup (#3373)
Co-authored-by: knowhy <194148385+knowhycodata@users.noreply.github.com>
2026-11-04 13:00:45 +00:00
clawdbot 67e5783894 release: v0.1.11 2026-11-04 12:59:09 +00:00
Iain db58b190bd fix(tools): stop NotebookEdit reusing cell ids after a delete (#3371)
Inserted cells were named cell-{len+1}, which is still taken once any
cell but the last has been deleted, so a later edit by the returned id
went to the older cell instead.
2026-11-04 12:02:30 +00:00
Bellman 51cfca114c Merge pull request #3370 from ultraworkers/release/v0.1.10
release: v0.1.10
v0.1.10
2026-11-02 10:23:26 +09:00
clawdbot 1cae56fd3f release: v0.1.10 2026-11-02 01:14:53 +00:00
Iainandclawdbot a289024b35 fix(tools): cut RemoteTrigger responses on a char boundary (#3369)
* fix(tools): cut RemoteTrigger responses on a char boundary

A response over 8192 bytes with a multi-byte character across byte 8192 panicked on the slice.

* test(tools): add multibyte char boundary truncation test for RemoteTrigger

---------

Co-authored-by: clawdbot <clawdbot@ultraworkers.dev>
2026-11-02 00:03:39 +00:00
Bellman f4fff38de1 Merge pull request #3368 from ultraworkers/release/v0.1.9
release: v0.1.9
v0.1.9
2026-10-29 04:59:12 +09:00
clawdbot 3a802f7bf9 release: v0.1.9 2026-10-28 19:58:30 +00:00
Bougie 8523d59a84 fix(runtime): keep tool-use/tool-result pairs paired in Trident compaction (#3367)
Trident stage 1 dropped the assistant message that carried a file tool
use while keeping the tool result that answered it, so the compacted
session ended up with orphaned `tool_result` blocks. Providers reject
such requests with HTTP 400 ("tool_result blocks must be a response to
a preceding tool_use"), which breaks the auto-compact retry path that
runs Trident before resending a request.

Stage 1 also counted a tool result as an independent file operation,
which pushed `last_write` past the write the result belonged to and made
the newest write look obsolete.

Only tool uses count as file operations now, and a tool result is
dropped together with the tool use that produced it.
2026-10-28 19:01:54 +00:00
Bellman 8aab1d4e54 Merge pull request #3366 from ultraworkers/release/v0.1.8
release: v0.1.8
v0.1.8
2026-10-23 23:02:25 +09:00
clawdbot 26611f44c5 release: v0.1.8 2026-10-23 13:58:42 +00:00
Bellmanandclawdbot fd8527f899 Fix #3364: web search robustness - handle non-2xx responses and filter search engine self-links (#3365)
* Fix issue #3364: web search returns error on non-2xx response and filters search engine self-links

- Add HTTP status code check to execute_web_search: return error if response is not 2xx
  instead of proceeding with potentially junk results (e.g., DuckDuckGo challenge pages)
- Filter out links pointing back to the search engine host in extract_search_hits_from_generic_links
  to avoid returning search engine self-links when no proper search results are found
- Add regression tests for both scenarios

Refs #3364

* fix: implement registrable domain filtering and error on 202/blocked responses

- Replace exact host matching with registrable domain comparison to properly
  filter search engine self-links across subdomains (e.g., html.duckduckgo.com
  vs duckduckgo.com)
- Add error handling for 2xx responses with no search results (e.g., 202
  challenge pages from blocked search providers)
- Add regression tests for both 202 challenge page and mixed self-link scenarios
- Remove unrelated Cargo.lock version bumps (revert to 0.1.6)

Fixes #3364

* fix(tools): reject DuckDuckGo 202 challenge pages and drop search-engine links

The challenge page arrives as HTTP 202, which is_success() accepts, and its
links point at duckduckgo.com while the request goes to html.duckduckgo.com,
so the previous filter kept them. Only a 200 page is parsed now, and the
generic fallback drops any duckduckgo.com link or link to the configured
search host. Removes the registrable-domain heuristic and the 'no hits is an
error' path (a real query can legitimately return nothing), and replaces
tests that never exercised a self-link with ones that fail on the old code.

Refs #3364

---------

Co-authored-by: clawdbot <clawdbot@ultraworkers.dev>
2026-10-23 14:22:40 +01:00
Bellman 22fe36072a Merge pull request #3363 from ultraworkers/release/v0.1.7
release: v0.1.7
v0.1.7
2026-10-19 13:07:03 +09:00
clawdbot 0a899b630b test: update user-agent version check to 0.1.7 2026-10-19 04:04:04 +00:00
clawdbot 3e514dbf18 release: v0.1.7 2026-10-19 04:01:05 +00:00
twtrubiks 66418c6127 fix(runtime): name the session model in the system prompt (#3359)
The environment section rendered "Model family: Claude Opus 4.6" for
every Anthropic model, so claude-opus-5-5, claude-sonnet-4-6, and any
other Claude model told users it was Opus 4.6.

Render a neutral "Claude" family label followed by the resolved model
ID, and rebuild the system prompt on /model so the line follows a
mid-session switch instead of keeping the startup model.
2026-10-19 04:52:41 +01:00
twtrubiks 3cc90cfc7a feat(runtime): add OpenAI, xAI, and DashScope pricing (#3358)
Models from the OpenAI-compatible providers fell back to
default_sonnet_tier ($3/$15 per MTok), so e.g. gpt-5.4-nano was
estimated at 15x its input price and qwen-plus at about 26x.

Add a table of published rates keyed by model id, matching dated
snapshots and -latest aliases:

- OpenAI standard tier for current gpt-6 / gpt-5.x / gpt-4.1 / gpt-4o
  and o-series models (Responses-only pro models are omitted).
- xAI grok-4.x and grok-build. Slugs retired on 2026-05-15 (grok-3,
  grok-4-0709, grok-4-fast-*, grok-4-1-fast-*) are billed at grok-4.3
  rates, and grok-code-fast-* is served as grok-build.
- DashScope qwen-max, qwen-plus, qwen-flash and kimi-k2.5 at China
  (Beijing) rates, which is claw's default DashScope endpoint, with
  non-thinking output and the 20% implicit-cache hit rate.

Long-context and higher input tiers use the base rate because usage is
aggregated across requests.
2026-10-19 12:15:58 +09:00