Steps to reproduce:
- Open Unity Hub
- In the Projects tab, click Add > Add from repository
- Select Gitub or GitLab as Source control provider and Authorize token (if not previously authorized)
- Select a Repository that contains a unique branch name (e.g. test)
- Select that branch in the "Branch or commit" field
- Select another Repository that does not contain the previously selected branch name
- Click on and observe the Branch field
Actual results: The Branch field appears empty, clicking it does not show any branch options in the dropdown
Expected results: "Branch or commit" field should reset or clear when another Repository is selected
Reproducible with versions: 3.17.2
Tested on (OS): Ubuntu 24.04, macOS 26.4
Notes:
- The field refreshes once text is entered into the field or the X button is pressed to clear it. This suggests stale state is kept after switching repositories