fix(desktop): surface per-item errors in command watcher failure reporting
Merged
SA
9mo ago+16+16+01234567890123456789-2-2-0123456789
Summary
- When bulk operations like
create_workspacefailed, the per-item error details (e.g., "Project X not found") were captured inbuildBulkResultbut 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
errorfield and logged to console with fullresult.datacontext, so both the desktop console and MCP agent responses show the actual failure reason
Test plan
- Trigger a
create_workspacevia 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.