You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix: return RESOURCE_NOT_FOUND instead of false success on dashboard deletion (#680)
* fix: return RESOURCE_NOT_FOUND instead of false success on dashboard deletion
ha_config_delete_dashboard and ha_config_delete_dashboard_resource
previously returned success:true when the target didn't exist, misleading
AI agents into believing the operation succeeded.
Changes:
- ha_config_delete_dashboard now resolves both url_path and internal ID,
returning RESOURCE_NOT_FOUND when neither matches
- ha_config_delete_dashboard_resource now returns RESOURCE_NOT_FOUND
instead of false success on non-existent resources
- Both tools use structured error helpers and exception_to_structured_error
- Removed idempotentHint from both tools (no longer silently succeed)
- Updated E2E tests to expect RESOURCE_NOT_FOUND on non-existent targets
Closes#671
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
* fix: update unit test to expect RESOURCE_NOT_FOUND on missing resource
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
---------
Co-authored-by: kingpanther13 <kingpanther13@users.noreply.github.com>
Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
0 commit comments