mirror of
https://github.com/rcourtman/Pulse.git
synced 2026-09-25 04:33:03 +00:00
accebfb305
In the trace for 'hows esphome', the model called get with the canonical handle 'system-container-599a2e3...' as resource_id and no resource_type, and it failed twice with 'resource_type is required' before recovering with 'get 102'. The user sees those failed tool calls in the chat. A canonical handle already encodes the type (unifiedresources/ids.go builds ids as '<type>-<hash>'), so executeGetResource now infers resource_type from the handle when it's omitted, via resourceTypeFromCanonicalID (the trailing hex hash segment is unambiguous since no type word is all-hex). A bare numeric VMID still requires an explicit type. Test TestResourceTypeFromCanonicalID covers it; full internal/ai/tools green.