suppress outbound mirror comments for intake-managed items (double-comment fix)

intake_track() already narrates status on the user's post; mirroring the
same item's ledger update/close ops added near-duplicate comments (seen in
the E2E smoke: 'stage → build' next to '▶️ running').

Co-Authored-By: Claude Fable 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01YECpkAwQUwgu7NVy91R8fW
This commit is contained in:
Nirav Patel
2026-08-22 15:06:19 -04:00
co-authored by Claude Fable 5
parent 2bc7d510c1
commit aaedf758d9
+6 -1
View File
@@ -513,7 +513,12 @@ def process(state: dict, rec: dict) -> None:
return
if op == "add":
create_post(state, rec)
elif op == "update":
return
# Intake-managed items already get status comments from intake_track();
# mirroring their ledger ops too would double-comment the user's post.
if any(e.get("ledger_id") == lid for e in state.get("intake", {}).values()):
return
if op == "update":
comment(state, lid, update_body(rec), "update")
else:
comment(state, lid, close_body(rec), "close")