bug: reproducible ENOENT for missing image
What version of Codex is running?
0.1.2504172351
Which model were you using?
o4-mini
What platform is your computer?
Linux 5.15.167.4-microsoft-standard-WSL2 x86_64 x86_64
What steps can reproduce the bug?
Say
Implement the app ``manifest.json jsonc Copy Edit { "name": "X‑Cancel", "description": "Adds a red 𝔃 button to turn x.com → xcancel.com.", "version": "1.0.0", "manifest_version": 3, "icons": { "128": "icon128.png" }, /* optional */ "content_scripts": [ { "matches": ["*://*.x.com/*", "*://x.com/*"], // host‑permission pattern "js": ["content.js"], "css": ["styles.css"], "run_at": "document_idle" } ], "permissions": ["activeTab"] /* lets the script read & write location */ } ``
What is the expected behavior?
It will attempt to build the app, and not reference the file unsafely
What do you see instead?
node:internal/fs/promises:638
return new FileHandle(await PromisePrototypeThen(
^
Error: ENOENT: no such file or directory, open 'icon128.png'
at async open (node:internal/fs/promises:638:25)
at async Object.readFile (node:internal/fs/promises:1238:14)
at async WA (file:///home/jackmhny/.nvm/versions/node/v22.12.0/lib/node_modules/@openai/codex/dist/cli.js:271:8860)
at async file:///home/jackmhny/.nvm/versions/node/v22.12.0/lib/node_modules/@openai/codex/dist/cli.js:271:12843 {
errno: -2,
code: 'ENOENT',
syscall: 'open',
path: 'icon128.png'
}
Additional information
Happens every time, very repeatable
This issue has 2 comments on GitHub. Read the full discussion on GitHub ↗