Skip to content

CoWorker v0.5.1

Choose a tag to compare

@github-actions github-actions released this 28 Aug 14:16
· 12 commits to main since this release

本版本根治「降智」的底層根因,並修復其引入的一處解析崩潰。

修復

  • 根治「降智」根因(歷史工具呼叫回放):修復 prepare_agent_messages 在送模型前剝除 role="tool" 訊息與 assistant tool_calls 鍵的問題——此前跨輪歷史只剩純文字敘述,模型會模仿「只敘述不執行工具」(實例:會話連續 3 輪輸出「先查看當前狀態,再一次性 commit:」後即停)。現歷史中的 assistant(tool_calls) → tool(result) 序列完整回放,與 opencode / codex 對齊。
  • 修復歷史回放解析崩潰:對早期「工具 input 捕獲為空」遺留的空/非法/非物件參數統一校正為 {},避免 LangChain convert_to_messages 對空 arguments 執行 json.loadsExpecting value: line 1 column 1 (char 0) 打崩整輪。

品質

  • 新增工具歷史回放管線測試(含 2d8080e8 降智會話回歸、空/非法參數回歸);修正 2 個既有測試的錯誤斷言(錯查檔案 / 讀錯 loop_reason 鍵)。