openai / openai/codex

Windows computer control plugin cannot read windows and still returns EPERM after permission is granted — Environment: Windows, Codex desktop app

Open
#38,293 3 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

app bug computer-use sandbox windows-os
Dominant language
Rust
Stars
125k
Forks
19.5k
PR merge metrics
PR metrics pending

Description

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

标题:Windows 电脑控制插件无法读取窗口,授权后仍返回 EPERM 环境: - Windows - Codex 桌面应用 - 电脑控制组件版本:26.803.81509 - 问题至少从 2026-08-12 持续至 2026-08-13 复现步骤: 1. 在 Codex 中请求使用电脑控制插件列出当前打开的窗口。 2. 插件调用 sky.list_windows()。 3. 运行立即失败,尚未读取到任何窗口。 错误信息: EPERM: operation not permitted, lstat 'C:\Users\1\AppData\Local\OpenAI\Codex' 补充诊断: - 已明确授予 C:\Users\1\AppData\Local\OpenAI\Codex 的读取权限。 - 授权后重置运行环境并再次调用,错误完全相同。 - 对该路径执行只读检查同样返回 Access is denied。 - 已多次重启 Codex,问题仍然存在。 - 插件没有切换、关闭或更改任何窗口。 预期结果: sky.list_windows() 应返回当前可控制窗口的列表,不应因 Codex 自身应用目录的访问权限而失败。 请重点检查 Windows 沙箱向电脑控制 Node 运行库传递文件系统权限的流程。

What subscription do you have?

gpt plus

What platform is your computer?

Win11

What issue are you seeing?

标题:Windows 电脑控制插件无法读取窗口,授权后仍返回 EPERM

环境:

  • Windows
  • Codex 桌面应用
  • 电脑控制组件版本:26.803.81509
  • 问题至少从 2026-08-12 持续至 2026-08-13

复现步骤:

  1. 在 Codex 中请求使用电脑控制插件列出当前打开的窗口。
  2. 插件调用 sky.list_windows()
  3. 运行立即失败,尚未读取到任何窗口。

错误信息:
EPERM: operation not permitted, lstat 'C:\Users\1\AppData\Local\OpenAI\Codex'

补充诊断:

  • 已明确授予 C:\Users\1\AppData\Local\OpenAI\Codex 的读取权限。
  • 授权后重置运行环境并再次调用,错误完全相同。
  • 对该路径执行只读检查同样返回 Access is denied
  • 已多次重启 Codex,问题仍然存在。
  • 插件没有切换、关闭或更改任何窗口。

预期结果:
sky.list_windows() 应返回当前可控制窗口的列表,不应因 Codex 自身应用目录的访问权限而失败。

请重点检查 Windows 沙箱向电脑控制 Node 运行库传递文件系统权限的流程。

What steps can reproduce the bug?

标题:Windows 电脑控制插件无法读取窗口,授权后仍返回 EPERM

环境:

  • Windows
  • Codex 桌面应用
  • 电脑控制组件版本:26.803.81509
  • 问题至少从 2026-08-12 持续至 2026-08-13

复现步骤:

  1. 在 Codex 中请求使用电脑控制插件列出当前打开的窗口。
  2. 插件调用 sky.list_windows()
  3. 运行立即失败,尚未读取到任何窗口。

错误信息:
EPERM: operation not permitted, lstat 'C:\Users\1\AppData\Local\OpenAI\Codex'

补充诊断:

  • 已明确授予 C:\Users\1\AppData\Local\OpenAI\Codex 的读取权限。
  • 授权后重置运行环境并再次调用,错误完全相同。
  • 对该路径执行只读检查同样返回 Access is denied
  • 已多次重启 Codex,问题仍然存在。
  • 插件没有切换、关闭或更改任何窗口。

预期结果:
sky.list_windows() 应返回当前可控制窗口的列表,不应因 Codex 自身应用目录的访问权限而失败。

请重点检查 Windows 沙箱向电脑控制 Node 运行库传递文件系统权限的流程。

What is the expected behavior?

希望codex可以接管我的电脑

Additional information

No response

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Reproduce the failure by running the reported sky.list_windows() entry point on Windows and inspect the EPERM lstat for the Codex directory. Trace the Windows sandbox-to-Node permission path; done means the call returns the controllable-window list after permission is granted without failing on Codex’s application directory.

Written by the indexing model from the issue text.

Assessment

Tech stack
node.js, rust
Domain
desktop, operating-systems, security
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.