fix(desktop): surface per-item errors in command watcher failure reporting

Merged
SA
9mo ago
+16-2

Summary

  • When bulk operations like create_workspace failed, the per-item error details (e.g., "Project X not found") were captured in buildBulkResult but never stored or logged โ€” only the generic "All workspace creations failed" message was visible in the console and MCP response
  • Now the individual error messages are concatenated into the command's error field and logged to console with full result.data context, so both the desktop console and MCP agent responses show the actual failure reason

Test plan

  • Trigger a create_workspace via MCP with an invalid project ID โ€” verify the console now shows the specific error (e.g., "All workspace creations failed: Project abc not found")
  • Verify the MCP response includes the detailed error message
  • Confirm successful workspace creation still works normally

Summary by CodeRabbit

  • Bug Fixes
    • Improved error reporting for failed bulk operations by including detailed per-item error information in error messages, providing users with more specific feedback when commands fail.