Implement Chat Session Transfer and Improved Session Management

Resolved 💬 4 comments Opened Aug 26, 2025 by donaldelbert Closed Jan 4, 2026

Bug Description
I want the ability to move my claude code chat to another directory - perhaps through an explicit command that I give it (like a "/" command). My use case is that I use git worktrees to do my coding, with a different worktree for each active branch of the code that I am working on. I would find it very useful to transfer one of my claude code chats from one branch to another, particularly after I merge a branch into another branch. Currently, it seems like I have to start a fresh claude code instance and gradually train it up on whatever area of my codebase I had it working on. This is never as good as working with a claude code chat that already has developed real expertise in that topic area. Related to this, I would like to be able to easily identify the particular context session that each of my claude code instances is running. I often have 4 or 5 claude code terminal windows open at once, all working in the same directory. I have each instance focused on a different aspect of my codebase such that they each have expertise in one aspect of my application. When I need to restart claude code and try to use the --resume flag, I end up having to look through a very confusing list of different historical chat sessions in order to find the ones that I want to restart with. So, basically, I have two related requests built into this comment. Thanks

Environment Info

  • Platform: darwin
  • Terminal: Apple_Terminal
  • Version: 1.0.77
  • Feedback ID: 6b472f05-4d1d-462b-bde5-185b04d8d87f

Errors

[{"error":"Error: Language not supported while highlighting code, falling back to markdown: production\n    at file:///Users/twain/.bun/install/global/node_modules/@anthropic-ai/claude-code/cli.js:1848:405\n    at Object.useMemo (file:///Users/twain/.bun/install/global/node_modules/@anthropic-ai/claude-code/cli.js:330:26368)\n    at WR9.useMemo (file:///Users/twain/.bun/install/global/node_modules/@anthropic-ai/claude-code/cli.js:49:15588)\n    at CK (file:///Users/twain/.bun/install/global/node_modules/@anthropic-ai/claude-code/cli.js:1848:297)\n    at xR (file:///Users/twain/.bun/install/global/node_modules/@anthropic-ai/claude-code/cli.js:330:19859)\n    at pb (file:///Users/twain/.bun/install/global/node_modules/@anthropic-ai/claude-code/cli.js:332:42835)\n    at cb (file:///Users/twain/.bun/install/global/node_modules/@anthropic-ai/claude-code/cli.js:332:38356)\n    at Lj (file:///Users/twain/.bun/install/global/node_modules/@anthropic-ai/claude-code/cli.js:332:38284)\n    at eR (file:///Users/twain/.bun/install/global/node_modules/@anthropic-ai/claude-code/cli.js:332:38138)\n    at hK (file:///Users/twain/.bun/install/global/node_modules/@anthropic-ai/claude-code/cli.js:332:35201)","timestamp":"2025-08-17T06:21:33.574Z"},{"error":"Error: Language not supported while highlighting code, falling back to markdown: working\n    at file:///Users/twain/.bun/install/global/node_modules/@anthropic-ai/claude-code/cli.js:1848:405\n    at Object.useMemo (file:///Users/twain/.bun/install/global/node_modules/@anthropic-ai/claude-code/cli.js:330:26368)\n    at WR9.useMemo (file:///Users/twain/.bun/install/global/node_modules/@anthropic-ai/claude-code/cli.js:49:15588)\n    at CK (file:///Users/twain/.bun/install/global/node_modules/@anthropic-ai/claude-code/cli.js:1848:297)\n    at xR (file:///Users/twain/.bun/install/global/node_modules/@anthropic-ai/claude-code/cli.js:330:19859)\n    at pb (file:///Users/twain/.bun/install/global/node_modules/@anthropic-ai/claude-code/cli.js:332:42835)\n    at cb (file:///Users/twain/.bun/install/global/node_modules/@anthropic-ai/claude-code/cli.js:332:38356)\n    at Lj (file:///Users/twain/.bun/install/global/node_modules/@anthropic-ai/claude-code/cli.js:332:38284)\n    at eR (file:///Users/twain/.bun/install/global/node_modules/@anthropic-ai/claude-code/cli.js:332:38138)\n    at hK (file:///Users/twain/.bun/install/global/node_modules/@anthropic-ai/claude-code/cli.js:332:35201)","timestamp":"2025-08-17T06:21:33.583Z"},{"error":"Error: Language not supported while highlighting code, falling back to markdown: working-final\n    at file:///Users/twain/.bun/install/global/node_modules/@anthropic-ai/claude-code/cli.js:1848:405\n    at Object.useMemo (file:///Users/twain/.bun/install/global/node_modules/@anthropic-ai/claude-code/cli.js:330:26368)\n    at WR9.useMemo (file:///Users/twain/.bun/install/global/node_modules/@anthropic-ai/claude-code/cli.js:49:15588)\n    at CK (file:///Users/twain/.bun/install/global/node_modules/@anthropic-ai/claude-code/cli.js:1848:297)\n    at xR (file:///Users/twain/.bun/install/global/node_modules/@anthropic-ai/claude-code/cli.js:330:19859)\n    at pb (file:///Users/twain/.bun/install/global/node_modules/@anthropic-ai/claude-code/cli.js:332:42835)\n    at cb (file:///Users/twain/.bun/install/global/node_modules/@anthropic-ai/claude-code/cli.js:332:38356)\n    at Lj (file:///Users/twain/.bun/install/global/node_modules/@anthropic-ai/claude-code/cli.

Note: Error logs were truncated.

View original on GitHub ↗

This issue has 4 comments on GitHub. Read the full discussion on GitHub ↗