claude-code - 💡(How to fix) Fix [FEATURE] Link and switch to named sessions from within a running session (TODO/task workflow) [1 comments, 2 participants]

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…
GitHub stats
anthropics/claude-code#47817Fetched 2026-04-15 06:41:29
View on GitHub
Comments
1
Participants
2
Timeline
4
Reactions
0
Timeline (top)
labeled ×3commented ×1

Fix Action

Fix / Workaround

Current workaround: store session name in a markdown file, exit, claude -r "search term". Works but breaks flow and relies on name matching. A /context-handoff skill can bridge the gap but loses the full conversation history.

RAW_BUFFERClick to expand / collapse

Preflight Checklist

  • I have searched existing requests and this feature hasn't been requested yet
  • This is a single feature request (not multiple features)

Problem Statement

I maintain a persistent TODO list across Claude Code sessions using memory files. Each item maps to a session where the work was discussed. Today there's no way to reference a session from outside it, or switch to it without exiting the current session. I have to store the session name as plain text, exit, run claude -r "partial match", and hope the name hasn't changed.

Proposed Solution

  1. A stable session reference (name or ID) that can be stored and used to locate a session later
  2. /resume "session name" working from within a running session — park the current session, load the referenced one
  3. Optionally, /resume back to return to the parked session

Related: #18401 (session linking/referencing) and #22978 (/new to switch without exiting). This combines both into a navigable workflow.

Alternative Solutions

Current workaround: store session name in a markdown file, exit, claude -r "search term". Works but breaks flow and relies on name matching. A /context-handoff skill can bridge the gap but loses the full conversation history.

Priority

Medium - Would be very helpful

Feature Category

CLI commands and flags

Use Case Example

My TODO list has: "Observations datasource filtering — blocked on UX decision. Session: observations include_missing and detailed_mode in dashboards". When the UX decision lands, I want to say "let's work on observations filtering" and have Claude switch to that session with full context, rather than starting fresh and re-reading all the code.

Additional Context

This would turn memory-based TODO lists into a navigable work queue. The building blocks exist (--resume, --name, /resume), the missing piece is in-session switching and a stable reference format.

extent analysis

TL;DR

Implementing a stable session reference and in-session switching using /resume command can improve the workflow of switching between sessions in Claude Code.

Guidance

  • Introduce a unique and stable session identifier (e.g., session ID or name) that can be used to reference and switch between sessions.
  • Enhance the /resume command to accept a session name or ID, allowing users to switch to a different session without exiting the current one.
  • Consider adding a /resume back command to return to the previously parked session, providing a seamless navigation experience.
  • Evaluate the feasibility of integrating this feature with existing session linking and referencing capabilities (e.g., #18401) to create a cohesive workflow.

Example

# Example TODO list item with session reference
- Observations datasource filtering — blocked on UX decision. Session: `observations_123`

In this example, observations_123 could be a unique session ID that can be used with the /resume command to switch to the corresponding session.

Notes

The proposed solution builds upon existing features and commands in Claude Code, such as --resume, --name, and /resume. The implementation should ensure backward compatibility and minimize disruptions to the current workflow.

Recommendation

Apply workaround: Implement a stable session reference and in-session switching using the /resume command, as this addresses the core issue and provides a navigable workflow for users.

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING

claude-code - 💡(How to fix) Fix [FEATURE] Link and switch to named sessions from within a running session (TODO/task workflow) [1 comments, 2 participants]