From 45d0d3c5f431688aa9dfbd6a4214256d6fe64122 Mon Sep 17 00:00:00 2001 From: salmonik Date: Wed, 18 Nov 2026 12:34:33 +0100 Subject: 0.9.2: doc accuracy and UX fixes from the review - missing key exits 1, consistent with --doctor - HTML error bodies get a one-line message - no unapprovable diff printed on a non-terminal - weak GLIBC_2.39 fix covers x86_64 gnu as well as i686 - README/PLAN/CHANGELOG brought in line with the actual binary --- src/provider.rs | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/provider.rs') diff --git a/src/provider.rs b/src/provider.rs index 0973e8c..b08d1f2 100644 --- a/src/provider.rs +++ b/src/provider.rs @@ -484,6 +484,10 @@ fn accumulate_tool_call( } fn error_message(body: &str) -> String { + let trimmed = body.trim_start(); + if trimmed.starts_with('<') { + return "the provider returned an HTML error page rather than JSON".to_string(); + } if let Ok(v) = serde_json::from_str::(body) { if let Some(err) = v.get("error") { if let Some(message) = err.get("message").and_then(|m| m.as_str()) { -- cgit v1.2.3