fix: prevent per-session runtime copies (#65)#66
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (7)
📝 WalkthroughWalkthroughThis PR adds machinery to redirect per-session Reflexio runtime copies to a shared stable plugin root, preventing unbounded disk growth. Helper functions detect session copies and locate stable alternatives, then re-execute scripts under the stable root when found. All five entry-point scripts integrate this redirection early in their control flow. ChangesStable Plugin Root Redirection
Estimated code review effort🎯 2 (Simple) | ⏱️ ~12 minutes Possibly related PRs
Poem
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
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. Comment |
Summary
~/.reflexio/Cu*copies.smart-install.shcreates.venvin the stable root and leaves theCu*session copy untouched.Test Plan
uv run --project plugin pytest tests/test_install_scripts.py::test_smart_install_redirects_reflexio_session_copies_to_stable_root -qbash -n plugin/scripts/_lib.sh plugin/scripts/smart-install.sh plugin/scripts/hook_entry.sh plugin/scripts/backend-service.sh plugin/scripts/dashboard-service.sh plugin/scripts/cli.shgit diff --checkuv run --project plugin pytest tests/test_install_scripts.py::test_smart_install_installs_vendored_reflexio tests/test_install_scripts.py::test_smart_install_redirects_reflexio_session_copies_to_stable_root tests/test_install_scripts.py::test_codex_hook_ensure_root_tracks_active_plugin_root -qFixes #65
Summary by CodeRabbit