By design, RunModelCreator.jl will not silently switch to a different port — keeping the port stable is what preserves the browser-stored Gemini API key. You will see:
ERROR: Port 8765 is already in use. Close the existing Model Creator server,
or set OPENFLIGHT_ALLOW_PORT_FALLBACK=true to use another port. ...
Fix (preferred): find and stop the previous Julia / Model Creator process holding the port, then re-run.
Fix (override): allow the script to scan up to 200 ports for a free one:
ENV["OPENFLIGHT_ALLOW_PORT_FALLBACK"] = "true"
include("RunModelCreator.jl")
Note: with a fallback port, the browser will treat it as a different origin and your stored Gemini API key will not carry over.
Browser doesn't open automatically
The script tries the OS default first, then Edge → Chrome → Firefox (Windows). If all attempts fail, it prints:
Could not auto-launch browser. Please open manually:
http://localhost:<port>/
Just paste that URL into any modern browser.
Stale port injected into analysis-setup.js
The script rewrites the line var aeromodel_port = …; in 🛫_CREATE_AIRCRAFT_MODEL/src/js/analysis-setup.js on every launch. If you see a Could not find 'var aeromodel_port = …' warning, the line was edited or removed — restore it to:
var aeromodel_port = 8765; // Auto-set by RunModelCreator.jl
…then re-run. The exact integer doesn't matter; the script will overwrite it.
Package bootstrap re-runs on every launch
That means the bootstrap stamp file is missing or the environment hash changes between runs. Check:
The depot is writable: <DEPOT>/openflight/package_bootstrap/ should be created on first run.
Project.toml / Manifest.toml are not being modified by another tool between launches (some editors reformat TOML files on save).