DeepSeek-Reasonix
DeepSeek-Reasonix copied to clipboard
fix(agent): write zh reasoning-language block in Chinese to survive English file references
Summary
修复 #4875: 在引用文件时思考语言设置失效
问题: 当设置思考语言为中文但引用大量英文文件内容时,模型仍使用英文思考。
根因: <reasoning-language> 指令块虽然是要求使用中文思考,但指令本身是英文写的。当用户消息中包含大量英文文件内容时,英文指令被"淹没"。
修复: 将中文的思考语言指令改为用简体中文编写,让模型在指令层面就看到中文,提供更强的信号。
Verification
go test ./internal/agent/...passesgo test ./internal/control/...passesgo vet ./...passesgofmt -wapplied
Fixes #4875
Cache impact
Cache-impact: low — 仅修改了 reasoning-language XML 块的文本内容,不改变结构或长度。 Cache-guard: N/A — 无缓存敏感文件变动。