Skip to content

Fix #66: TUI launches then immediately closes if safety nets are not met, or errors are detected - #70

Merged
lefticus merged 1 commit into
cpp-best-practices:mainfrom
leftibot:fix/issue-66-tui-launches-then-immediately-closes-if-
Nov 22, 2026
Merged

lefticus merged 1 commit into
cpp-best-practices:mainfrom
leftibot:fix/issue-66-tui-launches-then-immediately-closes-if-

Conversation

@leftibot

Copy link
Copy Markdown
Contributor

Automated fix by @leftibot.

What changed

Fix #66: check the build folder before the live TUI takes the terminal
The runner made its preparation checks (clean working tree, coverage prerequisites,
safety nets, generator, engine) on the TUI's worker thread, so a failing check opened
the TUI only for it to close at once. Runner.check now makes those checks before
console.run hands the terminal to the TUI, so a failure prints its error as plain
output and the TUI starts only for a run that can go ahead.
Co-Authored-By: Claude Opus 5.5 noreply@anthropic.com

Files

 strain/runner.py         | 12 ++++++++++--
 tests/test_end_to_end.py | 27 ++++++++++++++++++++++++++-
 2 files changed, 36 insertions(+), 3 deletions(-)

Closes #66

Triggered by @lefticus.

… takes the terminal

The runner made its preparation checks (clean working tree, coverage prerequisites,
safety nets, generator, engine) on the TUI's worker thread, so a failing check opened
the TUI only for it to close at once. Runner.check now makes those checks before
console.run hands the terminal to the TUI, so a failure prints its error as plain
output and the TUI starts only for a run that can go ahead.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@lefticus
lefticus merged commit 7283f2c into cpp-best-practices:main Nov 22, 2026
4 of 12 checks passed
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.

TUI launches then immediately closes if safety nets are not met, or errors are detected

2 participants