fix(desktop): include command output in teardown failure toast

Closed
KI
10mo ago
+48-4

Summary

  • Extract stderr/stdout from failed teardown commands and display actual error content in toast notifications
  • Fix React Query warning by returning null instead of undefined from getWorkspaceCwd query
  • Add tests for stderr/stdout capture in teardown errors

Test plan

  • Configure a teardown script that outputs to stderr and fails
  • Delete a workspace and verify the toast shows the stderr content
  • Verify no React Query console warnings appear

🤖 Generated with Claude Code

Summary by CodeRabbit

  • Bug Fixes

    • Improved error messages when workspace teardown fails by capturing and displaying stderr or stdout output for more informative feedback.
  • Chores

    • Refined workspace path handling in terminal initialization for consistency.

✏️ Tip: You can customize this high-level summary in your review settings.