File tree Expand file tree Collapse file tree 1 file changed +7
-1
lines changed
Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change 4444 McpServerStdio ,
4545 PermissionOption ,
4646 ResourceContentBlock ,
47+ SessionInfoUpdate ,
4748 SseMcpServer ,
4849 TextContentBlock ,
4950 ToolCallProgress ,
@@ -129,6 +130,10 @@ def __init__(self) -> None:
129130 self .notifications : list [SessionNotification ] = []
130131 self .ext_calls : list [tuple [str , dict ]] = []
131132 self .ext_notes : list [tuple [str , dict ]] = []
133+ self ._agent_conn = None
134+
135+ def on_connect (self , conn ) -> None :
136+ self ._agent_conn = conn
132137
133138 def queue_permission_cancelled (self ) -> None :
134139 self .permission_outcomes .append (RequestPermissionResponse (outcome = DeniedOutcome (outcome = "cancelled" )))
@@ -167,7 +172,8 @@ async def session_update(
167172 | ToolCallProgress
168173 | AgentPlanUpdate
169174 | AvailableCommandsUpdate
170- | CurrentModeUpdate ,
175+ | CurrentModeUpdate
176+ | SessionInfoUpdate ,
171177 ** kwargs : Any ,
172178 ) -> None :
173179 self .notifications .append (SessionNotification (session_id = session_id , update = update , field_meta = kwargs or None ))
You can’t perform that action at this time.
0 commit comments