Claude agent: support SDK-native session persistence and resume across VM restarts
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
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:
AgentOs.resumeSession()should perform an SDK-native resume (ACPsession/load→ SDKresume), restoring full session state (context, tool state, compaction) from the persisted session file — not a "new session + transcript preamble" fallback.- Session persistence should be enabled (or enableable) in the packaged adapter, and
CLAUDE_CODE_SKIP_INITIAL_MESSAGESmust not be forced in a way that breaks resumed-session replay. - 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
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- 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.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của rivet-dev/agentos
-
`runtime.python` fails with "command not found: python" on a default VM (0.2.21, 0.2.22); Pyodide-distribution packages don't installCó thể đã có người làm @eersnington đã nhận hôm nay. Đang mở
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 18/100
rivet-dev/agentos#2027 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Python edits to filesystem.writeFile-created files are reverted by shadow reconciliationCó thể đã có người làm @ankssjain đã nhận 3 ngày trước. Đang mở
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 20/100
rivet-dev/agentos#2022 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 3/5 Nửa ngày Mức phù hợp với người mới 32/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 45/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 66/100
rivet-dev/agentos#1994 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của rivet-dev/agentos
Issue tương tự
-
docs(openclaw): RTK_REWRITE_HOST relaxes every default ask, not only commands no rule matchedĐang mởarea:docs documentation good first issue priority:low
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
rtk-ai/rtk#4500 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
triage:accepted
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 65/100
open-telemetry/otel-arrow#4343 ·
Maintainer thường phản hồi trong vòng 2 ngày
-
bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
mishraprafful/multihull#150 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
`npx --package=vite-plus vp create` fails with exit 127 when npm is the chosen package managerĐang mởbug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 70/100
voidzero-dev/vite-plus#2970 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
ai_p2 comp-parquet-reader-v3
Độ khó 2/5 Nửa ngày Mức phù hợp với người mới 66/100
ClickHouse/ClickHouse#124986 ·
Maintainer thường phản hồi trong vòng 1 ngày