OoO 7125ba09d3
All checks were successful
CD Pipeline / deploy (push) Successful in 1m16s
fix(post-3.5e): openclaw_answer 三個 store_conversation 呼叫點對齊新簽章
承接前一個 commit「store_conversation 簽章改 6 參數」後,遠端先前
b766edf 的「呼叫端縮成 3 args + 改用 chat_id」修法有兩個問題:

1. openclaw_answer(question) 函式 scope 中根本沒有 chat_id 變數,
   原本的 args=(chat_id, ...) 在執行時會 NameError,
   被 thread 內 except 吞掉,bug 還是發生(剛好相反方向)。
2. b766edf 漏改 L4166(Gemini 直接路徑),三個呼叫點不一致。

本 commit 將 L4113 / L4214 改回 6 個 positional args:
  (user_id=0, chat_id=0, question, response, source, used_sources)

對齊新簽章 (user_id, chat_id, user_message, bot_response, source='', used_sources=None)
全部 metadata(source / used_sources / chat_id)保留進 ai_insights.metadata_json。

Out-of-scope(暫不處理):
- user_id / chat_id 寫死 0 不修(待 openclaw_answer 函式接收 chat_id 參數的後續重構)
2026-04-28 12:29:48 +08:00
Description
EwoooC — 商品看板 + 業績報表 + AI KM (Flask + pgvector, Docker Compose on 188)
48 MiB
Languages
PostScript 53.9%
Python 37.7%
HTML 3.8%
CSS 1.9%
JavaScript 1.7%
Other 1%