Skip to content

Local scheduled tasks in Codex on Windows cannot run: setup refresh initialization fails #49142

Open

Description

@zhumengting01

What version of the Codex App are you using (From “About Codex” dialog)?

26.924.22138

What subscription do you have?

Plus

What platform is your computer?

Microsoft Windows NT 10.0.26200.0 x64

What issue are you seeing?

Windows 上的所有 Codex 本地定时任务都无法执行,命令尚未启动就失败。

完整报错:
CreateProcess: Rejected("Failed to create unified exec process: helper_unknown_error: setup refresh had errors")

问题表现:

  • 现有和新建的本地定时任务都会失败;
  • 失败发生在任何命令启动之前,连 Get-Location 这类只读命令都无法执行;
  • 重启 Codex Desktop 后仍会复现;
  • 新建本地项目和新建定时任务后仍会复现;
  • 已确认项目文件夹存在;
  • 已确认当前 Windows 用户是项目文件夹所有者,并拥有 FullControl;
  • 已确认 CodexSandboxUsers 组拥有 Modify 权限;
  • 已创建项目文件夹的 Windows Junction 别名,但定时任务仍无法执行。

复现步骤:

  1. 在 Windows 的 Codex Desktop 中创建任意本地定时任务;
  2. 让任务执行简单本地命令,例如 Get-Location;
  3. 定时任务运行时立即返回:
    helper_unknown_error: setup refresh had errors

预期结果:
定时任务应正常初始化本地环境并执行命令。

实际结果:
本地沙箱在 setup refresh 阶段失败,命令进程没有被创建。

时区:Asia/Shanghai
首次复现日期:2026-09-28

What steps can reproduce the bug?

Feedback ID: 01a0eac9-19d6-7d10-af15-dc6760fbe5ee

What is the expected behavior?

定时任务应正常初始化本地沙箱并执行命令。执行 Get-Location 时,应返回当前项目目录,而不是在 setup refresh 阶段失败。

Additional information

No response

Activity

  1. added
    bugSomething isn't working
    windows-osIssues related to Codex on Windows systems
    sandboxIssues related to permissions or sandboxing
    on Sep 29, 2026
  2. changed the title [-]Windows Codex 本地定时任务无法执行:setup refresh 初始化失败[/-] [+]Local scheduled tasks in Codex on Windows cannot run: setup refresh initialization fails[/+] on Sep 29, 2026
  3. github-actions commented on Sep 29, 2026

    @github-actions
    Contributor

    English translation:

    What version of the Codex App are you using (From “About Codex” dialog)?

    26.924.22138

    What subscription do you have?

    Plus

    What platform is your computer?

    Microsoft Windows NT 10.0.26200.0 x64

    What issue are you seeing?

    All local scheduled tasks in Codex on Windows fail before any commands start.

    Full error:
    CreateProcess: Rejected("Failed to create unified exec process: helper_unknown_error: setup refresh had errors")

    Symptoms:

    • Both existing and newly created local scheduled tasks fail;
    • The failure occurs before any command starts; even read-only commands such as Get-Location cannot run;
    • The issue persists after restarting Codex Desktop;
    • The issue persists after creating a new local project and a new scheduled task;
    • Confirmed that the project folder exists;
    • Confirmed that the current Windows user owns the project folder and has FullControl;
    • Confirmed that the CodexSandboxUsers group has Modify permissions;
    • Created a Windows Junction alias for the project folder, but scheduled tasks still cannot run.

    Steps to reproduce:

    1. Create any local scheduled task in Codex Desktop on Windows;
    2. Have the task execute a simple local command, such as Get-Location;
    3. When the scheduled task runs, it immediately returns:
      helper_unknown_error: setup refresh had errors

    Expected result:
    Scheduled tasks should initialize the local environment successfully and execute commands.

    Actual result:
    The local sandbox fails during the setup refresh stage, and the command process is not created.

    Time zone: Asia/Shanghai
    Date first reproduced: 2026-09-28

    What steps can reproduce the bug?

    Feedback ID: 01a0eac9-19d6-7d10-af15-dc6760fbe5ee

    What is the expected behavior?

    Scheduled tasks should initialize the local sandbox successfully and execute commands. Running Get-Location should return the current project directory instead of failing during the setup refresh stage.

    Additional information

    No response

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    appIssues related to the Codex desktop appautomationsbugSomething isn't workingsandboxIssues related to permissions or sandboxingwindows-osIssues related to Codex on Windows systems

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions