Files
dify/cli/test/fixtures
L1nSn0w 5d604b32dc feat(cli): surface separated-mode LLM reasoning in run/resume
PR #37460 added an out-of-band `reasoning_chunk` SSE channel for chatflow
apps whose LLM node uses reasoning_format=separated: the answer stream stays
free of <think> and the chain-of-thought streams on its own channel. difyctl
dropped these events, so `--think` showed nothing for such apps.

- new sys/io/reasoning module: parse reasoning_chunk payloads (nested under
  `data`), frame them to stderr identically to inline <think> blocks
- ChatStreamPrinter renders reasoning_chunk deltas to stderr under --think
- ChatCollector accumulates reasoning as a fallback; the server's persisted
  message_end metadata.reasoning stays the JSON source of truth
- streaming-structured echoes separated reasoning to stderr under --think
- update --think help to mention separated reasoning streams
2026-06-23 18:39:20 +08:00
..