Unclear What exactly makes Claude Code treat a Code-tab script as written or changed by a mod or hook is not stated.
What
Two new protections in the REPL (the place where Claude runs short scripts and sees their results):
- Lists read from an MCP tool's text output (MCP is a way to plug outside tools into Claude) now refuse being turned into text, joined together, or searched for punctuation. The error begins "REPL: this value is a list, parsed from an MCP tool's text", and a related message says "A tool returned a list where text was expected".
- Scripts in the Code tab that a mod or a hook (a user-defined script that runs automatically at set points) wrote or changed are refused, with the message "Nothing ran: Claude Desktop doesn't run scripts that a mod or a hook wrote or changed."
Why
This changes which scripts run and how MCP output behaves in the REPL. A script that relied on treating an MCP list as plain text will now stop with an error, and a script edited by a mod or hook will not run.
Something disagreesSomething we can check disagrees with this entry, or the writer said they could not settle it.
The writer flagged doubt
What exactly makes Claude Code treat a Code-tab script as written or changed by a mod or hook is not stated.