The BaseSchema has use_enum_values=True which makes Pydantic store enum values as strings. Added _get_mode() helper to convert back to PermissionMode enum before passing to agent methods. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
The BaseSchema has use_enum_values=True which makes Pydantic store enum values as strings. Added _get_mode() helper to convert back to PermissionMode enum before passing to agent methods. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>