Preserve or extend TTL for idle session state.json across multi-day resumes

Đang mở
#12 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

Chưa có ai nhận issue này.

Đánh giá

Độ khó
3/5
Thời gian dự kiến
1-2 ngày
Mức phù hợp với người mới
58/100
Loại issue
Lỗi
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
javascript, node.js
Lĩnh vực
backend, devtools

Hướng nghiên cứu

Start by reading pruneStaleSessionFiles in claude-plugin/lib/cache.mjs and trace when it runs relative to SessionStart resume. Compare the retention of state.json with the transient session files; done when resumed sessions retain their injectedIds and revisions after more than 24 hours without extending transient file retention.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

Currently, pruneStaleSessionFiles in claude-plugin/lib/cache.mjs deletes per-session files (state.json, events.jsonl, follower.lock, stop) older than AGENT_MEMORY_SESSION_MAX_AGE_MS (default 24h). If a Claude Code session is idle for more than 24 hours and later resumed via claude --resume, its injectedIds and revisions tracking resets.

Consider using a longer retention window for state.json than for transient follower lock/event files, or refreshing state.json on SessionStart resume before GC runs.

Review-Deferral: f75934f373b69345 severity=nit category=data-integrity
Co-Authored-By: Gemini [email protected]
Generated-By: Gemini

Ngôn ngữ chính
JavaScript
Star
0
Fork
0
Merge trung bình
20 giờ 29 phút
Pull request đã merge (30 ngày)
28

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của HarperFast/agent-memory

Tất cả issue của HarperFast/agent-memory

Issue tương tự

Thêm issue về JavaScript

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.