Skip to content

Conversation

@markcda
Copy link
Member

@markcda markcda commented Jan 21, 2026

No description provided.

claude and others added 4 commits January 21, 2026 09:11
Changes:
- Added restart_requested atomic boolean to RunEnvironment
- Background file watcher sets flag when files change
- Pipeline checks flag after each action completes
- Restarts gracefully except for last action and Observe actions
- Removed immediate interruption with tokio::select

This ensures clean state transitions and prevents corruption of
build artifacts or partial operations.
Changes:
- Removed Observe action exception from restart check
- Modified ObserveAction.execute to monitor restart flag in background
- Uses tokio::select to wait for either action completion or restart signal
- If restart requested during Observe, interrupts cleanly and returns

This allows long-running Observe actions (like npm run dev) to be
interrupted when files change, enabling proper pipeline restart.
@markcda markcda merged commit c894a73 into unstable Jan 21, 2026
2 checks passed
@markcda markcda deleted the claude/fix-depl-watch-restart-N51Oi branch January 21, 2026 09:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants