fix: Instance <Account> is not bound to a Session (#20347)

Signed-off-by: -LAN- <laipz8200@outlook.com>
This commit is contained in:
-LAN- 2025-05-28 16:36:08 +08:00 committed by GitHub
parent f233a64eb5
commit eaaf551497
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -455,8 +455,6 @@ class EasyUIBasedGenerateTaskPipeline(BasedGenerateTaskPipeline, MessageCycleMan
agent_thought: Optional[MessageAgentThought] = (
db.session.query(MessageAgentThought).filter(MessageAgentThought.id == event.agent_thought_id).first()
)
db.session.refresh(agent_thought)
db.session.close()
if agent_thought:
return AgentThoughtStreamResponse(