Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

Claude agent: support SDK-native session persistence and resume across VM restarts

Đang mở
#1,831 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ó
4/5
Thời gian dự kiến
3-5 ngày
Mức phù hợp với người mới
45/100
Loại issue
Tính năng
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Ít trao đổi
Công nghệ
rust
Lĩnh vực
ai, backend

Hướng nghiên cứu

Bắt đầu bằng cách lần theo AgentOs.resumeSession() qua đường dẫn ACP session/load và SDK resume, sau đó kiểm tra cách adapter đã đóng gói xử lý persistence và CLAUDE_CODE_SKIP_INITIAL_MESSAGES. Xác minh liệu CLAUDE_CONFIG_DIR có thể được đặt trên bộ lưu trữ bền vững hay không và thêm hoặc chạy một regression test bao quát việc resume qua các lần khởi động lại VM; được xem là hoàn tất khi native state, bao gồm context, tool state và compaction, được khôi phục.

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

Mô tả

Request

Make "persist a Claude session and resume it later, across VM restarts" a supported path for the packaged Claude agent:

  1. AgentOs.resumeSession() should perform an SDK-native resume (ACP session/load → SDK resume), restoring full session state (context, tool state, compaction) from the persisted session file — not a "new session + transcript preamble" fallback.
  2. Session persistence should be enabled (or enableable) in the packaged adapter, and CLAUDE_CODE_SKIP_INITIAL_MESSAGES must not be forced in a way that breaks resumed-session replay.
  3. Document how to place the Claude session/config directory (CLAUDE_CONFIG_DIR) on durable storage so persisted sessions survive VM restarts.

The current adapter advertises sessionCapabilities.resume — if the above already works end-to-end, a documented statement plus a regression test would be enough to close this.

Why

Resume built from replayed transcripts is not equivalent to SDK-native resume: it loses compaction state and tool state, and re-sends the full history as prompt input. For any long-lived conversation spanning more than one VM lifetime, native persistence + resume is the only correct primitive.

Ngôn ngữ chính
Rust
Star
4.7k
Fork
263
Merge trung bình
9 giờ 13 phút
Pull request đã merge (30 ngày)
29

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

Dự án này không cung cấp dev container, Dockerfile hay hướng dẫn đóng góp, nên bạn cần tự thiết lập môi trường: hãy bắt đầu từ README và xem hướng dẫn đóng góp lần đầu của chúng tôi để biết các bước chung.

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 rivet-dev/agentos

Tất cả issue của rivet-dev/agentos

Issue tương tự

Thêm issue về Rust

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.