mirror of
https://github.com/getpaseo/paseo.git
synced 2026-07-29 12:01:31 +00:00
Prevents server crashes when invalid modes are passed to agents by validating mode IDs before attempting to set them on the SDK. - Export VALID_CLAUDE_MODES and VALID_CODEX_MODES from provider files - Add validateMode() function in agent-manager.ts - Apply validation in createAgent(), resumeAgent(), and setAgentMode() - Throws clear error listing valid modes when validation fails This fixes the crash when 'read-only' (Codex mode) was passed to a Claude agent. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>