From 4a357b335f74ae64714800527ac3e95b7057a3ce Mon Sep 17 00:00:00 2001 From: "Danilo M." Date: Sat, 26 Sep 2026 08:34:55 +0200 Subject: Fix mail counts and finance ranges found testing live - mail printed threads and the model called them emails; it now reports messages and threads. - finance spending takes a since date (default the first of the month) instead of a day count, and an optional asset account. The per-account listing needs an end date or the API rejects it; an unknown account name gets the user's accounts back. - Tool errors are capped at 2000 characters like normal output. Co-Authored-By: Claude Opus 5.5 --- assistant.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'assistant.py') diff --git a/assistant.py b/assistant.py index 84f0dd8..635fb81 100644 --- a/assistant.py +++ b/assistant.py @@ -206,7 +206,7 @@ def run_tool(tools, name, arguments, d=TOOLS_DIR): return "error: timed out" if p.returncode: last = err.strip().splitlines()[-1:] - return "error: " + (last[0] if last else f"exit status {p.returncode}") + return ("error: " + (last[0] if last else f"exit status {p.returncode}"))[:2000] return out.strip()[:2000] -- cgit v1.2.3