diff --git a/tabby-local/src/components/terminalTab.component.ts b/tabby-local/src/components/terminalTab.component.ts index 4f566c8f..1348979a 100644 --- a/tabby-local/src/components/terminalTab.component.ts +++ b/tabby-local/src/components/terminalTab.component.ts @@ -58,7 +58,10 @@ export class TerminalTabComponent extends BaseTerminalTabComponent { initializeSession (columns: number, rows: number): void { if (this.profile.options.runAsAdministrator && this.uac.isAvailable) { - this.profile.options = this.uac.patchSessionOptionsForUAC(this.profile.options) + this.profile = { + ...this.profile, + options: this.uac.patchSessionOptionsForUAC(this.profile.options), + } } this.session!.start({