AOSSIE-Org / AOSSIE-Org/Devr.AI

Blocking Supabase Writes Increasing Agent Response Latency

未關閉
#294 1 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視
主要語言
Python
星號
102
分支
137
PR 合併指標
30 天內沒有已合併 PR

描述

# Problem
```store_summary_to_database ``` was called directly within the agent's execution flow. This function performs a database upsert to Supabase. While the call is asynchronous (```await```), the agent's progress is still paused until the database confirms the write. Database I/O can be unpredictable and slow, which directly increases the latency of the user's message processing—even though the user doesn't need to wait for the summary to be saved before receiving a response.

### fix

To address this, the approach taken was to decouple the database write from the main agent execution flow, so that the summary storage is handled outside the immediate message-processing path rather than blocking the agent’s response generation.

貢獻指南

這個儲存庫沒有索引到貢獻指南

評估

這個 Issue 還沒有評估資料。

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。