codex - 💡(How to fix) Fix macOS app + CLI: `js_repl = true` in config, but no `js_repl` tool in session [1 comments, 2 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#18328Fetched 2026-04-18 05:55:56
View on GitHub
Comments
1
Participants
2
Timeline
10
Reactions
0
Timeline (top)
labeled ×5renamed ×4commented ×1

On macOS, ~/.codex/config.toml had js_repl = true, but the active session did not expose any js_repl tool/capability.

The same problem was observed both in the Codex desktop app and in the Codex CLI.

That makes skills such as playwright-interactive unusable even though the feature appears enabled in config.

Root Cause

  • It breaks skills that declare js_repl as a hard precondition.
  • It is confusing because the source of truth is split between config state and actual session capability state.
  • From inside the session, there is no first-class signal that says: "configured but not active in this session".
  • The issue is more severe because it is not isolated to one surface; it affects both the app and the CLI.

Code Example

[features]
js_repl = true
RAW_BUFFERClick to expand / collapse

Summary

On macOS, ~/.codex/config.toml had js_repl = true, but the active session did not expose any js_repl tool/capability.

The same problem was observed both in the Codex desktop app and in the Codex CLI.

That makes skills such as playwright-interactive unusable even though the feature appears enabled in config.

Environment

  • Platform: macOS
  • Codex App version: 26.415.21839 (1763)
  • Also reproduced in: Codex CLI

Config / context

[features]
js_repl = true

Also present in the same config:

  • sandbox_mode = "danger-full-access"
  • mcp_servers.playwright configured

Steps to reproduce

  1. Enable js_repl = true in ~/.codex/config.toml.
  2. Start a fresh Codex desktop app session on macOS, or a fresh Codex CLI session.
  3. Try to use a workflow that depends on js_repl (for example playwright-interactive).
  4. Check the actually available tools/capabilities in the session.

Expected behavior

One of these should happen consistently:

  • js_repl is actually available in the session after restart, or
  • Codex explicitly reports that the feature is enabled in config but not active in the current session, with a concrete remediation path.

Actual behavior

  • The config reports js_repl = true.
  • The running session still has no usable js_repl tool.
  • The same mismatch was observed in both the desktop app and the CLI.
  • The mismatch is only discoverable indirectly by inspecting config and then noticing the tool is absent.

Why this is a problem

  • It breaks skills that declare js_repl as a hard precondition.
  • It is confusing because the source of truth is split between config state and actual session capability state.
  • From inside the session, there is no first-class signal that says: "configured but not active in this session".
  • The issue is more severe because it is not isolated to one surface; it affects both the app and the CLI.

extent analysis

TL;DR

The js_repl feature is not being exposed in the active session despite being enabled in the ~/.codex/config.toml file.

Guidance

  • Verify that the js_repl feature is correctly configured in the ~/.codex/config.toml file and that the file is being read correctly by the Codex app and CLI.
  • Check if there are any other configuration options or dependencies that need to be set for js_repl to work, such as specific mcp_servers.playwright settings.
  • Try restarting the Codex app or CLI after enabling js_repl to see if the feature becomes available.
  • Investigate if there are any version-specific issues with the Codex app or CLI that might be causing the js_repl feature to not work as expected.

Example

No code snippet is provided as the issue seems to be related to configuration and feature exposure rather than code implementation.

Notes

The issue seems to be related to the discrepancy between the configured state and the actual session capability state. It's unclear if this is a bug or an intended behavior, and further investigation is needed to determine the root cause.

Recommendation

Apply workaround: Try restarting the Codex app or CLI after enabling js_repl to see if the feature becomes available, and investigate other configuration options that might be affecting the feature's availability.

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…

FAQ

Expected behavior

One of these should happen consistently:

  • js_repl is actually available in the session after restart, or
  • Codex explicitly reports that the feature is enabled in config but not active in the current session, with a concrete remediation path.

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 macOS app + CLI: `js_repl = true` in config, but no `js_repl` tool in session [1 comments, 2 participants]