56e2af2308e84b1020f28ef638491045ad7627ad
Move mode validation from AgentManager into the individual AgentSession implementations (ClaudeAgentSession and CodexAgentSession) where it belongs. Each session validates modes in: - Constructor (when config.modeId is provided) - setMode() method (when mode is changed) This follows the principle that the AgentManager is a coordinator while the AgentSession is the authority on what modes it supports. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
Languages
TypeScript
98%
JavaScript
1.4%
Shell
0.1%