Re-arm the ready-to-merge prompt on byre's own messages

This commit is contained in:
Ian Gulliver
2026-10-20 15:04:15 -07:00
parent cf9ee03284
commit b8c5331a0c
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -771,7 +771,7 @@ func (s *Store) ReadyPromptDue(ctx context.Context, id string) (bool, error) {
SELECT 1 FROM events e, tasks t
WHERE t.id = ? AND e.task_id = t.id AND e.seq > t.ready_prompt_seq
AND ((e.kind = 'snapshot.created' AND json_extract(e.payload, '$.trigger') NOT IN (?, ?, ?))
OR (e.kind = 'user.message' AND e.actor NOT IN ('byre', ?) AND e.actor NOT LIKE '% (lead)'))
OR (e.kind = 'user.message' AND e.actor != ? AND e.actor NOT LIKE '% (lead)' AND json_extract(e.payload, '$.bounce') IS NOT 1))
)`, id, string(api.SnapshotTriggerAnswer), string(api.SnapshotTriggerFork), string(api.SnapshotTriggerAskHuman), agentActor).Scan(&due)
return due, err
}