constructor(private readonly _state: IAutomationIsolationFormState) {
if (_state.isQuickChat) {
_state.isolationMode = undefined;
_state.branch = undefined;
}
const branch = _state.isolationMode === 'worktree' ? _state.branch : undefined;
this._selectedBranch = isSelectableAutomationBranch(branch) ? branch : undefined;