Repository navigation
Stop the frontend tree when headless reflex run exits #7328
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
masenf
merged 20 commits into
reflex-dev:main
from
flcrom:fix/headless-frontend-tree-shutdown
Oct 5, 2026
Merged
Changes from all commits
Commits
Show all changes
20 commits
Select commit
Hold shift + click to select a range
861b820
Stop the frontend tree when headless reflex run exits
flcrom a27499c
Keep frontend cleanup safe across startup and shutdown races
flcrom fde4d36
Use text-mode test frontend for the tracked process type
flcrom 268685f
Hoist headless shutdown test imports to module scope
flcrom 369d48c
Simplify frontend shutdown handlers and cleanup
flcrom 62b3460
Keep frontend in the CLI process group
flcrom af9a9ef
Remove the frontend process-group registry
flcrom 309a6f6
Cover SIGKILL and no-TTY shutdown cases
flcrom 1dee945
Drop obsolete process-group tests
flcrom d912ac9
Create 7328.bugfix.md
flcrom 4c7361b
Wait for complete frontend PID handshake
flcrom 692915c
Stop frontend before waiting for its worker
flcrom ad0b790
Catch frontend launches racing shutdown
flcrom 048c7cf
Test real launch and late frontend cleanup
flcrom f491424
Remove stale process-group changelog fragment
flcrom 0810d25
Update reflex.py
flcrom 5588791
Test frontend cleanup when context entry fails
flcrom 36c0b2a
Drain failing frontend driver stderr in regression test
flcrom 8c06ecd
Drop unrelated run_context test
flcrom 2a8c010
Merge remote-tracking branch 'upstream/main' into pr-7328
FarhanAliRaza File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Some comments aren't visible on the classic Files Changed page.
There are no files selected for viewing
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| `reflex run` now stops its frontend on SIGTERM and SIGINT without a TTY, while keeping frontend workers in the CLI process group so a hard kill also stops them. |
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
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
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
Oops, something went wrong.
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.