Skip to content

fix: GPT-5.4空转修复 + file_patch行尾保持#128

Open
Sophomoresty wants to merge 2 commits intolsdefine:mainfrom
Sophomoresty:fix/gpt54-and-file-patch-crlf
Open

fix: GPT-5.4空转修复 + file_patch行尾保持#128
Sophomoresty wants to merge 2 commits intolsdefine:mainfrom
Sophomoresty:fix/gpt54-and-file-patch-crlf

Conversation

@Sophomoresty
Copy link
Copy Markdown

修复内容

1. GPT-5.4 空转修复 (llmcore.py)

  • 问题: NativeToolClient 在初始化时将 THINKING_PROMPT 注入 system prompt,导致 GPT-5.4 按文本协议输出 tool call 而非使用原生 tool_calls 字段
  • 修复: NativeToolClient 不再注入 THINKING_PROMPT,只使用 agent 传入的 system prompt
  • 影响: GPT-5.4 恢复正常的 tool_calls 返回

2. file_patch 行尾保持 (ga.py)

  • 问题: file_patch 在 Windows 上使用文本模式读写,自动将 LF 转为 CRLF,破坏原始行尾格式
  • 修复: 改用二进制模式读写,检测并保持原文件的 LF/CRLF 格式
  • 影响: patch 后文件行尾格式与原文件一致

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant