Skip to content

feat: exp cd interactive branch picker - #2

Merged
thebrubaker merged 2 commits into
mainfrom
feat/cd-select
Mar 16, 2026
Merged

thebrubaker merged 2 commits into
mainfrom
feat/cd-select

Conversation

@thebrubaker

Copy link
Copy Markdown
Owner

Summary

  • Bare exp cd (no args) now shows an interactive select list of branches instead of an error
  • Displays branch name, description, and time ago for each choice
  • Non-TTY environments keep the error fallback for agent compatibility
  • exp cd <id> behavior unchanged

Test plan

  • exp cd shows picker, selecting a branch works
  • exp cd 1 still resolves directly
  • Typecheck, lint, 130 tests pass
  • Build compiles

🤖 Generated with Claude Code

thebrubaker and others added 2 commits March 15, 2026 09:41
Was running `git diff --no-index` between full directory trees, which
walked every file including .vite/deps, build artifacts, and untracked
noise (8k+ files, 1.4M deletions in output). Now uses
`git diff main...HEAD` which operates on git objects only — instant
and shows only meaningful committed changes.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Replaces the "Usage: exp cd <id>" error with an @inquirer/select prompt
listing all branches with name, description, and time ago. Non-TTY
environments keep the error fallback for agent compatibility.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@thebrubaker
thebrubaker merged commit 63cb152 into main Mar 16, 2026
1 check failed
@thebrubaker
thebrubaker deleted the feat/cd-select branch March 16, 2026 15:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant