Skip to content

feat: open Ghostty worktree tabs split with Claude Code - #26

Merged
malaporte merged 2 commits into
mainfrom
split-panels
Oct 1, 2026
Merged

malaporte merged 2 commits into
mainfrom
split-panels

Conversation

@malaporte

Copy link
Copy Markdown
Owner

Summary

  • New Ghostty tabs opened for a worktree are split into two side-by-side panes, both in the worktree directory.
  • The left pane runs claude --continue || claude, resuming the folder's most recent Claude Code session or starting a fresh one. It is skipped if claude isn't on the login shell PATH.
  • Existing tabs are unchanged: clicking Ghostty for a worktree that already has a tab just switches to it.

Uses Ghostty's AppleScript split command (Ghostty 1.3+).

Test plan

  • bun run typecheck
  • Click Ghostty on a worktree with no open tab → tab opens split, left pane resumes/starts Claude Code, right pane is a shell, tab titled project / worktree
  • Click Ghostty again → switches to the existing tab, no extra split
  • Worktree with no prior Claude session → a fresh session starts

🤖 Generated with Claude Code

malaporte and others added 2 commits October 1, 2026 10:23
New Ghostty tabs for a worktree now open with two side-by-side panes.
The left pane resumes the folder's last Claude Code session (falling
back to a fresh one), and the right pane is a plain shell.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@malaporte
malaporte merged commit 141c5b7 into main Oct 1, 2026
2 checks passed
@malaporte
malaporte deleted the split-panels branch October 1, 2026 08:26
@github-actions

github-actions Bot commented Oct 1, 2026

Copy link
Copy Markdown

🎉 This PR is included in version 2.19.0 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant