The current session still has no terminal, file-reading, code-editing, or browser tools attached, so I cannot actually inspect or modify anything

Open 💬 3 comments Opened Jul 10, 2026 by NoWorldzz
💡 Likely answer: A maintainer (github-actions[bot], contributor) responded on this thread — see the highlighted reply below.

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

26.709.11516 (macOS)

What subscription do you have?

1

What platform is your computer?

_No response_

What issue are you seeing?

Version:
OpenAI Codex CLI v0.144.1
ChatGPT Desktop 26.709.11516 (macOS)

Repro:

  1. Start codex
  2. Ask:

请列出你当前拥有的全部工具,不要解释。

Output includes:
functions.exec

  1. Ask:

请使用 functions.exec 执行:
pwd

Expected:
functions.exec is invoked.

Actual:
"当前会话未实际暴露可调用的 functions.exec 工具,因此无法执行 pwd。"

Additional:

  • MCP starts successfully.
  • computer-use no longer reports startup errors.
  • Tool registry lists exec, but runtime does not expose it to the agent.

What steps can reproduce the bug?

Version:
OpenAI Codex CLI v0.144.1
ChatGPT Desktop 26.709.11516 (macOS)

Repro:

  1. Start codex
  2. Ask:

请列出你当前拥有的全部工具,不要解释。

Output includes:
functions.exec

  1. Ask:

请使用 functions.exec 执行:
pwd

Expected:
functions.exec is invoked.

Actual:
"当前会话未实际暴露可调用的 functions.exec 工具,因此无法执行 pwd。"

Additional:

  • MCP starts successfully.
  • computer-use no longer reports startup errors.
  • Tool registry lists exec, but runtime does not expose it to the agent.

What is the expected behavior?

_No response_

Additional information

_No response_

View original on GitHub ↗

3 Comments

github-actions[bot] contributor · 1 month ago

English translation:

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

26.709.11516 (macOS)

What subscription do you have?

1

What platform is your computer?

_No response_

What issue are you seeing?

Version:
OpenAI Codex CLI v0.144.1
ChatGPT Desktop 26.709.11516 (macOS)

Repro:

  1. Start codex
  2. Ask:

Please list all the tools you currently have, without explanation.

Output includes:
functions.exec

  1. Ask:

Please use functions.exec to run:
pwd

Expected:
functions.exec is invoked.

Actual:
"The current session does not actually expose a callable functions.exec tool, so pwd cannot be executed."

Additional:

  • MCP starts successfully.
  • computer-use no longer reports startup errors.
  • Tool registry lists exec, but runtime does not expose it to the agent.

What steps can reproduce the bug?

Version:
OpenAI Codex CLI v0.144.1
ChatGPT Desktop 26.709.11516 (macOS)

Repro:

  1. Start codex
  2. Ask:

Please list all the tools you currently have, without explanation.

Output includes:
functions.exec

  1. Ask:

Please use functions.exec to run:
pwd

Expected:
functions.exec is invoked.

Actual:
"The current session does not actually expose a callable functions.exec tool, so pwd cannot be executed."

Additional:

  • MCP starts successfully.
  • computer-use no longer reports startup errors.
  • Tool registry lists exec, but runtime does not expose it to the agent.

What is the expected behavior?

_No response_

Additional information

_No response_

<!-- codex-issue-translator -->

github-actions[bot] contributor · 1 month ago

Potential duplicates detected. Please review them and close your issue if it is a duplicate.

  • #31894
  • #31843

Powered by Codex Action

NoWorldzz · 1 month ago

Codex 桌面版更新后工作区工具无法挂载 - 修复指南
问题现象
Codex 桌面版(ChatGPT.app 内嵌版)更新后,工作区工具(workspace tools)始终无法挂载,文件系统操作、文档编辑等工具不可用。

根因
更新后 ~/.codex/config.toml 中 profile 级别的 sandbox_mode = "workspace-write" 与需求不兼容。该模式下沙箱根目录数量为 0(writableRootCount: 0),导致工作区工具无法挂载。

即使顶层设置了 sandbox_mode = "danger-full-access",profile 级别配置也会覆盖顶层设置,手动改顶层无效。

解决方案
步骤一:编辑配置文件
bash
vim ~/.codex/config.toml
找到 [profiles.<你的profile名>] 段,删除或注释掉:

toml
sandbox_mode = "workspace-write"
确保顶层有(或添加):

toml
sandbox_mode = "danger-full-access"
示例 diff:

diff
[profiles.tokenpower]
model_provider = "tokenpower"
model = "gpt-5.5"
model_catalog_json = "cc-switch-model-catalog.json"
model_context_window = 1000000
approval_policy = "on-request"
-sandbox_mode = "workspace-write"
步骤二:重启 Codex 桌面版
注意:修改配置后必须完全退出 Codex 桌面版再重新打开,仅新建会话不会重载配置。

验证方式
打开 Codex 桌面版日志(~/Library/Logs/com.openai.codex/),查找最新日志中的 responseSandboxPolicy:

responseSandboxPolicy={"type":"dangerFullAccess",...}
确认 type 为 dangerFullAccess 即生效。

环境信息
Codex 桌面版版本:v26.707.31428(ChatGPT.app 内嵌)
Runtime 版本:v26.709.11516
CLI 版本:0.144.1
系统:macOS 26.5.1(Apple Silicon)