mirror of
https://github.com/agent0ai/agent-zero.git
synced 2026-12-04 01:18:39 +00:00
Preserve free text and reasoning-only output in the current generation and retry without intermediate warning rows. Require an explicit response tool call to finish in both API modes, including after provider built-in actions. Keep history metadata, Responses state, tool validation and the consecutive-failure stop intact. Allow core retries when Context Doctor and its prompts are unavailable. Validation: 411 backend tests and 2 Chromium live/replay grouping tests passed; live runtime health check passed.
905 B
905 B
Response Stream End Extensions DOX
Purpose
- Own finalization of assistant response stream content.
Ownership
- Ordered Python files own final masking and stream-end log updates.
Local Contracts
- Preserve final masking before response content is considered complete.
- Keep log state consistent with streamed chunks and final response text.
- Do not auto-promote native reasoning summaries into
thoughtsduring normal response finalization; reasoning andthoughtsremain separate channels. The explicit exception is reasoning-only recovery inmessage_loop_result, which preserves the emitted reasoning as thoughts before silently retrying.
Work Guidance
- Coordinate finalization changes with live response and message rendering behavior.
Verification
- Smoke-test response completion and persisted message display after changes.
Child DOX Index
No child DOX files.