Skip to content

perf: cache session history with workspace images#20733

Open
seven332 wants to merge 2 commits into
mainfrom
perf/issue-20732-session-history-sidecar
Open

perf: cache session history with workspace images#20733
seven332 wants to merge 2 commits into
mainfrom
perf/issue-20732-session-history-sidecar

Conversation

@seven332

@seven332 seven332 commented Jul 8, 2026

Copy link
Copy Markdown
Contributor

Summary

  • cache verified final session-history bytes as a sidecar beside promoted workspace images
  • probe the sidecar on fresh workspace-image hits and restore locally before falling back to R2
  • share sidecar protocol metadata in guest-contracts, cap sidecars at the current 64 MiB copy-file stream limit, and include sidecar bytes in cache GC/inspection accounting

Testing

  • cargo test --manifest-path crates/Cargo.toml -p guest-agent session_history_identity -- --nocapture
  • cargo test --manifest-path crates/Cargo.toml -p runner session_history_sidecar -- --nocapture
  • cargo test --manifest-path crates/Cargo.toml -p runner restore_plan_ -- --nocapture
  • cargo test --manifest-path crates/Cargo.toml -p runner run_in_sandbox_restores_session_history_from_workspace_sidecar -- --nocapture
  • cargo test --manifest-path crates/Cargo.toml -p runner workspace_promotion::tests -- --nocapture
  • cargo check --manifest-path crates/Cargo.toml -p guest-agent -p runner
  • cargo clippy --manifest-path crates/Cargo.toml -p guest-agent -p runner --all-targets -- -D warnings

Closes #20732

@github-project-automation github-project-automation Bot moved this to Backlog in VM0 Kanban Jul 8, 2026
@github-actions github-actions Bot temporarily deployed to api/preview/perf/issue-20732-session-history-sidecar July 8, 2026 18:20 Destroyed
@github-actions

github-actions Bot commented Jul 8, 2026

Copy link
Copy Markdown
Contributor

API preview: https://pr-20733-api.vm6.ai

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Backlog

Development

Successfully merging this pull request may close these issues.

perf: cache session history alongside workspace image hits

1 participant