Add auto-attach functionality for new feature branches - #3
Merged
Conversation
- Auto-attach to tmux session immediately after creating new features - Works for both 'create new feature' and 'create from existing branch' workflows - Provides seamless developer experience with instant access to Claude AI - Preserves existing auto-launch Claude functionality in tmux sessions 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
- Add "Creating..." state to CreateFeatureDialog with progress feedback - Fix race conditions by refreshing UI before auto-attach - Add proper timing delays to ensure tmux sessions are ready - Make creation flows async with proper error handling - Prevent worktrees from disappearing due to timing issues - Improve user experience with visual feedback during creation Fixes the issue where branches would appear briefly then disappear, and ensures auto-attach works reliably after branch creation. 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
This was referenced Apr 18, 2026
5 tasks
agent-era-ai
added a commit
that referenced
this pull request
Apr 27, 2026
* tracker: seed item files for ralph-tmux-codex-fixes * fix(git): create worktree on local-only repos with no origin remote Skip `git fetch origin` when the repo has no `origin` remote, and trust the resolved base branch from `findBaseBranch` instead of synthesising an `origin/` prefix that can't be checked out on local-only repos. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com> * fix(sessions): launch fresh AI in just-created worktrees, drop unused fallback Thread a `freshWorktree` flag from `createFeature` / `recreateImplementWorktree` call sites through `attachSession` and `launchSessionBackground` into the launch helpers. When set, launch claude / codex / gemini without their resume flag — there is no prior session in a directory we just created, and `codex resume --last` would print a noisy "No saved session found" on first launch. When false, trust that a prior session exists in the existing worktree and use the resume form directly (no fallback chain). Closes ralph-tmux-codex-test findings #2 (plain attach broken on fresh codex worktrees) and #3 (noisy resume error on first prompted launch). Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com> * fix(tracker): propagate worktree suffix through tracker slug + sessions When GitService creates a worktree and the requested name collides with an existing branch, it suffixes (foo → foo-2) but the tracker slug, item directory, and tmux session name silently drift to the original. Add `TrackerService.renameItem` that moves the slug across all index buckets, migrates the sessions metadata key, renames the on-disk item dir, and rewrites the `slug:` frontmatter. App's `ensureItemWorktree` detects the mismatch from `recreateImplementWorktree` and adopts the suffixed name as the canonical slug so everything stays in lockstep. Closes ralph-tmux-codex-test finding #8. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com> * tracker: discovery + requirements + implementation notes for ralph-tmux-codex-fixes Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com> * Address PR review comments - Thread `freshWorktree` through the AI tool selection path. When a brand-new worktree needs tool selection, the subsequent attach now correctly skips `claude --continue` / `codex resume --last`, which was the original bug that fix(sessions) targets. - Document that slug interpolation in `rewriteSlugFrontmatter` is regex-safe because `isValidSlug` constrains slugs to `[a-z0-9-]`. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com> --------- Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
3 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Test plan
🤖 Generated with Claude Code