Repository navigation
feat(claudecast): add open-in tab/window preference for all terminal apps - #27154
Conversation
…apps Adds a global "Open In" preference (New Window / New Tab) that controls whether Claude Code sessions open in a new terminal window or a new tab. Supported for all five terminal apps: - Terminal.app: new window via temp .command file + `open -a Terminal`; new tab via ⌘T keystroke through System Events (Raycast has Accessibility) - iTerm: new window/tab via native AppleScript dictionary - Warp: new_window vs new_tab URL scheme actions - kitty: --single-instance flag for tab reuse, new process for window - Ghostty: ⌘T keystroke for tab, CLI flag for window Also fixes a reserved Raycast shortcut warning: ⌘P → ⌘⇧P on "Continue with Prompt" action in Launch Project. Co-Authored-By: Claude Sonnet 4.6 <[email protected]>
|
Thank you for your contribution! 🎉 🔔 @qazi0 @RoderickJDunn 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="feat/claudecast-open-in-tab-window"
FORK_URL="https://github.com/diskun00/extensions.git"
EXTENSION_NAME="claudecast"
REPO_NAME="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. |
Co-Authored-By: Claude Sonnet 4.6 <[email protected]>
Greptile SummaryThis PR adds a global "Open In" preference (
Confidence Score: 4/5Safe to merge; the new tab paths work correctly for Terminal.app, iTerm, and Ghostty, and known limitations for kitty and Warp are documented in the preference description. The kitty tab mode silently falls back to a new window when remote control is not configured, with no in-app feedback. Users who select "New Tab" with a default kitty setup will get a new window every time without knowing why. The rest of the changes are well-scoped. extensions/claudecast/src/lib/terminal.ts — specifically the kitty tab fallback path around the silent catch block Important Files Changed
Prompt To Fix All With AIFix the following 1 code review issue. Work through them one at a time, proposing concise fixes.
---
### Issue 1 of 1
extensions/claudecast/src/lib/terminal.ts:224-238
**kitty tab fallback is silent at runtime**
When `kitten @ launch` fails (remote control not configured), the error is silently swallowed and a new window is opened with no notification to the user. The preference description documents this limitation, but a user who selects "New Tab" and consistently gets new windows will have no in-app indication of why. Adding a `showToast` call in the `catch` block (e.g., "kitty: remote control not configured, opened in a new window instead") would make the fallback discoverable without requiring the user to re-read the preference description.
Reviews (5): Last reviewed commit: "Fix CHANGELOG date" | Re-trigger Greptile |
|
This pull request has been automatically marked as stale because it did not have any recent activity. It will be closed if no further activity occurs in the next 7 days to keep our backlog clean 😊 |
0xdhrv
left a comment
There was a problem hiding this comment.
Hi @diskun00 👋
Thanks for the contribution 🔥
Could you look into the suggestions from Greptile
I converted this PR into a draft until it's ready for the review, please press the button Ready for review when it's ready and we'll have a look 😊
…tabs, escape cwd - Bump our changelog entry to 1.6.0 to avoid colliding with the upstream 1.5.0 that landed via the merge from main. - kitty New Tab now uses 'kitten @ launch --type=tab' (real tab via remote control), falling back to a new window if 'allow_remote_control' is not enabled. Pass cwd via '--cwd=' arg so it is not shell-expanded. - Escape '"' in cwd before interpolating into the Terminal.app .command heredoc so paths containing quotes do not break the cd. - Document the kitty remote-control requirement in the openIn preference description and CHANGELOG.
…n-in-tab-window # Conflicts: # extensions/claudecast/CHANGELOG.md # extensions/claudecast/src/lib/terminal.ts
Co-authored-by: greptile-apps[bot] <165735046+greptile-apps[bot]@users.noreply.github.com>
Hi @0xdhrv , thanks for reviewing! i've resolved the comments from greptile:D |
|
Published to the Raycast Store: |
|
🎉 🎉 🎉 Such a great contribution deserves a reward, but unfortunately we couldn't find your Raycast account based on your GitHub username (@diskun00). Please link your GitHub account to your Raycast account to receive your credits and soon be able to exchange them for some swag. |
…board, fix ooms, etc. (#27693) * Update claudecast extension - Merge contributions: keep local 1.8.0 state with cmux + auth gate broadening - Pull contributions - chore(gitignore): also ignore PR_*.md naming variant - fix(1.8.0): broaden auth gate, restore detail-view recency, fix kitty window mode - chore(release): v1.8.0 - Merge branch \'contributions/merge-pr27154\' - Pull contributions: PR #27154 (open-in tab/window preference for all terminal apps) * fix(1.8.0): address greptile review * Update CHANGELOG.md --------- Co-authored-by: raycastbot <[email protected]>
…d Usage Forecasts (#30471) * Update claudecast extension - Merge published ClaudeCast contributions - Pull contributions - Add session inbox and agent controls - fix(1.8.0): address greptile review - Merge contributions: keep local 1.8.0 state with cmux + auth gate broadening - Pull contributions - chore(gitignore): also ignore PR_*.md naming variant - fix(1.8.0): broaden auth gate, restore detail-view recency, fix kitty window mode - chore(release): v1.8.0 - Merge branch \'contributions/merge-pr27154\' - Pull contributions: PR #27154 (open-in tab/window preference for all terminal apps) - fix(terminal): address Greptile review on PR #27632 - Merge branch \'contributions/merge-1777843536365\' - Pull contributions - chore(changelog): credit @Haknt for Ghostty/Warp terminal fixes - chore(release): v1.6.0 — refreshed description and CHANGELOG - fix(terminal): use native APIs for Ghostty and Warp launch (#1) - Sync with upstream raycast/extensions (v1.4.0 + v1.5.0) - fix(terminal): use native APIs for Ghostty and Warp launch (#1) - Fix model pricing table with correct per-version rates - Separate streaming usage scanner, configurable menu bar cost, extension icon - Remove session limit from all-time stats calculation - Fix model extraction to read from message.model - Fix cost calculation from tokens, add token breakdown, use os.homedir - Merge branch \'contributions/merge-1775429074266\' - Pull contributions - Add CLAUDE.md and PR review notes to .gitignore - Update extension description punctuation - Add deep search match snippets, fix surrogate crashes and tilde expansion - Fix: sanitize lone surrogates and safe-truncate to prevent render tree JSON crash - Sync with published fork (qazi0/extensions) - Update README with Ralph Loop and main menu screenshot - Add Ralph Loop screenshots - Update README documentation - Add Anthropic API key preference - Add Claude installation checks and path validation - Fix Ask Claude context capture and add path persistence - Fix duplicate React keys in Browse Sessions - Add Anthropic API key support and CLI installation check - Fix memory leaks in session parsing and stats - Update CHANGELOG with v1.1.0 release notes - Add loading toast while Ralph Loop prepares - Render multiline variables as TextArea in prompt library - Update Ralph Loop UI: cleaner name and multiline support - Add Ralph Loop resume functionality - Add Ralph Loop fresh context execution with signal-based termination - Use standard markdown for README screenshots - Enhance README with icon, screenshots, and reorganized features - Comprehensive code review fixes: security, performance, and reliability - Use Raycast trash() for safer session deletion - Remove unused token counting code from usage-stats - Address Greptile PR review feedback - Update store screenshots - Upgrade Prompt Library: high-quality icons and comprehensive prompts - Update SESSION_NOTES.md with Session 2 accomplishments - Fix Git Actions: detect current VS Code project and show results - Remove unused assets from assets folder - Add CHANGELOG.md and update README with OAuth setup - Initial commit: ClaudeCast - Claude Code Raycast extension * Use Claude login for subscription usage * Update ClaudeCast Store documentation * Update CHANGELOG.md --------- Co-authored-by: raycastbot <[email protected]>
Summary
It's a bit tedious to open new window each time for a new session. Thus in this PR, I add a global "Open In" preference (
New Window/New Tab) that controls whether Claude Code sessions open in a new terminal window or a new tab, for all five supported terminal apps.Changes
package.json— newopenIndropdown preference (default:New Window)src/lib/terminal.ts— each terminal function branches onopenInsrc/launch-project.tsx— fixes a reserved Raycast shortcut warning (⌘P→⌘⇧Pon "Continue with Prompt")Terminal-specific behaviour
.commandfile +open -a Terminal⌘Tvia System Events, thendo script in front windowcreate window with default profilecreate tab with default profilein current windowwarp://action/new_windowwarp://action/new_tab--single-instance--working-directoryflag⌘Tvia System EventsTesting
npm run build