Forumics logo Forumics
Issue 01

Back to issue

All Cline known issues

CLAIM C228 Supported 2026-11-30

GitHub issue #15901 in cline/cline, created 2026-11-29 by Android-Login-Analysis and titled "`.clineignore` guard hook misses MCP/plugin tools and `@` mentions, a failing PreToolUse hook lets calls through, and scheduled runs override auto-approval silently", reports four cases in which a user-set restriction does not cover a route or stops working without notice, on CLI 3.0.75 and 3.0.76. First, MCP tools and plugin tools pass the `.clineignore` guard: with the guard installed, `read_files` on a protected file is cancelled, but an MCP tool or a plugin tool that reads or writes files is not checked at all, returning the protected file's content or writing into the protected folder, because the script lets every tool other than `read_files`, `editor`, `apply_patch`, and `run_commands` through, and the docs page does not say so. Second, an `@` mention sends a protected file to the model: with the guard installed, a prompt mentioning a protected file still puts the file's content into the first model request, because the CLI reads mentions itself while building the prompt, so no tool call happens and the hook never runs, and the hook section does not say that `@` mentions are not covered. Third, scheduled runs override auto-approval without notice: with auto-approval turned off in the saved settings (`"toolAutoApprove": false`), an ordinary `cline --act` run without a terminal refuses shell commands, file edits, and MCP calls, while a schedule created with `cline schedule create ... --mode act` ran `touch`, an `editor` write, an MCP tool that writes a file, and a `spawn_agent` call; `cline schedule create` prints only the new schedule with no notice, and the command has no option to limit which tools a scheduled run may use, although the runner supports a tool list. Fourth, a PreToolUse hook that fails lets the call through with no warning: when the hook itself fails, such as a bash syntax error from a missing `fi` or a first line naming an interpreter that is not installed, the call runs as if the hook had allowed it, covering shell commands, file writes, MCP tool calls, and subagent spawns, also in ACP sessions, and neither the `--json` output nor stderr shows a hook error. The report proposes fixes for each case: documenting the gaps or extending the guard, stating that `@` mentions are not seen by PreToolUse hooks or checking mentioned paths against the same hook, printing a notice when creating schedules and exposing the runner's tool list as an option, and treating a hook that cannot be started, exits non-zero without valid output, times out, or prints invalid JSON as a cancel with the error printed in the run output. The report also notes a companion issue about the plan-mode command guard.

Verbatim Excerpts from Cited Records
“The CLI has no allow or deny list, and the docs point users to PreToolUse hooks to block tool calls; the `.clineignore` page ships such a hook as the enforced file guard.”
— Android-Login-Analysis · cline/cline (issue 15901 opening body, What happened section) · 2026-11-29T04:22:12Z ·GitHub Issue ↗
“With the guard installed, `read_files` on a protected file is cancelled, but an MCP tool or a plugin tool that reads or writes files is not checked at all: it returns the protected file's content, or writes into the protected folder.”
— Android-Login-Analysis · cline/cline (issue 15901 opening body, What happened section, case 1) · 2026-11-29T04:22:12Z ·GitHub Issue ↗
“In every mode, a scheduled run approves its own tool calls, because nobody is there to approve them.”
— Android-Login-Analysis · cline/cline (issue 15901 opening body, What happened section, case 3) · 2026-11-29T04:22:12Z ·GitHub Issue ↗
“A PreToolUse hook that fails lets the call through, with no warning.”
— Android-Login-Analysis · cline/cline (issue 15901 opening body, What happened section, case 4 heading) · 2026-11-29T04:22:12Z ·GitHub Issue ↗
Counter-record: Issue remains open as of 2026-11-30 (last updated 2026-11-29T04:45:44Z). 2 comments read in total. linear-code[bot] (2026-11-29) linked the report to CLINE-3856. four1er (2026-11-29) said they are reproducing this now and preparing a fix, and will open a PR shortly. No maintainer response appears in the surveyed thread beyond that note. The claim documents only the original report, not a verified current state. Falsification probe: If GitHub issue #15901 is closed as fixed, as a duplicate, or as not planned, if the author edits the opening body so the quoted sentences no longer match verbatim, or if the author posts a retraction of the report, this claim drops to Withdrawn. Audit verification: Verified 100% continuous verbatim substring against official GitHub REST API by scripts/verify_claim_verbatim.py.