fix(chat): keep tool totals neutral and count individual errors

This commit is contained in:
2026-10-20 22:05:21 +01:00
parent e29be1181f
commit aa57fe8a04
8 changed files with 123 additions and 10 deletions
+15
View File
@@ -8,6 +8,21 @@ test, or a code change without a capture, is `partial` at best.
Status legend: `todo` · `partial` (some of it works) · `done` (working + captured).
### Tool summary error scope (2026-10-20)
The aggregate **N tools** label stays neutral and borderless even when a call
fails. Only the separate **· N errors** count is red; individual failed calls
remain marked inside the tool popup. Keyboard focus keeps its accessible focus
ring. This is an intentional browser presentation correction, not a protocol or
Android change.
`test/tool-summary-browser.mjs` verifies 82 calls with zero, one and two errors
at 390/1100px, neutral aggregate color, transparent border, no resting outline,
correct accessible error counts, and exactly one failed row among 82 popup rows.
Captures are in the approved OpenCode temporary `tool-summary-captures/`
directory. Fixture-only browser evidence; no live chat/session was changed.
Shell cache v10 refreshes the changed modules on reload.
### Generic alpha starters (2026-10-20)
The embedded catalogue now presents small code change/review, research/fact-check,