Files
agent-zero/extensions/python/response_stream_end/AGENTS.md
Alessandro 039efe4198 Keep model prose as thoughts and retry silently
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.
2026-11-01 06:50:49 +01:00

28 lines
905 B
Markdown

# 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 `thoughts` during normal response finalization; reasoning and `thoughts` remain separate channels. The explicit exception is reasoning-only recovery in `message_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.