From 6df7a6403d88a4492ab6ea1c519dcae3a202be96 Mon Sep 17 00:00:00 2001 From: salmonik Date: Wed, 18 Nov 2026 12:01:38 +0100 Subject: 0.9.0: distinguishable tool errors, separated stderr, configurable limits From a field report porting a Neovim config to Helix: - validate() now separates 'empty value', 'wrong key (here is what you sent)' and 'no arguments at all, retry' instead of one false message for all four causes - named calls with no arguments are answered rather than dropped silently - bash keeps stdout and stderr in labelled sections when both produce output - bash gains timeout_seconds (1-600) and max_bytes, and says when output was cut - tool lines/results carry [step.call] labels when a step has several calls - invalid JSON errors include a preview of what arrived --- CHANGELOG.md | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) (limited to 'CHANGELOG.md') diff --git a/CHANGELOG.md b/CHANGELOG.md index 10925a7..be3c6b8 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,37 @@ break the interface, **PATCH** for bug fixes. file, and the tool schemas the model sees. Anything a script or a resumed session could depend on counts as API. +## 0.9.0 + +Driven by a field report from a real task (porting a Neovim config to Helix). +The report's most expensive problem was not a missing feature: it was one error +message covering four different failures. + +### Added +- `bash` takes `timeout_seconds` (1-600, default 120) and `max_bytes` (per-stream + output budget, 1 KiB-16 MiB, default 80 KiB), so the limits are discoverable and + adjustable instead of only discoverable by exceeding them. + +### Changed +- `bash` keeps stdout and stderr apart. When both produce output they arrive in + labelled `[stdout]` / `[stderr]` sections; stderr alone is labelled; stdout + alone is unchanged. A real error printed to stderr can no longer hide inside + ordinary output. +- A truncated result says so on its final line, next to the exit status. +- Tool lines and results carry a per-call label (`[2.1]`, `[2.2]`) when several + calls run in one step, so a result is attributable without counting order. + +### Fixed +- The `cmd` validation error covered four distinct causes with one message, and + was false about two of them. It now distinguishes: the value is empty; the key + is missing and here is what you sent instead; or the call arrived with no + arguments at all, which points at argument loss in transit and suggests a + retry. +- A named call with no arguments is no longer dropped silently. The model is told + what arrived and can retry; only nameless calls are dropped, because they + cannot be replayed to the provider. +- Invalid JSON arguments report a preview of what arrived. + ## 0.8.2 ### Changed -- cgit v1.2.3