fix(FN-954): allow retry for stuck-killed tasks across all interfaces

- Extend retry API to accept 'stuck-killed' as a retryable status alongside 'failed'
- Update CLI retry command to recognize stuck-killed tasks
- Update pi extension retry tool to handle stuck-killed tasks
- Show retry button in TaskDetailModal for stuck-killed task status
- Add changeset for patch release
This commit is contained in:
gsxdsm
2026-04-05 00:41:15 -07:00
parent fa379f3091
commit 7f3a100202
7 changed files with 61 additions and 14 deletions

View File

@@ -628,9 +628,9 @@ export async function runTaskRetry(id: string, projectName?: string) {
throw new Error(`Task ${id} not found`);
}
// Validate task is in failed state
if (task.status !== 'failed') {
throw new Error(`Task ${id} is not failed (status: ${task.status || 'none'})`);
// Validate task is in a retryable state
if (task.status !== 'failed' && task.status !== 'stuck-killed') {
throw new Error(`Task ${id} is not in a retryable state (status: ${task.status || 'none'})`);
}
// Clear failure state