Commit e9d4b77
committed
fix: resolve HITL interrupt persistence in shallow savers (#133)
The shallow savers were prematurely cleaning up writes when a new
checkpoint was saved, causing Human-in-the-Loop interrupts to be
deleted before they could be consumed during resume.
Changes:
- Remove aggressive write cleanup from aput/put methods in shallow savers
- Fix registry key consistency using to_storage_safe_str() for checkpoint_ns
- Add comprehensive HITL integration tests (7 new tests)
- Update existing tests to reflect new write persistence behavior
Writes are now cleaned up only via delete_thread, TTL expiration,
or explicit overwrite - not during checkpoint transitions.1 parent 963efbf commit e9d4b77
File tree
5 files changed
+665
-87
lines changed- langgraph/checkpoint/redis
- tests
5 files changed
+665
-87
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
229 | 229 | | |
230 | 230 | | |
231 | 231 | | |
232 | | - | |
233 | | - | |
234 | | - | |
235 | 232 | | |
236 | 233 | | |
237 | 234 | | |
| |||
240 | 237 | | |
241 | 238 | | |
242 | 239 | | |
243 | | - | |
244 | | - | |
245 | | - | |
246 | | - | |
247 | | - | |
248 | | - | |
249 | | - | |
250 | | - | |
251 | | - | |
252 | | - | |
253 | | - | |
254 | | - | |
255 | | - | |
256 | | - | |
257 | | - | |
258 | | - | |
259 | | - | |
260 | | - | |
261 | | - | |
262 | | - | |
263 | | - | |
264 | | - | |
265 | | - | |
266 | | - | |
267 | | - | |
| 240 | + | |
| 241 | + | |
268 | 242 | | |
269 | | - | |
270 | | - | |
271 | | - | |
272 | | - | |
273 | | - | |
274 | | - | |
275 | | - | |
276 | | - | |
277 | | - | |
| 243 | + | |
| 244 | + | |
| 245 | + | |
| 246 | + | |
| 247 | + | |
| 248 | + | |
| 249 | + | |
| 250 | + | |
| 251 | + | |
| 252 | + | |
| 253 | + | |
| 254 | + | |
278 | 255 | | |
279 | 256 | | |
280 | 257 | | |
| |||
505 | 482 | | |
506 | 483 | | |
507 | 484 | | |
508 | | - | |
| 485 | + | |
| 486 | + | |
| 487 | + | |
| 488 | + | |
| 489 | + | |
509 | 490 | | |
510 | 491 | | |
511 | 492 | | |
| |||
631 | 612 | | |
632 | 613 | | |
633 | 614 | | |
634 | | - | |
| 615 | + | |
| 616 | + | |
| 617 | + | |
635 | 618 | | |
636 | 619 | | |
637 | 620 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
200 | 200 | | |
201 | 201 | | |
202 | 202 | | |
203 | | - | |
204 | | - | |
205 | | - | |
206 | | - | |
207 | | - | |
208 | | - | |
209 | 203 | | |
210 | 204 | | |
211 | 205 | | |
212 | | - | |
213 | | - | |
214 | | - | |
215 | | - | |
216 | | - | |
217 | | - | |
218 | | - | |
219 | | - | |
220 | | - | |
221 | | - | |
222 | | - | |
223 | | - | |
224 | | - | |
225 | | - | |
226 | | - | |
227 | | - | |
228 | | - | |
229 | | - | |
230 | | - | |
231 | | - | |
232 | 206 | | |
233 | 207 | | |
234 | 208 | | |
235 | 209 | | |
236 | 210 | | |
237 | 211 | | |
238 | 212 | | |
| 213 | + | |
| 214 | + | |
| 215 | + | |
| 216 | + | |
| 217 | + | |
| 218 | + | |
| 219 | + | |
| 220 | + | |
| 221 | + | |
| 222 | + | |
| 223 | + | |
| 224 | + | |
| 225 | + | |
239 | 226 | | |
240 | 227 | | |
241 | 228 | | |
| |||
501 | 488 | | |
502 | 489 | | |
503 | 490 | | |
| 491 | + | |
| 492 | + | |
504 | 493 | | |
505 | | - | |
| 494 | + | |
506 | 495 | | |
507 | 496 | | |
508 | 497 | | |
| |||
550 | 539 | | |
551 | 540 | | |
552 | 541 | | |
| 542 | + | |
| 543 | + | |
553 | 544 | | |
554 | | - | |
| 545 | + | |
555 | 546 | | |
556 | 547 | | |
557 | 548 | | |
| |||
0 commit comments