mirror of
https://github.com/openclaw/openclaw.git
synced 2026-06-06 05:51:15 +08:00
fix(agents): preserve reasoning replay from model metadata
Preserve OpenAI-compatible replay reasoning when the selected custom or self-hosted model already has reasoning metadata enabled. The transcript policy now treats existing model metadata as the replay contract instead of requiring a new provider config knob, and the OpenAI-compatible serializer preserves reasoning_content for those routes while keeping stock OpenAI, Gemma 4, and known non-replayable OpenRouter safeguards. Fixes #88068. Replaces #88071.
This commit is contained in:
committed by
GitHub
parent
7a22515972
commit
cf315ddef6
@@ -131,6 +131,8 @@ inter-session user turns that only have provenance metadata.
|
||||
reasoning fields such as `reasoning` or `reasoning_content`.
|
||||
- Current same-turn tool-call continuations keep the assistant reasoning block
|
||||
attached to the tool call until the tool result has been replayed.
|
||||
- Custom/self-hosted model entries with `reasoning: true` preserve replayed
|
||||
reasoning metadata.
|
||||
- Provider-owned exceptions can opt out when their wire protocol requires
|
||||
replayed reasoning metadata.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user