You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Allow multiple Dev Proxy instances when asSystemProxy is false (#1589)
* Initial plan
* Allow multiple Dev Proxy instances when asSystemProxy is false
When asSystemProxy is false, the single-instance check is skipped
so multiple Dev Proxy instances can run simultaneously.
The AsSystemProxy value is now stored in the state file so the
detached mode launch check can determine if the existing instance
is acting as the system proxy.
Closes#1586
Co-authored-by: waldekmastykarz <11164679+waldekmastykarz@users.noreply.github.com>
* Switch to per-instance state files to avoid cross-instance interference
Each detached instance now stores its state in a separate file keyed
by PID (e.g. state-1234.json) instead of a single shared state.json.
This ensures that:
- Multiple non-system-proxy instances don't overwrite each other's state
- Deleting state on exit only removes the current instance's file
- devproxy stop/status/logs still work by preferring the system-proxy
instance, then falling back to the most recently started one
- Legacy state.json files are still read for backward compatibility
StopCommand now passes the specific PID when deleting state to avoid
accidentally removing another instance's state file.
Co-authored-by: waldekmastykarz <11164679+waldekmastykarz@users.noreply.github.com>
* Clarify boolean sort order in LoadStateAsync
Co-authored-by: waldekmastykarz <11164679+waldekmastykarz@users.noreply.github.com>
* Add PID option to logs, status, and stop commands; enhance instance management
---------
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: waldekmastykarz <11164679+waldekmastykarz@users.noreply.github.com>
Co-authored-by: Waldek Mastykarz <waldek@mastykarz.nl>
0 commit comments