Fix RefreshInventory always failing with CommandNotSupported #7
Loading…
Reference in a new issue
No description provided.
Delete branch "phase-2-3-inventory-operations"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
The agent answered a RefreshInventory command with an InventoryReport but
then unconditionally fell through to the generic command executor, which
has no case for it and always returned CommandNotSupported. This went
unnoticed because nothing ever dispatched RefreshInventory until the new
automatic post-pull refresh and the manual admin refresh button started
exercising it, both surfacing as a failed operation despite the report
having gone out successfully.
Adds two regression tests exercising handle_message against a mock socket:
a healthy runtime reports success with the inventory report, and an
unreachable runtime fails explicitly with RuntimeUnavailable.
Co-Authored-By: Claude Sonnet 5 noreply@anthropic.com