fix(handlers): surface ignored errors in workspace restart and external paths #1911
Reference in New Issue
Block a user
Delete Branch "fix/workspace-restart-ignored-errors"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
workspace_restart.go:286 now returns 400 for an empty request body because gin ShouldBindJSON reports EOF. The restart payload fields are optional and existing callers can restart with no JSON body, so please allow EOF/no body while still rejecting malformed JSON.
5a2fec6c5dtoff59df3e54LGTM — EOF/no-body restart compatibility is preserved while malformed JSON is rejected; ExecContext errors are now surfaced through logging without changing fail-soft behavior.
PM 2nd-approve per direct CTO request. EOF/no-body restart compatibility restored (CR2 prior blocker resolved). Adds ExecContext error logging in restart/auto-restart/pause/resume + external workspace URL/status paths. Fail-soft behavior preserved.