focus/crates
DaiChaoXiong 80333ee127 fix(providers): capture and replay Responses API reasoning items
The real endpoint log (deepseek-v4-flash) shows the Responses protocol: the
thinking arrives as a 'reasoning' output item plus response.reasoning_text.delta
events, which we ignored — so the thinking never reached the transcript and
the replayed history omitted it ('reasoning_text must be passed back', 400).

- output_item.added with item.type 'reasoning' opens a thinking block;
  response.reasoning_text.delta appends to it
- messages_to_responses now replays assistant thinking as a 'reasoning' item
  with a reasoning_text part (before the text item)
- regression tests: reasoning capture and reasoning-item replay
- (the earlier chat-completions reasoning_content/text fixes remain for the
  chat protocol)
2026-08-09 21:58:16 +08:00
..
focus-core feat(core): agent message setters, thinking support, reducer arg-slot fix 2026-08-09 20:59:39 +08:00
focus-harness refactor(test): move all unit tests from src/ into tests/<module>_tests.rs 2026-08-09 21:09:01 +08:00
focus-json chore(workspace): sync manifests, docs and lockfile 2026-08-09 21:00:04 +08:00
focus-providers fix(providers): capture and replay Responses API reasoning items 2026-08-09 21:58:16 +08:00
focus-tools refactor(test): move all unit tests from src/ into tests/<module>_tests.rs 2026-08-09 21:09:01 +08:00
focus-transport refactor(test): move all unit tests from src/ into tests/<module>_tests.rs 2026-08-09 21:09:01 +08:00
focus-tui fix(tui): surface concrete run errors instead of a bare error header 2026-08-09 21:48:29 +08:00