feat: shp -f でもピッカーを表示して force attach する#4
Merged
Merged
Conversation
これまで `shp -f`(名前なし)は TUI を出さず cwd 由来名へ即 force attach していたが、名前を選択/新規作成してから force attach したいケースに対応 できなかった。-f を「attach 時に force を付ける」だけの意味とし、選択 UX は `shp` と共通化する。 - runPicker(force) に force を渡し、選択/作成したセッションへ force 付きで attach - `shp -f <name>` の明示名指定は従来どおり TUI 無しで直接 force attach - usage 文言を更新
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: ASSERTIVE Plan: Pro Run ID: 📒 Files selected for processing (1)
Walkthrough
ChangesCLI ピッカーの force-attach
Estimated review effort🎯 2 (Simple) | ⏱️ ~10 minutes 🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Comment |
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.
概要
shp -f(名前なし)が TUI を出さず cwd 由来名へ即 force attach していた挙動を変更し、shpと同様にピッカーを表示して、選択/新規作成したセッションへ force 付きで attach するようにした。-fは「attach 時に force を付ける」だけの意味に純化し、セッション選択の UX はshpと共通化する。背景
shp -f実行時に「名前を選ばず既存セッションへ繋がってしまう」という指摘があった。これは旧仕様(-fは no-TUI で cwd 名へ強制 attach)どおりの動作だが、名前を選択/新規作成してから force attach したいケースに対応できていなかった。挙動の対応
shpshp -fshp -f <name>変更点(
cmd/shp/main.goのみ)runPicker(force bool)にforceを渡し、選択/作成したセッションへ force 付きで attachshp -f <name>の明示名指定は従来どおり TUI 無しで直接 force attach動作確認
shpoolを PATH 先頭に置き、実セッション/実デーモンに触れずに経路を検証shp -f(名前なし)→ ピッカー経路に入る(shpool attachを直接 exec しない)shp -f <name>→shpool attach -f --dir . -- <name>を直接 execgo build/go vet/go test ./...すべて通過Summary by CodeRabbit
shp -fの動作が、表示文言どおりの TUI ピッカー経由の接続方法に統一されました。