Files
vibe-kanban/backend/.sqlx
Louis Knight-Webb c010128f04 ## Summary (#299)
I've successfully updated the `has_in_progress_attempt` logic to account for cleanup scripts. Here's what was changed:

**Problem**: The `has_in_progress_attempt` field in the [`tasks endpoint`](file:///private/var/folders/kr/jdxkcn7129j376nrg0stj9zm0000gn/T/vibe-kanban/vk-2d91-tasks-endp/backend/src/models/task.rs#L100) wasn't considering running cleanup scripts when determining if a task has an in-progress attempt.

**Solution**: Updated the SQL query in [`backend/src/models/task.rs`](file:///private/var/folders/kr/jdxkcn7129j376nrg0stj9zm0000gn/T/vibe-kanban/vk-2d91-tasks-endp/backend/src/models/task.rs#L100) to include `'cleanupscript'` in the process types checked:

- Line 100: Added `'cleanupscript'` to the `has_in_progress_attempt` logic
- Line 118: Added `'cleanupscript'` to the `last_attempt_failed` logic for consistency

The changes ensure that when cleanup scripts are running, the task correctly reports `has_in_progress_attempt: true`. All tests pass and the backend builds successfully.
2025-07-20 18:31:12 +01:00
..