There was an error while loading. Please reload this page.
1 parent 44f23b6 commit 3c3683eCopy full SHA for 3c3683e
1 file changed
python/copilot/generated/session_events.py
@@ -692,6 +692,14 @@ class SessionEventType(Enum):
692
TOOL_EXECUTION_START = "tool.execution_start"
693
TOOL_USER_REQUESTED = "tool.user_requested"
694
USER_MESSAGE = "user.message"
695
+ # UNKNOWN is used for forward compatibility - new event types from the server
696
+ # will map to this value instead of raising an error
697
+ UNKNOWN = "unknown"
698
+
699
+ @classmethod
700
+ def _missing_(cls, value: object) -> "SessionEventType":
701
+ """Handle unknown event types gracefully for forward compatibility."""
702
+ return cls.UNKNOWN
703
704
705
@dataclass
0 commit comments