feat(acp): multi-session support with LRU eviction and session persistence#817
Merged
feat(acp): multi-session support with LRU eviction and session persistence#817
Conversation
…tence Configurable max_sessions (default 4) with LRU eviction of idle sessions and background reaper task for idle timeout cleanup. Sessions persist conversation history to SQLite (acp_sessions + acp_session_events tables) and replay on load_session as session/update notifications per ACP spec. Evicted sessions remain loadable from SQLite. Database errors are not leaked to ACP clients; agent loop is only spawned after successful event loading. Closes #781, closes #782
Add multi-session support, LRU eviction, SQLite persistence, session resume, and idle reaper to docs, READMEs, and config reference.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
max_sessions(default 4) with LRU eviction of idle sessionssession_idle_timeout_secs(default 30 min)acp_sessions+acp_session_eventstables)load_sessionreplays conversation history assession/updatenotifications per ACP specChanges
crates/zeph-core/src/config/types.rsmax_sessions,session_idle_timeout_secsin AcpConfigcrates/zeph-core/src/config/env.rsZEPH_ACP_MAX_SESSIONS,ZEPH_ACP_SESSION_IDLE_TIMEOUT_SECScrates/zeph-acp/src/agent.rscrates/zeph-acp/src/transport.rscrates/zeph-acp/Cargo.tomlcrates/zeph-memory/migrations/013_acp_sessions.sqlcrates/zeph-memory/src/sqlite/acp_sessions.rssrc/main.rs,src/init.rsTest plan
cargo clippy --workspace -- -D warnings: 0 warningscargo +nightly fmt --check: cleanDeferred items (tracked)
Closes #781, closes #782
Part of Epic #778