From 2969f05fb331d0ad291cd878b0be646d010bd237 Mon Sep 17 00:00:00 2001 From: Cameron Pfiffer Date: Mon, 9 Mar 2026 11:49:20 -0700 Subject: [PATCH] fix: allow raw AT-URIs to bypass inbox mapping during dispatch --- src/void_tools/cli.py | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/src/void_tools/cli.py b/src/void_tools/cli.py index 0c80781..cc83674 100644 --- a/src/void_tools/cli.py +++ b/src/void_tools/cli.py @@ -385,12 +385,17 @@ def cmd_dispatch(args): elif action_type == "reply": target_id = act.get("target_id") - if target_id not in mapping: + + # If target_id is an explicit AT-URI (starts with at://), bypass the mapping check + if target_id and target_id.startswith("at://"): + target_uri = target_id + elif target_id not in mapping: print(f"Error: target_id {target_id} not found in mapping. Skipping.") continue + else: + target_uri = mapping[target_id] processed_targets.add(target_id) - target_uri = mapping[target_id] print(f"Dispatching reply to {target_uri}...") try: @@ -432,9 +437,13 @@ def cmd_dispatch(args): target_id = act.get("target_id") text = act.get("text") - if target_id not in mapping: + if target_id and target_id.startswith("at://"): + target_uri = target_id + elif target_id not in mapping: print(f"Error: target_id {target_id} not found in mapping. Skipping annotation.") continue + else: + target_uri = mapping[target_id] processed_targets.add(target_id) if not text: -- 2.51.2