[PR #6784] feat(cli): add keep_latest prune strategy to ThreadTTLConfig #5288

Closed
opened 2026-02-20 17:51:29 -05:00 by yindo · 0 comments
Owner

Original Pull Request: https://github.com/langchain-ai/langgraph/pull/6784

State: closed
Merged: Yes


Summary

  • Add "keep_latest" to ThreadTTLConfig.strategy to match langgraph-api support for pruning old checkpoints while retaining the thread and its latest state
  • Add sweep_limit to ThreadTTLConfig where the API actually reads it (was previously a no-op on CheckpointerConfig)
  • Regenerate schema.json / schema.v0.json

Test plan

  • make format && make lint passes
  • make test passes (85/85)
**Original Pull Request:** https://github.com/langchain-ai/langgraph/pull/6784 **State:** closed **Merged:** Yes --- ## Summary - Add `"keep_latest"` to `ThreadTTLConfig.strategy` to match langgraph-api support for pruning old checkpoints while retaining the thread and its latest state - Add `sweep_limit` to `ThreadTTLConfig` where the API actually reads it (was previously a no-op on `CheckpointerConfig`) - Regenerate `schema.json` / `schema.v0.json` ## Test plan - [x] `make format && make lint` passes - [x] `make test` passes (85/85)
yindo added the pull-request label 2026-02-20 17:51:29 -05:00
yindo closed this issue 2026-02-20 17:51:29 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langchain-ai/langgraph#5288