- gateway_service.go buildStableSessionSeed: strings.Builder.WriteString 返回值用 _, _ = 显式忽略(errcheck) - openai_codex_transform_additions_test.go: client_metadata 类型断言改为 双值形式 cm3, _ := ...(errcheck check-type-assertions) - openai_gateway_service.go: codexCLIUserAgent 常量单独成组,收敛 = 前多余 空格对齐(gofmt)
- 模型感知 instructions:刷新 instructions.txt 至最新 GPT-5-Codex prompt,新增 GPT-5.1 / GPT-5.2 真实 Codex 编码 agent prompt;新增 openai.CodexBaseInstructionsForModel 按模型选用(codex 系→GPT-5-Codex,gpt-5.2→GPT-5.2,gpt-5.1/gpt-5→GPT-5.1), defaultCodexSynthInstructions 改为按 model 选择 - client_metadata:OAuth /responses 请求用账号真实 openai_device_id 注入 client_metadata["x-codex-installation-id"];加法式、幂等、不覆盖既有项, 无 device_id(非 OAuth 账号)则不写入、不伪造 - anthropic 转换补全 SSE 事件 reasoning_text.delta 与 custom_tool_call_input.delta (含 custom_tool_call item 注册为 tool_use),与 chat completions 路径对齐 - 新增单元测试覆盖以上行为(apicompat / openai / service) 承接上一提交,仍为加法式改进,不改动既有可工作的请求头。