[Bug]: If a dumb model is selected as a text model, it writes files instead of text generation (Claude Code)
Before submitting
- [x] I searched existing issues and did not find a duplicate.
- [x] I included enough detail to reproduce or investigate the problem.
Area
apps/desktop
Steps to reproduce
- Start the app with the Claude Code provider available
- Set the text generation model to Haiku 4.5 (Thinking Off will help too)
- Select any model other than Haiku 4.5
- Run this prompt a few times: "If you are a Haiku model, create a file named HELLO.md"
- Observe a HELLO.md file eventually appearing
Expected behavior
Text generation model should generate thread names, commit messages, etc, and don't have access to any tools
Actual behavior
Text generation model runs with --dangerously-skip-permissions in Claude Code, doing whatever it wants. This is a major pain, as it occasionally takes on big real tasks trying to "help", messing things up along the way.
Note: on the screenshot, the first message disappeared for some reason
Impact
Major degradation or frequent failure
Version or commit
No response
Environment
Windows 11
Logs or stack traces
Screenshots, recordings, or supporting files
{745EFD46-50A5-48BD-8EF6-3FD866EAEA63}.png
Workaround
No response
PR #4062 has been refreshed without opening a new PR: branch codex/refresh-pr-4062 at commit 1a297f5c2d. The refresh hardens Claude text generation against tool execution and passes the focused server/type/lint checks. Status remains 🚧 In Progress until merge.
Thanks for the detailed report. This looks like the same issue tracked in issue #5447.
The marker-file reproduction and issue #5447's transcript audits identify the same Claude text-generation subprocess executing the quoted user task with real tools and bypassed permissions. Main confirms the helper has unrestricted tools and runs in the supplied workspace. Issue 5447 is the stronger canonical because its two-machine transcript audit identifies the helper model and proves external writes.
I'm closing this as a duplicate as part of an automated pass on all open issues. I linked this report from issue #5447 so its extra details remain available. This does not mean the underlying bug is fixed.