Repository navigation
Conversation
Show snapshot usage by workspace and preview the space that cleanup can reclaim. Include snapshots of removed sessions in every time range and preserve shared files and rollback checkpoints. Record pending cleanup before deleting a session so reclamation can resume after a restart.
wsp1911
force-pushed
the
fix/snapshot
branch
from
November 23, 2026 13:52
a682cb3 to
277b97d
Compare
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
Type and Areas
Motivation / Impact
A user reported an out-of-memory crash while working with a 41 GB binary in an SSH workspace. Snapshot capture and loading legacy history could read large payloads into memory. The new read limits and streaming paths address both the current file and oversized history left by an earlier session.
Deleting a session could also leave snapshot files on disk when its snapshot manager was unavailable. The Storage page exposes those leftovers and their workspace ownership. Cleanup rechecks references and writer locks before reclaiming files, preserving workspace baselines, shared content, and undo checkpoints.
Verification
cargo check --locked -p openbitfun-desktopandpnpm run capabilities:check— both passed on the PR head.pnpm --dir src/web-ui exec vitest run src/app/scenes/settings/pages/data/StorageSettingsPage.test.tsx— 5 tests passed on the PR head.node scripts/check-git-object-sizes.mjs --base HEAD~2 --head HEADandgit diff --check HEAD~2..HEAD— passed.cargo test --locked -p openbitfun-core --no-default-features --features agent-runtime,remote-workspace,git --lib service::snapshot::— all 53 tests passed on the PR head, including large-file streaming, legacy restoration, simulated SSH profile isolation, and cleanup.session_manager::tests::deletionfilter passed all 7 session deletion tests.Reviewer Notes
AI-assisted implementation, tested with focused automated regressions and a copied storage fixture. SSH behavior was exercised with a simulated workspace transport. Live SSH, Peer Device, Remote Control, and Detached Dispatch were outside the manual test coverage.
To review the UI, open Settings → Data & Maintenance → Storage. Select a workspace, switch between 7 days, 30 days, and all sessions, and expand a workspace group. The time cutoff applies to existing sessions. Confirmed leftovers from removed sessions are eligible at every cutoff. Changing filters updates the preview. Cleanup requires confirmation.
Checklist