Skip to content

fix(agent): add missing await on memory.add in DeepResearchAgent._summarizing - #2333

Open
Ricardo-M-L wants to merge 5 commits into
agentscope-ai:mainfrom
Ricardo-M-L:fix/deep-research-missing-await-and-none-check
Open

fix(agent): add missing await on memory.add in DeepResearchAgent._summarizing#2333
Ricardo-M-L wants to merge 5 commits into
agentscope-ai:mainfrom
Ricardo-M-L:fix/deep-research-missing-await-and-none-check

Conversation

@Ricardo-M-L

Copy link
Copy Markdown
Contributor

This PR addresses: fix(agent): add missing await on memory.add in DeepResearchAgent._summarizing

zhanghaochenFCB and others added 5 commits April 1, 2026 20:30
---------

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
…marizing

All other calls to self.memory.add() in this file use await (lines 229,
273, 288, 358, 404, 422), but the call in _summarizing() at line 973 is
missing it. This causes a "coroutine was never awaited" RuntimeWarning
and the memory is not updated.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@Ricardo-M-L Ricardo-M-L changed the title fix: fix(agent): add missing await on memory.add in DeepResearchAgent._summarizing fix(agent): add missing await on memory.add in DeepResearchAgent._summarizing Aug 17, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants