agentscope-ai / agentscope-ai/agentscope-java
WorkspaceContextMiddleware.onSystemPrompt中的buildWorkspaceSection可能有eventLoop阻塞问题
未关闭
area/build
area/core/agent
area/core/memory
area/harness
question
- 主要语言
- Java
- 星标
- 5.6k
- 派生
- 1.3k
- 平均合并
- 4 天 12 小时
- 30 天内合并 PR
- 77
描述
WorkspaceContextMiddleware onSystemPrompt 是跑在caller线程上的,如果使用weflux的话,那就是跑在eventLoop上了,那么就会有阻塞的问题:
因为onSystemPrompt 里 buildWorkspaceSection 同步读 AGENTS.md/MEMORY.md/KNOWLEDGE.md + 额外文件(本地 filesystem 或远程 redis RemoteFilesystem)
io.agentscope.harness.agent.middleware.WorkspaceContextMiddleware#buildWorkspaceSection
另外但凡涉及到从远程remote store读取的,可能都有阻塞的问题,不知道官方何时能彻底修复。
贡献指南
评估
这个 Issue 还没有评估数据。