Skip to content

[Bug]:使用deepseek-v4-flash时无法使用powershell #1791

Description

@Good9t16

影响范围

供应商切换 / 配置写入

当前行为

使用deepseek-v4-flash时无法使用powershell,原因是被沙箱拒绝,代码分别为400和740
提示Codex 内部自动审批 / 沙箱代理逻辑,强行使用模型 ID codex‑auto‑review 去调用 DeepSeek 接口。
但 DeepSeek 服务端只接受:deepseek‑v4‑flash / deepseek‑v4‑pro,codex‑auto‑review这个模型 IDDeepSeek 不存在,直接返回 400 非法请求。
暂未找到解决方案

预期行为

应该正常删除文件或修改文件 之前使用dsv4flash和pro都没问题的,不知道发生了什么

复现步骤

接入ds v4 flash
选择替我审批模式
运行涉及到需要对文件进行删除或者修改的命令时出现该故障码

日志 / 配置片段

片段1

Automatic approval review failed: {"error":{"message":"{"error":{"message":"The supported API model names are deepseek-v4-pro or deepseek-v4-flash, but you passed codex-auto-review.","type":"invalid_request_error","param":null,"code":"invalid_request_error"}}","type":"upstream_error","code":"400"}}
Shell
$Get-ChildItem -Recurse -Force "E:\All Codes\desktop_plugin.agents", "E:\All Codes\desktop_plugin.codex" -ErrorAction SilentlyContinue | Select-Object FullName, Mode | Format-Table -AutoSize
This action was rejected due to unacceptable risk.
Reason: Automatic approval review failed: {"error":{"message":"{"error":{"message":"The supported API model names are deepseek-v4-pro or deepseek-v4-flash, but you passed codex-auto-review.","type":"invalid_request_error","param":null,"code":"invalid_request_error"}}","type":"upstream_error","code":"400"}}
The agent must not attempt to achieve the same outcome via workaround, indirect execution, or policy circumvention. Proceed only with a materially safer alternative, or if the user explicitly approves the action after being informed of the risk. Otherwise, stop and request user input.


片段2

This action was rejected due to unacceptable risk.
Reason: Automatic approval review failed: {"error":{"message":"{\"error\":{\"message\":\"The supported API model names are deepseek-v4-pro or deepseek-v4-flash, but you passed codex-auto-review.\",\"type\":\"invalid_request_error\",\"param\":null,\"code\":\"invalid_request_error\"}}","type":"upstream_error","code":"400"}}
The agent must not attempt to achieve the same outcome via workaround, indirect execution, or policy circumvention. Proceed only with a materially safer alternative, or if the user explicitly approves the action after being informed of the risk. Otherwise, stop and request user input.


片段3

execution error: Io(Custom { kind: Other, error: "windows sandbox: runner failed during SpawnChild: CreateProcessAsUserW failed: 740 (请求的操作需要提升。) | cwd=E:\\All Codes\\desktop_plugin | cmd=C:\\windows\\System32\\WindowsPowerShell\\v1.0\\powershell.exe -NoProfile -Command \"try { [Console]::OutputEncoding=[System.Text.Encoding]::UTF8 } catch {}\nGet-Content -Raw -Encoding UTF8 PRD.md\" | env_u16_len=5099 | si_flags=256 | creation_flags=525312 (Windows error 740)" })

Codex++ 版本

1.2.44

系统

Windows

提交前确认

  • 我已经脱敏了 API Key、Token、账号等敏感信息。
  • 我已经确认这是当前最新版仍然存在的问题。

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions