Merge pull request #176 from sheffler/fixFirstProgressReport

progress_token is 0 on first tool-call and the return is taken mistakenly
This commit is contained in:
David Soria Parra 2025-01-30 16:00:01 +00:00 • committed by GitHub
commit 5e19c7cf73
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -602,7 +602,7 @@ class Context(BaseModel):
else None
)
if not progress_token:
if progress_token is None:
return
await self.request_context.session.send_progress_notification(