mirror of
https://github.com/agent0ai/agent-zero.git
synced 2026-12-04 20:18:09 +00:00
Reject incomplete native-call argument JSON during output-limit recovery while allowing complete calls to proceed. Publish observed finish reasons and canonical calls before terminal or flushed stream output reaches callbacks, so early cancellation preserves the original result metadata. Cover sync and async installed-SDK streams, callback stops, incomplete and mixed native-call batches, and result/history metadata compatibility. Update the owning extension and transport documentation. Validation: 327 focused tests passed in the Docker framework runtime; 333 tests and 11 subtests passed in the updated local environment. Live localhost:32081 checks passed with Codex Responses and Opus Chat Completions through the Agent Zero LLM API. A real 64-token Opus cutoff produced the dedicated length warning and recovered in one retry.