You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Think block shows "Thought (0.0s)" and collapses while reasoning is still streaming on 1.17.x #45682
Browser SSE timestamps from an affected deployment show <think> and </think> arriving about 1.5 s apart, while the UI shows 0.0s.
✔️ Expected Behavior
While </think> has not arrived yet, the block shows "Thinking…", the timer keeps counting, and the reasoning stays expanded as it streams.
❌ Actual Behavior
The block shows "Thought (0.0s)" from the first render and collapses while reasoning is still streaming.
closeUnclosedThinkTags (added in #41764 for #41558) appends </think> to any still-open thought. preprocessThinkTag then rewrites it to [ENDTHINKFLAG], so ThinkBlock marks an in-flight thought as complete and the timer latches at 0.0s.
main already changed preprocessThinkTag in fd2db63 (#44165) to balance the trailing block with </details> instead, which emits no end marker. That change is not on lts/1.17.x.
Activity