Add restart option after pipeline completion in CLI and Web UI#9
Merged
aonurakman merged 5 commits intomainfrom Feb 6, 2026
Merged
Add restart option after pipeline completion in CLI and Web UI#9aonurakman merged 5 commits intomainfrom
aonurakman merged 5 commits intomainfrom
Conversation
Co-authored-by: aonurakman <65921615+aonurakman@users.noreply.github.com>
Co-authored-by: aonurakman <65921615+aonurakman@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Add restart option for pipeline completion
Add restart option after pipeline completion in CLI and Web UI
Feb 6, 2026
Contributor
There was a problem hiding this comment.
Pull request overview
Adds a “restart calibration” flow so users can run multiple calibrations in the same session, both in the headless CLI and the Web UI.
Changes:
- CLI: wraps
cmd_runpipeline execution in a loop and prompts🔄 Run another calibration? [y/N]after each run, clearingargs.namebetween iterations. - Web UI: detects terminal run states during progress polling and displays a restart bar with a “Start New Calibration” action that calls
resetUI(). - Tests: adds unit tests for the CLI
_prompt_restart()behavior across common inputs and EOF.
Reviewed changes
Copilot reviewed 4 out of 4 changed files in this pull request and generated 5 comments.
| File | Description |
|---|---|
demandify/cli.py |
Adds _prompt_restart() and loops cmd_run() to allow repeated headless runs. |
demandify/static/js/app.js |
Adds status checks during progress updates and shows a restart option on completion/failure. |
demandify/templates/index.html |
Adds a restart bar UI element and restart button. |
tests/test_restart.py |
Adds unit tests for _prompt_restart(). |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
…move inline onclick, catch KeyboardInterrupt in loop Co-authored-by: aonurakman <65921615+aonurakman@users.noreply.github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
🔄 Run another calibration? [y/N]to perform another calibration or end the session. Pipeline execution is wrapped in a loop; run_id is auto-cleared for each new iteration./progressendpoint (no extra/statuspolling) and a restart bar is shown.resetUI()fully resets progress panel, stepper, logs, and restart bar./progressendpoint now includesstatusfield to avoid separate/statuspolling._prompt_restart()covering yes, Yes, no, empty, EOF, and 'yes'-word rejection.abortedas terminal state alongsidecompleted/failed/statuspolling by including status in/progressresponseonclickhandler, wire restart button viaaddEventListenerKeyboardInterruptinsidecmd_run()loop so Ctrl+C offers restartOriginal prompt
💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.