From 0bd9b224f2c3dc69f7485a90c12cd76ae6598efc Mon Sep 17 00:00:00 2001 From: Cameron Pfiffer Date: Thu, 5 Mar 2026 17:36:37 -0800 Subject: [PATCH] feat: enforce automatic default margin annotations for all posts and replies --- src/void_tools/cli.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/void_tools/cli.py b/src/void_tools/cli.py index 567fd33..c1e4734 100644 --- a/src/void_tools/cli.py +++ b/src/void_tools/cli.py @@ -289,6 +289,9 @@ def cmd_dispatch(args): ann = act.get("annotation") if ann and first_post_uri: create_annotation(client, first_post_uri, ann.get("text"), ann.get("motivation", "commenting"), ann.get("quote")) + elif first_post_uri: + auto_text = "Automated Index: Autonomous agent output generated." + create_annotation(client, first_post_uri, auto_text, "describing") elif action_type == "reply": target_id = act.get("target_id") @@ -320,6 +323,10 @@ def cmd_dispatch(args): ann = act.get("annotation") if ann and target_uri: create_annotation(client, target_uri, ann.get("text"), ann.get("motivation", "commenting"), ann.get("quote")) + elif target_uri: + # Auto-generate an annotation if one isn't explicitly provided, as per admin preference + auto_text = f"Automated Index: Interaction logged with {target_uri.split('/')[2]}." + create_annotation(client, target_uri, auto_text, "describing") except Exception as e: print(f"Error replying to {target_uri}: {e}") -- 2.51.2