rivet-dev / rivet-dev/agentos

registry/agent/pi: Support persistent sessions across VM restarts

Open
#1,461 0 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Rust
Stars
4.6k
Forks
251
Avg merge
2d 15h
Merged PRs (30d)
34

Description

Problem

The Pi adapter always creates in-memory sessions. When the VM is disposed (actor sleep, runner restart, failover) and recreated on the next action, all conversation history is lost. The agent starts fresh with zero context on every VM cycle.

This is a problem for agents that maintain long-running relationships with users and depend on session history being available across restarts.

Expected behavior

Users should be able to configure the Pi adapter to persist sessions to the filesystem so that conversation history survives VM sleep/wake cycles. The mount system already supports writable persistent storage at the agent data directory — sessions written there would naturally survive VM restarts without additional infrastructure.

When configured for persistence, the adapter should resume the most recent session on startup rather than creating an empty one.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start at the registry/agent/pi adapter and read how sessions are currently created, then inspect the mount system and agent data directory for writable persistent storage. Done means a configurable persistence mode writes sessions there and resumes the most recent session after the VM is recreated.

Written by the indexing model from the issue text.

Assessment

Tech stack
rust
Domain
ai, infrastructure
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
48/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.