Skip to content

fix(mount): prune stale private state temp files on remount - #399

Draft
khaliqgant wants to merge 1 commit into
mainfrom
fix/219-mount-state-dir-pruning
Draft

fix(mount): prune stale private state temp files on remount#399
khaliqgant wants to merge 1 commit into
mainfrom
fix/219-mount-state-dir-pruning

Conversation

@khaliqgant

@khaliqgant khaliqgant commented Aug 4, 2026

Copy link
Copy Markdown
Member

Fixes #219.

`relayfile-mount --state-dir` state accumulated stale private-state temp files across repeated remounts of the same box, degrading performance over time. On remount, quarantine/prune private state files that don't match the current mount's exact identity instead of leaving them to accumulate indefinitely.

Test plan

  • `go build ./...`
  • `go test ./internal/mountsync/... -count=1` (113.8s, includes 10 new tests)

Review in cubic

relayfile-mount --state-dir state accumulated stale private-state temp
files across repeated remounts of the same box, degrading performance
over time. On remount, quarantine/prune private state files that don't
match the current mount's exact identity instead of leaving them to
accumulate indefinitely.

Fixes #219.

Verified:
- go build ./...
- go test ./internal/mountsync/... -count=1 (113.8s, includes 10 new tests)
@coderabbitai

coderabbitai Bot commented Aug 4, 2026

Copy link
Copy Markdown

Important

Review skipped

Draft detected.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro Plus

Run ID: 80ef9aff-c3b9-4e85-aed2-17e950be3051

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@github-actions

github-actions Bot commented Aug 4, 2026

Copy link
Copy Markdown

Relayfile Eval Review

Run: .relayfile/evals/runs/2026-08-04T20-55-39-937Z-HEAD-provider
Mode: provider
Git SHA: fef8549

Passed: 4 | Needs human: 0 | Reviewable: 0 | Missing output: 0 | Failed: 0 | Skipped: 0

Human Review Cases

No reviewable human-review cases captured Relayfile output.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

relayfile-mount --state-dir state not reset/cleaned across remounts → degrades on repeated mount on the same box

1 participant