Skip to content

bug: switch project will cause session from claude code hidden #227

@xarthurx

Description

@xarthurx

Did you check docs and existing issues?

  • I have read all the sidekick.nvim docs
  • I have updated the plugin to the latest version before submitting this issue
  • I have searched the existing issues of sidekick.nvim
  • I have searched the existing issues of plugins related to this issue

Neovim version (nvim -v)

0.11.5

Operating system/version

Windows - WSL2 Ubuntu

Describe the bug

I use the Claude in one project A, and then I switch to another project B and use Claude from sidekick again.

When I switch back to the project A and try to activate a Claude session, it usually pop up a small window, allowing me to either open a new session or use one of the original sessions.

However, the pop-up window only shows two options: one is an empty session, and the other is the session from Project B.

I don't see the previous session from Project A, but I can open a new session and ask Claude to find the session files and reload it -- it was there, but not loaded by default or provide an option to select from.

Steps To Reproduce

As described above.

Expected Behavior

When the popup window shows up, it should contain the previous Claude sessions from the project folder.

Repro

vim.env.LAZY_STDPATH = ".repro"
load(vim.fn.system("curl -s https://raw.githubusercontent.com/folke/lazy.nvim/main/bootstrap.lua"))()

require("lazy.minit").repro({
  spec = {
    { "folke/sidekick.nvim", opts = {} },
    -- add any other plugins here
  },
})

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions