gemini-cli - 💡(How to fix) Fix Sandbox mode fails in Gemini CLI 0.42.0 with "Unknown argument: c"; works in 0.41.2

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…
RAW_BUFFERClick to expand / collapse

What happened?

Gemini CLI sandbox mode appears to be broken in version 0.42.0.

When I run Gemini CLI normally without sandboxing, it starts successfully. However, when I enable Docker sandboxing using either -s or GEMINI_SANDBOX=docker, Gemini CLI exits immediately with:

Unknown argument: c

### What did you expect to happen?

The issue only appears after enabling sandboxing. Normal Gemini CLI startup worked before sandboxing was enabled.
The same machine, same Docker installation, same repo, and same user account work correctly after downgrading to 0.41.2, so this looks like a regression in 0.42.0.

### Client information

About Gemini CLI                                                                                                                                      
CLI Version                                         0.41.2                                                                                           
Git Commit                                          b0c7a17                                                                                           
Model                                               Auto (Gemini 3)                                                                                   
Sandbox                                             sandbox-0.41.2-0                                                                                  
OS                                                  linux                                                                                             
Auth Method                                         Signed in with Google                
Tier                                                Gemini Code Assist in Google One AI Pro  

### Login information

Google Account

### Anything else we need to know?

Gemini CLI version with issue: 0.42.0
Gemini CLI version that works: 0.41.2
Installed via: npm
OS: Linux / Ubuntu
Kernel: 6.8.0-52-generic
Node: v24.15.0 via NVM
Shell/terminal: GNOME Terminal / Ubuntu terminal
Sandbox provider: Docker
Auth type: OAuth personal
Docker: working without sudo

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

gemini-cli - 💡(How to fix) Fix Sandbox mode fails in Gemini CLI 0.42.0 with "Unknown argument: c"; works in 0.41.2