-
Notifications
You must be signed in to change notification settings - Fork 443
[Feature] Add a file based session persistent client #107
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
|
Thanks for this PR. I think we should just build this resilience into the default ClaudeSDKClient itself by leveraging the |
By "once within Claude Code", you mean on the server side, right? In that case, we still need session info (e.g session id, cost etc) on client side. LMK what do you think? @dicksontsai |
|
For reference, the I have an example of capturing and updating the claude code session ID for being able to resume here: and this is me passing the session ID for resumption when creating the agent. |
|
Where is the specific conversation information stored? It seems to be lost after each service restart within the Kubernetes cluster |
|
At ~/.claude If you're running in k8s though, you'll need to make that folder be persistent storage. Otherwise when the container goes poof, so does that history. |
|
It would be great if we could migrate the memory-tool later on。https://platform.claude.com/docs/en/agents-and-tools/tool-use/memory-tool |
Current ClaudeSDKClient is base on subprocess and once subprocess is dead or quit unexpectedly. We will lose the session info.
SessionPersistentClient leverages ClaudeSDKClient and auto save and persist session data on local file.