Go to file
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
crates fix(providers): capture and replay Responses API reasoning items 2026-08-09 21:58:16 +08:00
docs/architecture INIT 2026-07-16 17:59:16 +08:00
examples INIT 2026-07-16 17:59:16 +08:00
.gitignore docs(workspace): whitelist ratatui/crossterm for focus-tui 2026-08-09 21:35:58 +08:00
AGENTS.md docs(workspace): whitelist ratatui/crossterm for focus-tui 2026-08-09 21:35:58 +08:00
Cargo.lock docs(workspace): whitelist ratatui/crossterm for focus-tui 2026-08-09 21:35:58 +08:00
Cargo.toml docs(workspace): whitelist ratatui/crossterm for focus-tui 2026-08-09 21:35:58 +08:00
README.md chore(workspace): sync manifests, docs and lockfile 2026-08-09 21:00:04 +08:00
rust-toolchain.toml INIT 2026-07-16 17:59:16 +08:00

README.md