forked from bkinnightskytw/code_work_spawner
正在 run responder 時,如果有發出 issue ,則不會觸發自動回應 #4
Loading…
Reference in New Issue
No description provided.
Delete Branch "%!s(<nil>)"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
目前用gosmee
分析:正在 run responder 時新 issue 無法觸發自動回應
透過程式碼檢查,整理出幾個可能的根本原因:
可能原因 1:Responder 決定
no_reply新 issue(沒有 mention trigger)觸發時,
trigger欄位會是"update"而非"mention"。如果 responder(AI)設定為只回應 mention,就會回傳no_reply而不發表留言。這是最常見的情況。確認方式:查看 log 是否出現:
可能原因 2:Webhook 在 gosmee client 啟動前送出
啟動流程為:
gosmee --output json client --new-url <local>取得 public URL(短暫連線)gosmee client <public_url> <local>程序步驟 2 和 3 之間有短暫空窗期。若 webhook 在步驟 3 完成前送達 gosmee relay,可能遺失。
可能原因 3:
_isLatestContributionFromBot誤判 skip若 responder 正在處理某 issue 並已發表 bot 留言,同時期間收到另一個 webhook(包含 bot 的留言),系統會正確 skip(因為 latest comment 是 bot)。
但如果時序問題導致新 issue 的 webhook 附帶了 bot 的留言資訊,也可能誤 skip。
可能原因 4:
unawaited(_flushQueuedIssues())例外被吞掉_scheduleFlush()使用unawaited呼叫_flushQueuedIssues()。若_flushQueuedIssues內部丟出未捕捉的例外(例如 DB 操作失敗),錯誤會被靜默忽略,後續 issue 無法處理。建議的除錯步驟
gitea/gosmee webhook accepted訊息(確認 webhook 有送達)skip issue ... reason=...decision值logDebug訊息可能的程式碼改善
在
_scheduleFlush中加入例外處理,避免錯誤被靜默吞掉:您是否可以提供觸發時的 log 輸出,以便進一步確認是哪個環節出問題?
Automation note: generated by
code_work_spawnerviagiteaas@MarioYang.