In sandbox commands like flutter test / flutter analyze have no respond
Open 💬 8 comments Opened Mar 18, 2026 by wxzhuhua
💡 Likely answer: A maintainer (github-actions[bot], contributor)
responded on this thread — see the highlighted reply below.
What version of Codex CLI is running?
0.115.0
What subscription do you have?
external provider
Which model were you using?
gpt-5.6-codex
What platform is your computer?
Microsoft Windows NT 10.0.22631.0 x64
What terminal emulator and version are you using (if applicable)?
VSCode
What issue are you seeing?
In Codex CLI sandbox mode, Flutter verification commands are not reliably executable, which blocks normal fix -> verify loops in Flutter repos.
What steps can reproduce the bug?
- Open a Flutter project in Codex CLI (sandboxed environment).
- Ask Codex to run
flutter testorflutter analyze. - Observe that these commands are not reliably runnable in this sandbox workflow.
What is the expected behavior?
Codex CLI should be able to run standard Flutter validation commands in sandbox mode, same as other normal CLI checks.
Additional information
Please provide stable sandbox support for Flutter toolchain verification commands (flutter test, flutter analyze), or a documented Flutter-capable sandbox profile.
8 Comments
Potential duplicates detected. Please review them and close your issue if it is a duplicate.
Powered by Codex Action
No duplicate found.
The tool you're using likely needs some resource that is not available by policy in the sandbox. You'll need to determine what resource that is and configure the sandbox policy accordingly if you want it to run in the sandbox. Some tool maintainers have updated their tools to work better inside of agentic coding sandboxes. You might want to report the issue to the tool maintainer.
I'm experiencing the same problem. I'm using the codex vscode extension on windows and it cannot run flutter/dart commands without hanging indefinitely.
I end up having to run the commands myself and provide the outputs to codex.
I got around this by adding a context rule to codex. I have
.agent/rulesdirectory in my workspace (that I always reference with each new codex session) with aflutter_rules.mdfile where I added the following:Codex will prompt me to allow running flutter and dart commands outside the sandbox for the first time and then I'll allow for the current session. With this It can run the flutter/dart commands without hanging.
I did not find a way to explicitly allow certain commands to run outside the sandbox and if possible it would be great to know how to do this.
As of now this is the solution I found with the help of Codex 😅
I’m seeing a similar issue on Windows in my multi-repo VS Code workspace with the Codex extension, where common Flutter/Dart commands can either hang indefinitely or fail inside the Codex sandbox.
Environment:
0.142.0-alpha.6openai.chatgpt-26.616.51431-win32-x6410.0.262003.44.2 stable3.12.2<USERPROFILE>\flutter[windows] sandbox = "elevated"Inside the Codex Windows sandbox, bare Flutter command lookup is unreliable.
For example,
flutter --versioncan fail with:The term 'flutter' is not recognized as a name of a cmdlet, function, script file, or executable program.This happens even though
PATHcontains<USERPROFILE>\flutter\bin.The same command works in the normal VS Code terminal, and it also works when run outside the Codex sandbox. Inside the sandbox, absolute path execution works:
& <USERPROFILE>\flutter\bin\flutter.bat --versionflutter analyze --no-pubalso works across multiple Flutter repos when invoked via absolute path and explicit working directory.So this looks like an issue with Codex’s native Windows sandbox command resolution and/or
.bathandling for Flutter tooling, rather than a broken Flutter install or repo-specific problem.Before switching from
unelevatedtoelevatedsandbox, Flutter commands could often hang/no-response. After switching toelevated, the full hangs were harder to reproduce, but bareflutterlookups inside the sandbox are still unreliable.Current workaround: use
<USERPROFILE>\flutter\bin\flutter.batdirectly, or a wrapper that resolves Flutter explicitly and kills the child process tree on timeout.I had success adding this modified version to the AGENTS.md on Windows 11.
Thanks! It worked for me.