mirror of
https://github.com/farion1231/cc-switch.git
synced 2026-07-24 12:44:18 +08:00
5ae9c2605d
When Ghostty is already running, `open -a` silently ignores `--args`, and `open -na` clones all existing tabs into the new instance. Add a dedicated `launch_macos_ghostty` that uses `--quit-after-last-window-closed=true` and `-e bash <script>` to spawn a single clean window running claude. Also change `launch_macos_open_app` from `open -a` to `open -na` so other terminals (Alacritty/Kitty/WezTerm/Kaku) correctly open a new window when already running. Closes #2798