[BUG] Scheduled task execution ignores UI-configured permission mode and model settings
Preflight Checklist
- [x] I have searched existing issues and this hasn't been reported yet
- [x] This is a single bug report (please file separate reports for different bugs)
- [x] I am using the latest version of Claude Code
What's Wrong?
Summary
When I configure a scheduled task's execution options in the app UI (permission mode set to "skip/bypass permissions" and model set to Claude Sonnet 5), those settings are not respected when the task actually runs. At execution time, the task instead runs with manual permission prompts and the Opus model, as if the UI settings were never saved or were reset before the run.
Environment
- OS: Windows 11 Pro (build 10.0.26200)
- Claude Code (app/CLI) version: [버전 확인 후 기입 — 프로그램 정보/도움말 메뉴에서 확인]
- Affected: multiple recurring scheduled tasks (4 different tasks) in the same project
Steps to reproduce
- Create a scheduled task in the app.
- In the task's settings UI, set permission mode to "skip permissions" (bypass/auto-approve) and model to Claude Sonnet 5.
- Save the settings.
- Let the scheduled task run automatically (or trigger it).
- Observe the actual run: it prompts for manual permission approval and/or runs on Opus instead of Sonnet 5.
Expected behavior
The scheduled task should run using the permission mode and model configured in the UI (skip permissions, Sonnet 5).
Actual behavior
The task reverts to manual permission approval and the Opus model, ignoring the saved configuration.
Additional context
- This is not a
.claude/settings.jsonallowlist issue — the fixed commands used by these tasks are already correctly allowlisted and pass without prompting when run manually/interactively. - The issue only appears at scheduled-task execution time, specifically with the permission-mode and model settings configured per-task in the UI.
- This happens consistently across multiple separate scheduled tasks, not a one-off.
- First observed: 2026-07-20.
What Should Happen?
한번 지정한 설정은 바뀌면 안된다.
Error Messages/Logs
오류출력은 없다, 지정한 설정이 자꾸 지정되지않은 디폴트값으로 회귀한다.
Steps to Reproduce
없음
Claude Model
Sonnet (default)
Is this a regression?
No, this never worked
Last Working Version
_No response_
Claude Code Version
2.1.158
Platform
Other
Operating System
Windows
Terminal/Shell
PowerShell
Additional Information
_No response_
This issue has 2 comments on GitHub. Read the full discussion on GitHub ↗