如何找到之前开发的 claude session

4 阅读4分钟

有时候电脑关闭了,session 丢了,就不知道从哪里恢复之前的会话了

▶ find .claude -name 1c13beba-4c58-469c-ba67-cc121535b6e2
.claude/session-env/1c13beba-4c58-469c-ba67-cc121535b6e2
.claude/file-history/1c13beba-4c58-469c-ba67-cc121535b6e2
(v.v)
root@debian:~
▶ ll .claude/session-env/

# 一般来说,某个时间段开始也就几个 session


total 100K
drwxr-xr-x 2 root root 4.0K Mar 17 17:58 03c8a157-da94-43bf-bc10-02a38b0f25ca
drwxr-xr-x 2 root root 4.0K Mar 25 11:05 1c13beba-4c58-469c-ba67-cc121535b6e2
drwxr-xr-x 2 root root 4.0K Mar 19 18:53 20730227-f73f-4361-aaec-a0c533c3719a
drwxr-xr-x 2 root root 4.0K Mar 17 12:33 29e0569e-ca26-4b19-852d-7efe7ea6e117
drwxr-xr-x 2 root root 4.0K Mar 12 20:08 4152f527-f74c-49ed-b82a-6279276e8bd9
drwxr-xr-x 2 root root 4.0K Mar 13 17:42 551d0d33-53b8-45bc-87b6-e349feb5ec86
drwxr-xr-x 2 root root 4.0K Mar 12 15:01 69c447db-e9bf-49f6-a4d1-16a79ae0beb3
drwxr-xr-x 2 root root 4.0K Mar 19 19:07 6b6df64f-480d-41cb-b60c-27625b8b8f1c
drwxr-xr-x 2 root root 4.0K Mar 11 16:52 71276cd4-b6cd-497c-b17f-b7e6ba54f225
drwxr-xr-x 2 root root 4.0K Mar 13 17:14 71f2c396-7f68-448d-a7ef-882c6d7425a1
drwxr-xr-x 2 root root 4.0K Mar 24 15:34 72c4f32b-0f32-457e-8870-35d188c5bee8
drwxr-xr-x 2 root root 4.0K Mar 18 17:09 74fb3773-9d3c-467a-a2b7-89e49b3e846f
drwxr-xr-x 2 root root 4.0K Mar 17 11:00 77a67366-a743-4cda-b169-81ef50e8848c
drwxr-xr-x 2 root root 4.0K Mar 13 18:47 8eb16c19-f8ea-4f76-8f76-224c304fe571
drwxr-xr-x 2 root root 4.0K Mar 17 18:58 90619e75-f920-46c4-be43-d43790e4e805
drwxr-xr-x 2 root root 4.0K Mar 17 17:03 a823bade-08f6-44ee-8b9f-6c0a6c5c0caa
drwxr-xr-x 2 root root 4.0K Mar 19 16:41 b0783b7d-e0ad-4b9e-99c6-85eb3bf8bc78
drwxr-xr-x 2 root root 4.0K Mar 19 11:37 bd23385b-ecf4-4f20-bdf5-7fca7512c8e7
drwxr-xr-x 2 root root 4.0K Mar 10 16:01 c28069ff-dbb3-48bf-acad-4720b6d532f0
drwxr-xr-x 2 root root 4.0K Mar 16 17:45 c42bbb74-a7c0-49c9-9c4f-1b2cc18eb5b2
drwxr-xr-x 2 root root 4.0K Mar 16 14:28 c472dabe-f74a-4fb2-8be2-bebacfe3a70a
drwxr-xr-x 2 root root 4.0K Mar 16 11:47 cff5e37a-49ea-4b97-af26-b9f58885df9a
drwxr-xr-x 2 root root 4.0K Mar 19 14:43 d5b79bd1-598f-48bd-9bd9-6b9261d43872
drwxr-xr-x 2 root root 4.0K Mar 12 17:45 e9e9e021-c597-4fb6-a4ae-b07cd788965b
drwxr-xr-x 2 root root 4.0K Mar 18 14:12 f3dc2967-c157-4618-a69c-14f34988947d
(v.v)
root@debian:~
▶ ll .claude/session-env/71276cd4-b6cd-497c-b17f-b7e6ba54f225
total 0
(v.v)
root@debian:~        


# 如果实在很多,就查查代码变更的记录(代码行,代码所在文件)也能快速确定ls -l .claude/file-history/1c13beba-4c58-469c-ba67-cc121535b6e2
total 24
-rw-r--r-- 2 root root 10781 Mar 25 11:06 b9dc23fc65b07725@v1
-rw-r--r-- 1 root root 10689 Mar 25 13:44 b9dc23fc65b07725@v2