Claude Code Fixes Code Mode Worktrees, Permission Replies and Session Resume
Claude Code 2.1.325 fixes several problems in the experimental Code Mode. Scripts now respect a worktree entered with EnterWorktree and no longer write ~ paths into the project. Words typed with a Yes at a permission dialog now reach Claude, and a resumed session waits for the user's next prompt.
Key Takeaways
- Code Mode scripts now respect
EnterWorktreeworktrees. ~paths are no longer written into the project.- Words typed with a Yes at a permission dialog now reach Claude.
- Resumed sessions no longer start work on their own.
/mcpno longer shows a server as connected after its sign-in expires.- The fixes follow the experimental Code Mode introduced in 2.1.323.
Worktrees and paths
Code Mode scripts ignored a worktree entered with EnterWorktree and could write ~ paths into the project. Both are fixed. /mcp also stopped showing an MCP server as connected after its sign-in expired.
Permission and plan approvals
Words typed together with a Yes at a permission dialog or plan approval did not reach Claude in Code Mode. They now do.
Resuming a session
Claude started work by itself when a session that ended during a Code Mode script was resumed. It now waits for the user's next prompt.