You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# Adding another message just to make it even less likely that this tool will exit before the client can stop it
186
+
# Adding another message just to make it even less
187
+
# likely that this tool will exit before the client
188
+
# can stop it
186
189
awaitanyio.sleep(0.3)
187
190
188
191
awaitctx.session.send_log_message(
@@ -1111,7 +1114,8 @@ async def run_tool():
1111
1114
tg.cancel_scope.cancel()
1112
1115
1113
1116
# Make sure we only have one notification.. otherwise the test is flaky
1114
-
# More than one notification means the tool likely could have finished already and will not call the message handler again upon resumption
1117
+
# More than one notification means the tool likely could have finished
1118
+
# already and will not call the message handler again upon resumption
1115
1119
assertlen(captured_notifications) ==1
1116
1120
1117
1121
# Store pre notifications and clear the captured notifications
@@ -1140,7 +1144,9 @@ async def run_tool():
1140
1144
metadata=ClientMessageMetadata(
1141
1145
resumption_token=captured_resumption_token,
1142
1146
)
1143
-
# We need to wait for the tool to send another message so this doesn't deadlock. Fixing is out of scope for this PR. More details in https://github.com/modelcontextprotocol/python-sdk/issues/860
1147
+
# We need to wait for the tool to send another message so this doesn't
1148
+
# deadlock. Fixing is out of scope for this PR. More details in
0 commit comments