Refuse breeze start dev mode when UI development ports are already in use - #71241
Open
Andrushika wants to merge 1 commit into
Open
Refuse breeze start dev mode when UI development ports are already in use#71241Andrushika wants to merge 1 commit into
Andrushika wants to merge 1 commit into
Conversation
Starting dev mode while an older Vite server owns the required ports can leave Breeze serving assets from another worktree. Failing early makes the conflict visible instead of starting a mismatched environment.
Andrushika
requested review from
amoghrajesh,
ashb,
bugraoz93,
choo121600,
ephraimbuddy,
gopidesupavan,
jason810496,
jedcunningham,
jscheffl,
potiuk and
vatsrahul1001
as code owners
August 6, 2026 14:43
Andrushika
marked this pull request as draft
August 6, 2026 17:42
Andrushika
marked this pull request as ready for review
August 6, 2026 17:42
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.
Why
I was using Git worktrees and accidentally ran
breeze start-airflow --dev-modefrom a second worktree. Breeze showed no warning, but the browser only showed a blank page.Root cause: the old Vite process still owned port 5173 or 5174, so the new Vite process exited silently because of
--strictPortwhile Breeze continued starting Airflow and the browser kept loading assets from the old Vite server.What
Check both ports before starting the background UI dev hook, and fail with a clear message when either port is in use. This only applies to dev asset compilation; regular UI asset builds are unchanged.
This PR only handles port conflicts that already exist when
run_compile_ui_assetsstarts.compile_ui_assets_dev.pystill does not keep thePopenhandles, so it cannot detect a Vite process that exits later. I plan to handle process supervision in a follow-up PR.Was generative AI tooling used to co-author this PR?
Generated-by: Codex (GPT-5) and Claude Code (Fable 5) following the guidelines