docs(openclaw): document issue 25 duplicate porridge logging & update triage filter

This commit is contained in:
Moritz Graf
2026-10-12 12:09:57 +02:00
parent 3b190988be
commit 4831147087
3 changed files with 37 additions and 3 deletions
+2 -2
View File
@@ -49,12 +49,12 @@ def triage_agent_session(agent, topic_id=None, limit=10, db_root="/home/node/.op
if topic_id:
target_pattern = f"%topic:{topic_id}%"
cur.execute(
"SELECT session_key, current_session_id, status, updated_at, entry_json FROM session_nodes WHERE session_key LIKE ? ORDER BY updated_at DESC LIMIT 1",
"SELECT session_key, current_session_id, status, updated_at, entry_json FROM session_nodes WHERE session_key LIKE ? AND session_key NOT LIKE '%:heartbeat' ORDER BY updated_at DESC LIMIT 1",
(target_pattern,)
)
else:
cur.execute(
"SELECT session_key, current_session_id, status, updated_at, entry_json FROM session_nodes ORDER BY updated_at DESC LIMIT 1"
"SELECT session_key, current_session_id, status, updated_at, entry_json FROM session_nodes WHERE session_key NOT LIKE '%:heartbeat' ORDER BY updated_at DESC LIMIT 1"
)
row = cur.fetchone()