docs(heartbeat): note fix #354 auto-resume relationship
Some checks failed
sop-tier-check / tier-check (pull_request) Failing after 6s
Secret scan / Scan diff for credential-shaped strings (pull_request) Successful in 6s
audit-force-merge / audit (pull_request) Has been skipped

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 <noreply@anthropic.com>
This commit is contained in:
Molecule AI · fullstack-engineer 2026-05-11 14:27:28 +00:00
parent 8ca7576567
commit b0a6b020f1

View File

@ -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