v3.8.4: Fix codebuff DeepSeek V4 tool-call reasoning_content round-trip

- Full reasoning round-trip: capture reasoning_content + tool_calls from
  stream, store by tool_call_id, reinsert before next codebuff POST
- Primary path no longer disables thinking (codebuff doesn't forward the flag)
- Fallback retry uses DeepSeek native {thinking:{type:'disabled'}} format
- Replaced broken _fb_retry_no_reasoning + _fb_retry_stripped with
  single _fb_retry_thinking_disabled
- New _ds_store_assistant(), _ds_rebuild_tool_history() functions
- oa_stream_to_sse() now captures tool_calls in reasoning_out dict
- Multi-turn Codex CLI sessions with function calls now complete successfully
This commit is contained in:
admin
2026-05-24 21:48:00 +04:00
Unverified
parent 2d4c1a9c2d
commit 8fd6f280f2
5 changed files with 10679 additions and 0 deletions

2
.gitignore vendored
View File

@@ -9,3 +9,5 @@ config.toml
*.swp
*~
.DS_Store
DEBIAN/
usr/