Manage Claude Desktop sessions
Claude Desktop stores its Claude Code sidebar separately for each signed-in account. Switching accounts can make existing sessions disappear from the sidebar even though their transcripts still exist.
harn claude-desktop can mirror those sidebar entries across accounts.
Before you begin
Section titled “Before you begin”- Run the command on the machine where Claude Desktop stores its session index.
- Fully quit Claude Desktop before relying on a changed sidebar. Closing the window usually leaves the app running in the system tray.
Keep sessions visible after an account switch
Section titled “Keep sessions visible after an account switch”-
Inspect the account directories Harnery found.
Terminal window harn claude-desktop accountsharn claude-desktop sessions -
Preview the mirror plan. The command changes nothing without
--yes.Terminal window harn claude-desktop mirror --all -
Apply the plan.
Terminal window harn claude-desktop mirror --all --yesUse
--to <account-prefix>or--from <account-prefix>when you want a one-way copy. Use--session <id-or-title>to mirror one session. -
Fully quit Claude Desktop and relaunch it.
Mirroring copies sidebar entry files. It does not copy or fork the transcript. Both accounts point to the same underlying Claude Code session, so do not open and drive that session from two accounts at the same time.
Archiving availability
Section titled “Archiving availability”The former tidy subcommand was removed during the event-ledger migration.
Harnery currently has no command to archive Claude Desktop entries. Declaring
a task done records its lifecycle without archiving its sidebar entry.
Troubleshooting
Section titled “Troubleshooting”No desktop data directory was found
Section titled “No desktop data directory was found”Pass the directory explicitly:
harn claude-desktop accounts --data-dir <path>Harnery normally checks ~/Library/Application Support/Claude on macOS,
%APPDATA%\\Claude on Windows, and ~/.config/Claude on Linux. A CLI running
under WSL also scans Windows user profiles mounted under /mnt/c/Users/.
The sidebar did not change
Section titled “The sidebar did not change”Quit the Claude Desktop process from its tray menu, then relaunch it. The window close button may only hide the application.