anthropics / anthropics/claude-code

[FEATURE] Easier navigation between branched sessions

オープン
#89,217 コメント 0 件 リアクション 1 件 担当者 0 名 GitHub で見る
area:cli enhancement
主要言語
Python
スター
145k
フォーク
23.1k
PR マージ指標
PR 指標を取得中

説明

### Preflight Checklist

- [x] I have searched [existing requests](https://github.com/anthropics/claude-code/issues?q=is%3Aissue%20label%3Aenhancement) and this feature hasn't been requested yet
- [x] This is a single feature request (not multiple features)

### Problem Statement

When using /branch, Claude creates a new conversation and provides a session ID for returning to the original session via /resume .

This works, but switching back and forth between branched conversations requires copying or remembering session IDs. For short-lived branches or when frequently switching between two sessions, this feels unnecessarily cumbersome.

### Proposed Solution

Allow /resume to accept - as a shorthand for the previously active session:

/resume -

This could work similarly to cd - in a shell or git checkout -: it would switch back to the previously active session.

This would make navigating between branched conversations significantly more ergonomic without changing the existing session ID-based behavior.

### Alternative Solutions

None that come to mind.

### Priority

Medium - Would be very helpful

### Feature Category

CLI commands and flags

### Use Case Example

_No response_

### Additional Context

_No response_

コントリビューションガイド

このリポジトリのコントリビューションガイドは索引されていません

調査の方向性

Start by locating the /resume command and its handling of session IDs, then trace how /branch identifies the original session. Add support for '-' to switch to the previously active session while preserving explicit session-ID behavior. Done means /resume - returns to the prior session and the existing resume behavior still works.

索引モデルが issue の本文から書いたものです。

評価

技術スタック
python
領域
cli
issue の種類
機能追加
難易度
3/5
見積もり時間
1〜2日
活発さ
活発
明瞭さ
おおむね明確
初心者へのやさしさ
70/100

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。