STUPID-2026-0138
Cline's Claude Code provider silently refuses permission-gated tool calls with no approval prompt
Why 2/10
Permission-gated calls are refused silently; no data or security impact.
- Scope
- 0/4
- Time, tokens or the agent's own working state only
- Recoverability
- 0/3
- Nothing was lost
- Did it happen
- 2/2
- Happened in real use
- Beyond the user
- 0/1
- Only the user's own non-production work
The score is the sum of these four factors. How each factor is scored · scored 2026-10-29
Instruction given
Using Cline's Claude Code provider, read and write a file outside the workspace folder and run a terminal command (`python3 -c "print(42)"`).
Expected behavior
A tool call that Claude Code's permission model requires approval for should surface an approval prompt to the user, or at minimum report why the call was refused.
Actual behavior
The out-of-workspace file access and the terminal command were both refused with no approval prompt and no visible explanation in Cline's UI — the model saw a "requires approval" error, but the user saw nothing actionable. Project-level permission rules in `.claude/settings.json` had no effect, while identical rules in the user-level `~/.claude/settings.json` worked. The reporter later found the cause in Claude Code's own CLI output: it prints "Ignoring 2 permissions.allow entries from .claude/settings.json: this workspace has not been trusted" when a workspace is untrusted, but Cline never surfaces that message, so the refusal looks unexplained.
Damage
No data loss or security impact reported. The cost is that a permission rule a developer explicitly configured at the project level silently does nothing in an untrusted workspace, with no indication to the user that this is happening or why — tool calls simply get refused. A Cline contributor (Dante-dan) confirmed the workspace-trust explanation but noted it does not by itself rule out a separate permission-merge bug. As of this incident's publication the issue is open with no fix merged.
Full write-up
A Cline user (csimonb), running VS Code extension v4.1.21 with the Claude Code provider (Claude Sonnet 5, Claude Code CLI 2.1.263), reported that any tool call needing Claude Code's permission — terminal commands, MCP tool calls, and reads or writes outside the workspace — is refused with no approval prompt. The issue gives five numbered reproduction steps: create a workspace folder and an outside folder, ask the agent to read/write the outside folder and run a shell command (both refused with no prompt), add permission rules to the project's .claude/settings.json (no effect), then move the identical rules to the user-level ~/.claude/settings.json, where they work. The reporter traced the cause to Claude Code's workspace-trust gate: the CLI logs "Ignoring 2 permissions.allow entries from .claude/settings.json: this workspace has not been trusted" when a folder hasn't been trusted, but Cline does not surface that message anywhere in its UI, so the user just sees tool calls fail for no stated reason. A Cline contributor (Dante-dan) confirmed the trust-gate finding while cautioning it doesn't rule out a separate permission-merge issue, and proposed exposing scoped launch-time permissions and documenting the trust requirement. The issue remains open with no fix merged as of this incident's publication.
Classification
- Agent
- Cline
- Failure mode
- Logic Error
- Root cause
- Other
- Domain
- Other
- MIT AI Risk Repository (our mapping)
- 7.3 Lack of capability or robustness taxonomy
- Source
- Github Issue
Related incidents
Cite this record
StupidLLM. "STUPID-2026-0138: Cline's Claude Code provider silently refuses permission-gated tool calls with no approval prompt." AI Agent Incident Database, 2026. https://www.stupidllm.com/incident/STUPID-2026-0138/ (accessed 2026-11-11). CC BY 4.0.
← STUPID-2026-0137By IDSTUPID-2026-0139 →
Get told when an agent breaks something
We document AI agent failures daily, severity-scored against a published scale. Each Monday, if any scored 7 or above that week — deleted data, leaked secrets, broken production — you get one email with the sources. When nothing did, you get nothing.
This database is callable over MCP — query it from inside your agent.