claude-code - 💡(How to fix) Fix [BUG] Auto mode injects system reminder that suppresses AskUserQuestion in skills

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…

Error Message

Error Messages/Logs

Root Cause

This is a distinct root cause from the sub-agent/fork context issues reported in #34592, #30523, and #29547. Those describe the tool not being available in non-main-session contexts. This bug affects the main session — the tool is available but the model is instructed not to use it.

Code Example

function yz5(H) {
  if (H.reminderType === "sparse") return Iz5();      // "Auto mode still active..."
  else if (H.reminderType === "once") return Sz5();    // <-- THE CULPRIT
  return hz5();                                         // "## Auto Mode Active\nAuto mode is active. ..."
}

function Sz5() {
  return o_([w8({
    content: "The user has asked you to work without stopping for clarifying questions. When you'd normally pause to check, make the reasonable call and continue; they'll redirect if needed.",
    isMeta: !0
  })])
}

---



---

---
   name: test-ask
   description: Test AskUserQuestion in auto mode
   allowed-tools: Read, AskUserQuestion
   ---
   Use AskUserQuestion to ask the user which option they prefer: A, B, or C.
   Then report their answer.
RAW_BUFFERClick to expand / collapse

Preflight Checklist

  • I have searched existing issues and this hasn't been reported yet
  • This is a single bug report (please file separate reports for different bugs)
  • I am using the latest version of Claude Code

What's Wrong?

What's Wrong?

Auto mode injects a hardcoded system reminder that instructs the model to never pause for clarifying questions. This causes AskUserQuestion calls in skills to be silently skipped or auto-completed with empty answers — even when the skill explicitly lists AskUserQuestion in its allowed-tools.

This is a distinct root cause from the sub-agent/fork context issues reported in #34592, #30523, and #29547. Those describe the tool not being available in non-main-session contexts. This bug affects the main session — the tool is available but the model is instructed not to use it.

Root Cause (found via binary analysis)

The Claude Code binary (tested on v2.1.142) contains a function yz5() that selects between three auto-mode reminder variants:

function yz5(H) {
  if (H.reminderType === "sparse") return Iz5();      // "Auto mode still active..."
  else if (H.reminderType === "once") return Sz5();    // <-- THE CULPRIT
  return hz5();                                         // "## Auto Mode Active\nAuto mode is active. ..."
}

function Sz5() {
  return o_([w8({
    content: "The user has asked you to work without stopping for clarifying questions. When you'd normally pause to check, make the reasonable call and continue; they'll redirect if needed.",
    isMeta: !0
  })])
}

The "once" reminder variant (Sz5()) is injected as a system-level message (isMeta: true) and tells the model:

"The user has asked you to work without stopping for clarifying questions. When you'd normally pause to check, make the reasonable call and continue; they'll redirect if needed."

The model obeys this instruction and auto-completes AskUserQuestion with empty input rather than presenting it to the user.

Trigger condition

This fires when permissions.defaultMode is set to "auto" in ~/.claude/settings.json. The reminder is injected into every session, including devcontainer sessions where settings.json is mounted from the host.

Why This Is a Bug

Auto mode bundles two conceptually separate concerns into one toggle:

  1. Permission auto-classification — the safety classifier that auto-approves low-risk tool calls
  2. "No clarifying questions" reminder — a system prompt injection that suppresses interactive prompts

These should be independent. A user who wants auto-approved permissions does not necessarily want skills to lose their ability to gather structured input via AskUserQuestion. The reminder makes no distinction between:

  • Free-text intent-disambiguation pauses (reasonable to skip in autonomous mode)
  • Structured AskUserQuestion calls in skills that are explicitly part of the skill's designed workflow (should never be suppressed)

What Should Happen?

Expected Behavior

AskUserQuestion should always present to the user and wait for input when called from a skill that explicitly declares it in allowed-tools, regardless of the active permission mode.

Suggested Fix

Either:

  • Decouple the "no clarifying questions" reminder from auto mode entirely, making it a separate setting
  • Scope the reminder to exclude AskUserQuestion calls that originate from skills with it in their allowed-tools
  • Remove the "once" reminder variant — the permission classifier already handles autonomy; the prompt injection is redundant and harmful

Error Messages/Logs

Steps to Reproduce

  1. Set "defaultMode": "auto" in ~/.claude/settings.json
  2. Create a skill that uses AskUserQuestion:
    ---
    name: test-ask
    description: Test AskUserQuestion in auto mode
    allowed-tools: Read, AskUserQuestion
    ---
    Use AskUserQuestion to ask the user which option they prefer: A, B, or C.
    Then report their answer.
  3. Invoke the skill: /test-ask
  4. Observe: the model skips the question and proceeds as if the user answered

Claude Model

Opus

Is this a regression?

I don't know

Last Working Version

No response

Claude Code Version

2.1.142

Platform

Anthropic API

Operating System

Ubuntu/Debian Linux

Terminal/Shell

Other

Additional Information

Related Issues

  • #29547 — AskUserQuestion silently returns empty answers inside plugin skills
  • #29774 — AskUserQuestion auto-selects without waiting for user input in custom commands/skills
  • #34592 — AskUserQuestion unavailable in all sub-agent contexts (catalogs broader pattern)
  • #30523 — AskUserQuestion returns empty inside Skill tool
  • #30563 — AskUserQuestion returns empty when PreToolUse hook + skill allowed-tools are both present
  • #9846 — AskUserQuestion tool doesn't work in skill until plan mode toggled

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

claude-code - 💡(How to fix) Fix [BUG] Auto mode injects system reminder that suppresses AskUserQuestion in skills