codex - 💡(How to fix) Fix Codex flickering issue on running "npm build" via it [1 participants]

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…
GitHub stats
openai/codex#19535Fetched 2026-04-26 05:15:39
View on GitHub
Comments
0
Participants
1
Timeline
7
Reactions
0
Author
Participants
Timeline (top)
labeled ×4unlabeled ×2cross-referenced ×1
RAW_BUFFERClick to expand / collapse

What version of Codex CLI is running?

codex-cli 0.125.0

What subscription do you have?

Pro

Which model were you using?

gpt-5.5

What platform is your computer?

No response

What terminal emulator and version are you using (if applicable)?

Termux

What issue are you seeing?

Codex terminal flickers/re-renders repeatedly when running npm build after sandbox access is granted.

What steps can reproduce the bug?

Steps to reproduce:

  1. Open Codex terminal/workspace.

  2. Load a Node.js project (React/Vite/Next app).

  3. Ask Codex to run: npm run build

  4. When Codex requests sandbox access/permission, click Allow.

  5. Let Codex execute the build in its terminal.

  6. Observe terminal output starts flickering/repainting repeatedly (appears stuck in refresh loop).

Repro frequency:

  • Happens every time / intermittently (choose one)

Expected: Build runs once and exits normally.

Actual: Terminal flickers repeatedly and build appears stuck.

What is the expected behavior?

No response

Additional information

No response

extent analysis

TL;DR

The issue can be potentially resolved by investigating the compatibility of the Codex CLI version with the Termux terminal emulator and the Node.js project setup.

Guidance

  • Verify that the Codex CLI version 0.125.0 is compatible with the Termux terminal emulator, as this combination might be causing the flickering issue.
  • Check the Node.js project configuration to ensure it is set up correctly for the Codex environment, particularly after granting sandbox access.
  • Try running the npm build command outside of the Codex terminal to see if the issue persists, which can help determine if the problem is specific to the Codex integration.
  • Consider testing with a different terminal emulator to isolate if the issue is Termux-specific.

Example

No specific code snippet can be provided without more details on the project setup, but ensuring that the npm build script is correctly defined in the project's package.json file is a good starting point.

Notes

The lack of information about the computer platform and the specific Node.js project setup limits the ability to provide a more targeted solution. Additionally, the reproducibility of the issue ("Happens every time / intermittently") is unclear, which could affect the approach to resolving the problem.

Recommendation

Apply workaround: Given the information, trying a different terminal emulator or adjusting the project setup might offer a temporary solution until the root cause is identified and addressed.

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING

codex - 💡(How to fix) Fix Codex flickering issue on running "npm build" via it [1 participants]