Skip to content

Commit b8c9f27

Browse files
committed
fix: make check happy
Signed-off-by: Chojan Shang <psiace@apache.org>
1 parent f749650 commit b8c9f27

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

tests/conftest.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@
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))

0 commit comments

Comments
 (0)