CodeTracked since May 19, 2026
Preserve interrupted run partial AI messages in journal
Fixes a user-visible data-loss path where stopping generation mid-stream caused `on_llm_end` to skip writeback, so partial assistant output was never recorded and disappeared after refresh. The change adds buffered per-message chunk tracking and writes a partial AI message when a run is interrupted, preventing interrupted sessions from losing context and making interrupted run history actionable.
RunJournalAIMessageChunkRunStatus.interruptedrecord_partial_ai_message