Files
vibe-kanban/frontend
Louis Knight-Webb 7bc52ac8c5 Re-run setup and cleanup scripts (#1981)
## Summary

I've implemented the "re-run setup/cleanup script" functionality in the new UI command bar. The changes include:

### Files Modified

1. **`frontend/src/components/ui-new/actions/index.ts`**
   - Added `isAttemptRunning: boolean` to `ActionVisibilityContext` interface (line 109)
   - Added `RunSetupScript` and `RunCleanupScript` workspace actions (lines 737-777)
   - Both actions use the existing `attemptsApi.runSetupScript/runCleanupScript` methods
   - Actions are disabled when `isAttemptRunning` is true
   - Error handling for `no_script_configured` and `process_already_running` errors

2. **`frontend/src/components/ui-new/actions/useActionVisibility.ts`**
   - Import `useExecutionProcessesContext`
   - Added `isAttemptRunningVisible` to the hook call
   - Added `isAttemptRunning: isAttemptRunningVisible` to the returned context

3. **`frontend/src/components/ui-new/actions/pages.ts`**
   - Added a new "Scripts" group to the `workspaceActions` page containing both actions

### Testing

The dev server is running at:
- Frontend: http://localhost:3000/
- Backend: http://127.0.0.1:3001

To test:
1. Navigate to the new UI (`/workspaces`)
2. Select a workspace
3. Open the command bar (CMD+K)
4. Navigate to "Workspace Actions"
5. You should see a "Scripts" group with "Run Setup Script" and "Run Cleanup Script" options
2026-01-12 21:00:47 +00:00
..
2026-01-08 22:14:38 +00:00
2026-01-08 22:14:38 +00:00
2025-06-25 09:36:07 +01:00
2026-01-08 22:14:38 +00:00
2026-01-08 22:14:38 +00:00
2026-01-08 22:14:38 +00:00
2026-01-12 16:57:54 +00:00
2026-01-08 22:14:38 +00:00
2026-01-08 22:14:38 +00:00