fix: remove host_id from cloud tool parameters#4589
Conversation
…nation The LLM was fabricating Swarm-style host IDs instead of using actual host IDs, causing tool calls to fail. Since container IDs are unique across hosts, we now resolve the host automatically via ListAllContainers. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
|
Performance concern: Since Unused mock: Positive: The fix is correct and clean. LLM hallucinating Swarm-style host IDs is a real failure mode, and auto-resolving by container ID is the right UX. |
Summary
host_idparameter from all cloud tool schemas (fetch_container_logs,inspect_container,start/stop/restart/update_container)findContainerByIDhelper that resolves the host automatically by searching across all hosts viaListAllContainersTest plan
go test ./internal/cloud/passeshost_id🤖 Generated with Claude Code