Skip to content

Fix restart#99

Merged
so5 merged 8 commits intomasterfrom
fix-restart
Mar 12, 2026
Merged

Fix restart#99
so5 merged 8 commits intomasterfrom
fix-restart

Conversation

@so5
Copy link
Copy Markdown
Collaborator

@so5 so5 commented Mar 11, 2026

No description provided.

so5 and others added 8 commits March 11, 2026 20:27
- In _loopHandler: detect restart when state is 'running' (not just 'not-started'),
  since stopped projects leave loop components with state='running' on disk
- In _loopHandler restart path: use currentIndex (the interrupted iteration)
  instead of prevIndex (the already-finished iteration) when looking up the
  instance directory to resume from
- In _PSHandler: same fix — detect restart when state is 'running' or 'not-started'

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
When a project restarts, gitCommit was committing execution states
(stopped/failed/running) that were staged in *.wheel.json files.

Add sanitizeStagedJsonFiles() which, before the restart gitCommit:
1. Finds all staged *.wheel.json files via gitStatus
2. Saves their original content
3. Writes a sanitized version (state set to 'not-started') and re-stages

After gitCommit, restoreSanitizedJsonFiles() writes the originals back
to the working tree, so:
- HEAD has clean 'not-started' state
- Index matches HEAD (no staged changes)
- Working tree retains original content (currentIndex etc. intact for
  loop restart logic)

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
- show failed task list on hover to status field
@so5 so5 merged commit 132fc1d into master Mar 12, 2026
1 of 3 checks passed
@so5 so5 deleted the fix-restart branch March 12, 2026 13:41
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.

2 participants