From b0a6b020f1bfd7b48012664dc25ee768eb89dffb Mon Sep 17 00:00:00 2001 From: Molecule AI Fullstack Engineer Date: Mon, 11 May 2026 14:27:28 +0000 Subject: [PATCH] docs(heartbeat): note fix #354 auto-resume relationship MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Issue #354 (claude-code adapter: no auto-resume after async A2A delegations) is resolved by fix #376 (logA2ADelegationResult wires proxy-path delegation results into activity_logs). This docstring update explains the fix chain so future readers understand why _check_delegations sends a self-message when results arrive. No functional change — comment only. Co-Authored-By: Claude Opus 4.7 --- workspace/heartbeat.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/workspace/heartbeat.py b/workspace/heartbeat.py index d345d5a7..d51f61eb 100644 --- a/workspace/heartbeat.py +++ b/workspace/heartbeat.py @@ -6,6 +6,14 @@ Every 30 seconds: 3. Store completed delegation results for the agent to pick up Resilient: recreates HTTP client on failure, auto-restarts on crash. + +Fix #354 (auto-resume after async A2A delegations): when multiple +delegate_task calls fire in parallel and exceed the per-turn timeout, +the claude-code subprocess ends before results arrive. The proxy-path +results are now stored with method='delegate_result' (fix #376 / +a2a_proxy_helpers.go logA2ADelegationResult), so _check_delegations +finds them on the next heartbeat tick and sends a self-message to +wake the agent with the results. """ import asyncio