Skip to content

Handle resize API errors in Settings.vue#17

Merged
max-tet merged 1 commit into
mainfrom
fix/resize-error-handling
Apr 8, 2026
Merged

Handle resize API errors in Settings.vue#17
max-tet merged 1 commit into
mainfrom
fix/resize-error-handling

Conversation

@max-tet
Copy link
Copy Markdown
Member

@max-tet max-tet commented Apr 8, 2026

Summary

  • resizeShard() had no try-catch, so any API error (e.g. the 404 from an invalid resize) left resize.waitingForRestart = true permanently, keeping the Apply button disabled and showing no feedback to the user
  • Added try-catch-finally following the same pattern used by all other async methods in Settings.vue: show a toast on error, reset the waiting flag in finally

Test plan

  • Trigger a resize error (e.g. by resizing to the current size via the API directly) — a toast with the error detail should appear and the Apply button should re-enable
  • Successful resize still navigates to /restart as before

🤖 Generated with Claude Code

resizeShard() lacked a try-catch, so API errors left the Apply button
permanently disabled and showed no feedback. Add try-catch-finally
to show a toast and re-enable the button on failure.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@max-tet max-tet merged commit 6a4d40f into main Apr 8, 2026
3 checks passed
@max-tet max-tet deleted the fix/resize-error-handling branch April 8, 2026 11:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant