From 6fbe5c94dc70e50eb10bab2b166825c5f6a6dc90 Mon Sep 17 00:00:00 2001 From: Abir Abbas Date: Fri, 19 Jun 2026 15:37:19 -0400 Subject: [PATCH] Attribute HITL plan-review requests to SWE-AF via sender manifest SWE-AF created plan-review-v2 HITL requests without a sender, so hax-sdk's hub rendered them as "Unknown sender". Pass a sender={key, display_name} defaulting to NODE_ID, overridable via HAX_SENDER_KEY / HAX_SENDER_NAME. Co-Authored-By: Claude Opus 4.8 --- swe_af/app.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/swe_af/app.py b/swe_af/app.py index 37aea81..4da711d 100644 --- a/swe_af/app.py +++ b/swe_af/app.py @@ -773,6 +773,10 @@ async def build( "title": title, "description": "Review the proposed implementation plan before execution begins", "payload": hax_payload, + "sender": { + "key": os.getenv("HAX_SENDER_KEY", os.getenv("HAX_SENDER_NAME") or NODE_ID), + "display_name": os.getenv("HAX_SENDER_NAME") or NODE_ID, + }, "webhook_url": f"{cp_base_url}/api/v1/webhooks/approval-response", "expires_in_seconds": cfg.approval_expires_in_hours * 3600, }