Files
DeepTutor/tests
zszz3 37f5565bb2 fix(llm): keep mid-conversation system messages in place
Anthropic Messages has one top-level system and the Responses API one
instructions field. The Anthropic converter kept only the last system
message, so a deep_solve context checkpoint or a Mastery lesson notice
replaced the whole system prompt. The Responses converter joined every
system message into instructions, so each appended notice rewrote the
start of the request.

Leading system messages still become system/instructions. A later one
stays where it was: an Anthropic user text block labelled [System note]
(after any tool_result blocks), or a Responses developer message.
2026-12-02 15:44:33 +08:00
..
2026-11-06 01:56:39 +08:00