feat(chat): surface streamed model thinking in the dashboard (#1907) #1910

Merged
sam merged 3 commits from feat/1907-chat-thinking into main 2026-11-12 13:25:51 +00:00
3 Commits
Author SHA1 Message Date
sam 607bfddd0e Merge branch 'main' into feat/1907-chat-thinking
Quality / check (pull_request) Successful in 12m49s
2026-11-12 13:24:24 +00:00
sam 433ea390a6 feat(chat): render the live turn's thinking in the dashboard (#1907)
Quality / check (pull_request) Canceled after 0s
ci/woodpecker/pr/quality Pipeline was successful
Reasoning frames accumulate into streamingTurn.reasoning and the live row
shows them in a collapsible Thinking trace built from the components/ui
trace pattern, with a spinning icon and shimmering title while no reasoning
has arrived yet. A turn that produces no reasoning renders no trace, and
reasoning never leaks into the reply text.
2026-11-13 00:21:27 +11:00
sam ff8615b090 feat(gateway): stream model reasoning as reasoning chat events (#1907)
The ai-sdk FullStream drain moves from the archiegateway composition into
internal/gateway (DrainStreamParts), next to the TurnStream it feeds, and
gains a StreamPartReasoningDelta case: each reasoning delta is forwarded on
the new optional ReasoningStream method, which localChatStream turns into a
ChatEvent{Kind: "reasoning", Text: delta} on the same stream. done/error
semantics are unchanged, and the FullStream is still drained to close when no
stream is attached.
2026-11-13 00:21:23 +11:00