From 35790a7e567124779329a546498f42788b41e0c9 Mon Sep 17 00:00:00 2001 From: Lukas <134181853+bo2themax@users.noreply.github.com> Date: Fri, 17 Jul 2026 11:58:51 +0200 Subject: [PATCH] Revert "macOS: fix undo new tab will cause a crash (#9512)" This reverts commit fbabafe8e305716d8a5152d6b48014c6814289f2, reversing changes made to 7f0468f910fba3e73303bccf1e3d92a36ece3acd. --- .../Features/Terminal/TerminalController.swift | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/macos/Sources/Features/Terminal/TerminalController.swift b/macos/Sources/Features/Terminal/TerminalController.swift index ee6312ab9..d19323dde 100644 --- a/macos/Sources/Features/Terminal/TerminalController.swift +++ b/macos/Sources/Features/Terminal/TerminalController.swift @@ -503,14 +503,9 @@ class TerminalController: BaseTerminalController, TabGroupCloseCoordinator.Contr withTarget: controller, expiresAfter: controller.undoExpiration ) { target in - // Close the tab when undoing. We do this in a DispatchQueue because - // for some people on macOS Tahoe this caused a crash and the queue - // fixes it. - // https://github.com/ghostty-org/ghostty/pull/9512 - DispatchQueue.main.async { - undoManager.disableUndoRegistration { - target.closeTab(nil) - } + // Close the tab when undoing + undoManager.disableUndoRegistration { + target.closeTab(nil) } // Register redo action