mirror of
https://github.com/mauriceboe/TREK.git
synced 2026-11-13 15:51:00 +00:00
fed564e7c0
remember_for_trip runs at once during a turn, and read_attached_file and keep_attached_file are answered by the server, but all three are calls the model made. Rebuilding a thread from its stored steps left them unanswered, and ChatGPT, the OpenAI reasoning models and Anthropic replay their own record of each step, call included, so the provider refused the conversation with a 400: the continuation after applied changes failed, and every later message of the thread with it. A step that kept a note also sent an empty user message. Every call the model made is now answered as in the live turn, the attached file's outcome as the answer of its call; threads that broke this way work again on their next message. A refusal's log line names the refused field's path, never its message. Closes #2845