Claude Code Launcher: Revert -i flag, add Ghostty new-tab option#26129
Claude Code Launcher: Revert -i flag, add Ghostty new-tab option#26129raycastbot merged 5 commits intoraycast:mainfrom
Conversation
The -i (interactive shell) flag added in raycast#25976 caused unintended behavior including session restore and duplicate tabs when launching Ghostty. This reverts the -i flag to restore the original window behavior. Additionally, adds a new "Ghostty: Open Behavior" preference that lets users choose between opening Claude Code in a new Ghostty window (default) or a new tab in the existing Ghostty window via AppleScript GUI scripting. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
|
Thank you for your contribution! 🎉 🔔 @stephendolan @ridemountainpig you might want to have a look. You can use this guide to learn how to check out the Pull Request locally in order to test it. 📋 Quick checkout commandsBRANCH="fix/ghostty-new-window"
FORK_URL="https://github.com/artisticmedic/raycast-extensions.git"
EXTENSION_NAME="claude-code-launcher"
REPO_NAME="raycast-extensions"
git clone -n --depth=1 --filter=tree:0 -b $BRANCH $FORK_URL
cd $REPO_NAME
git sparse-checkout set --no-cone "extensions/$EXTENSION_NAME"
git checkout
cd "extensions/$EXTENSION_NAME"
npm install && npm run devWe're currently experiencing a high volume of incoming requests. As a result, the initial review may take up to 10-15 business days. |
Greptile SummaryThis PR reverts the Key changes:
Note: Confidence Score: 2/5
Last reviewed commit: 3a90cd5 |
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Addresses Greptile review: closeMainWindow() was triggered based solely on the ghosttyOpenBehavior preference without checking that Ghostty is the active terminal, which could unexpectedly close the Raycast window when using a different terminal. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
pernielsentikaer
left a comment
There was a problem hiding this comment.
Looks good to me, approved 🔥
|
Published to the Raycast Store: |
|
🎉 🎉 🎉 We've rewarded your Raycast account with some credits. You will soon be able to exchange them for some swag. |
Description
The -i (interactive shell) flag added in #25976 caused unintended behavior including session restore and duplicate tabs when launching Ghostty. This reverts the -i flag to restore the original window behavior.
Additionally, adds a new "Ghostty: Open Behavior" preference that lets users choose between opening Claude Code in a new Ghostty window (default) or a new tab in the existing Ghostty window via AppleScript GUI scripting.
Checklist
npm run buildand tested this distribution build in Raycastassetsfolder are used by the extension itselfREADMEare located outside the metadata folder if they were not generated with our metadata tool