Commit Graph
3 Commits
Author SHA1 Message Date
Alessandro e10635aea0 fix: restore Context Doctor handling before tool retries
Separate leaked-call classification from retry handling so Context Doctor
can apply XML suppression, thought splitting, and log settings before the
history entry is saved. Keep rejected calls out of JSON repair and tool
dispatch; disabling XML suppression retains them only as thoughts.

Core still owns bounded retries and history insertion, defaults to {} when
the plugin is disabled, and clears replayable Responses output and pending
continuation state. Update plugin settings guidance and ownership docs.

Validation: 455 focused tests passed locally and in Docker's framework
runtime. Restarted the idle live app, verified health and actual extension
ordering, and found no startup error markers.
2026-10-27 21:58:28 +01:00
linkliti fb84e46c69 Add split-thoughts repair strategy to context doctor
Extracts value selection into _select_value helper, mutates _split_thoughts in place, and applies the split once after repair. Adds a split_thoughts config (default on) with a Strategies section in the plugin settings UI, regression tests for blank-line splitting in repaired JSON, raw-text fallback, and disabled mode. Keeps reasoning-only kvps retention and the raw-text fallback claim path.
2026-09-03 03:53:38 +03:00
linkliti dac39537c9 Add Context Doctor plugin
Repair malformed Agent Zero tool-call JSON before default dispatch, then persist repaired compact response in WebUI log. Pin json_repair, retain targeted installed-parser patch, and expose XML suppression and log-detail settings.
2026-08-24 19:51:30 +03:00