docs(openclaw): document issue 25 duplicate porridge logging & update triage filter
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user