You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This commit was created on GitHub.com and signed with GitHub’s verified signature.
October 11, 2026 (v3.5.89): Skills that return an answer, custom endpoints that are asked once, and a Requesty provider. Three bug reports from @master5d, all from running small open models on a self-hosted OpenAI-compatible endpoint (#182, #183, #184), plus two community PRs. (1) The Skill tool accepts the argument shapes models actually send (#182; PR #186, @linhongyu510). The schema declares args as a string, but nothing enforced it, so a model that wrapped the value — {"name": "recall", "args": {"args": "--k 5"}} — reached prompt.replace("$ARGUMENTS", args) and the call failed with Error executing Skill: replace() argument 2 must be str, not dict. That message gives a model nothing to correct, so it repeated the identical call and then answered without the skill. args is now normalized before substitution: null becomes an empty string, an object with a single string value is unwrapped, a list of strings is joined with spaces, and a number is converted. Anything else returns Error: Skill "args" must be a string (got object with keys ['a', 'b']). Example: {"name": "commit", "args": "fix login bug"}. A non-string name gets the same treatment instead of raising on .strip(). (2) Skill returns the final answer, not the transcript (#184). The tool collected every event that had a .text attribute. ThinkingChunk has one too, so the result contained the nested run's reasoning (for any model that returns reasoning_content, not only the reporter's), the narration before each tool call, and the agent's own status lines such as [Retry 1/3 …]. It now returns the last assistant turn of the nested run; if the run fails before completing a turn, the streamed text is returned instead so the error is not lost. Measured with deepseek-v4-flash on a recall skill, seven runs before and after: result length fell from 1,111–2,608 characters to 147–359, all 7 results before contained reasoning and narration while all 7 after were a short answer with its source line, and the final answer was correct in all 14 runs. This changes what a skill hands back: text from intermediate turns is no longer included, so a skill should put what the caller needs in its last message. (3) A custom endpoint's /v1/models is queried once, and each model gets its own window (#183)._fetch_custom_model_limit cached limits under the ids the endpoint lists (tools-pool), but compaction looked them up as custom/tools-pool, which never matched; and a model the endpoint did not describe was never remembered. Over a simulated 47-turn session that meant 141 requests against an endpoint that reports limits and 235 against one that does not (llama-server, LiteLLM, or no /models route at all). It is now 1 and 2. The lookup tries the model string as given, then with a leading custom/ removed. It deliberately does not use bare_model(): the stream path passes ids already stripped, so Qwen/Qwen3-Coder would lose its vendor segment and miss. An endpoint that answers without a limit is remembered for the process; a failed request is retried after 30 seconds rather than before every call. The mismatch was also a correctness bug: on an endpoint serving a 131k model next to an 8k one, the 131k model was compacted against 8,192 tokens. It now uses 131,072. PR #187 (@linhongyu510) proposed the first fix for this and its tests informed the ones that shipped. (4) The tool-result size cap follows your configuration. Each tool result is trimmed to 2,000–7,000 characters depending on the context window, but the cap was computed without config, so /config context_window=<N> and a custom endpoint's per-model limit were ignored. Both now apply. On the multi-model endpoint above this is the difference between a 2,000-character cap and a 7,000-character one. Note: if you set a small context_window (20,000 or less), tool results are now capped at 2,000 characters, as they already were for models whose real window is that size. Truncation was never silent — the [... N chars truncated ...] marker sits in the middle, with the head and tail kept — and the docs now say so. (5) Requesty is a built-in provider (PR #185, @Thibaultjaigu).Requesty is an OpenAI-compatible gateway; requesty/<model> with REQUESTY_API_KEY (or /config requesty_api_key=...) routes through it the same way openrouter/ does. The model can be a catalog path (requesty/openai/gpt-4o-mini) or a managed policy ID (requesty/claude-sonnet-4-6, requesty/gpt-5-mini@eu for EU-only routing). Two things to know, both documented in usage.md: several models in the picker have no price entry yet and estimate $0, so use a token budget for those; and a managed policy ID has no vendor segment, so it gets the 128k gateway default unless you raise context_window. (6) Grep works without ripgrep. When rg was not installed the tool fell back to grep but still passed ripgrep's --no-heading, which grep rejects, and did not pass -r. The empty output was reported as "No matches found", so the tool told the model that text plainly present in a file was not there, on every search. Found during the live runs for (2), where the model kept re-checking results with Bash. The fallback now runs grep -rEI, count mode lists only matching files as ripgrep does, a pattern beginning with - is passed safely to both backends, and a real failure (bad regex, missing path) is reported as an error instead of as no matches. 68 new tests (2,933 total). Reference · custom endpoints