Commit 06dae0c
fix: address reviewer feedback for session TTL implementation
- Replace time.time() with time.monotonic() for reliable TTL calculations
- Add validation for negative session_ttl values with descriptive error
- Fix close() method to save chat histories before clearing agents
- Fix is_expired() boundary condition to use >= instead of >
- Remove silent exception swallowing in knowledge cleanup
Fixes identified issues from CodeRabbit and Greptile reviews.
Co-authored-by: Mervin Praison <MervinPraison@users.noreply.github.com>1 parent d124dd4 commit 06dae0c
1 file changed
Lines changed: 12 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
82 | 82 | | |
83 | 83 | | |
84 | 84 | | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
85 | 90 | | |
86 | | - | |
| 91 | + | |
87 | 92 | | |
88 | 93 | | |
89 | 94 | | |
| |||
600 | 605 | | |
601 | 606 | | |
602 | 607 | | |
603 | | - | |
| 608 | + | |
604 | 609 | | |
605 | 610 | | |
606 | 611 | | |
607 | 612 | | |
608 | 613 | | |
609 | 614 | | |
| 615 | + | |
| 616 | + | |
| 617 | + | |
610 | 618 | | |
611 | 619 | | |
612 | 620 | | |
| |||
620 | 628 | | |
621 | 629 | | |
622 | 630 | | |
623 | | - | |
624 | | - | |
625 | | - | |
626 | | - | |
| 631 | + | |
627 | 632 | | |
628 | 633 | | |
629 | 634 | | |
| |||
633 | 638 | | |
634 | 639 | | |
635 | 640 | | |
636 | | - | |
| 641 | + | |
637 | 642 | | |
638 | 643 | | |
639 | 644 | | |
| |||
0 commit comments