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:
@@ -451,10 +451,10 @@ export default function kbExtension(pi: ExtensionAPI) {
|
||||
};
|
||||
}
|
||||
|
||||
// Validate task is in failed state
|
||||
if (task.status !== 'failed') {
|
||||
// Validate task is in a retryable state
|
||||
if (task.status !== 'failed' && task.status !== 'stuck-killed') {
|
||||
return {
|
||||
content: [{ type: "text", text: `Task ${params.id} is not failed (status: ${task.status || 'none'})` }],
|
||||
content: [{ type: "text", text: `Task ${params.id} is not in a retryable state (status: ${task.status || 'none'})` }],
|
||||
isError: true,
|
||||
details: { taskId: params.id, currentStatus: task.status },
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user