Allow runtime updates to autoCommit setting via TUI#333
Conversation
The autoCommit config option was ignored at runtime because settings changes from the TUI were saved to disk and updated in React state, but never propagated to the ExecutionEngine instance. Add setAutoCommit() to the engine and call it from handleSaveSettings. https://claude.ai/code/session_012YFAFfSsnbpganDrHnxR2N
|
The latest updates on your projects. Learn more about Vercel for GitHub. |
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #333 +/- ##
==========================================
+ Coverage 45.95% 45.97% +0.01%
==========================================
Files 100 100
Lines 32252 32263 +11
==========================================
+ Hits 14823 14833 +10
- Misses 17429 17430 +1
🚀 New features to boost your workflow:
|
- Add setAutoCommit tests to engine test suite (toggle, preserve, default) - Extract propagateSettingsToEngine as testable helper in run.tsx - Add tests for propagateSettingsToEngine (true/false/undefined/null engine) - Engine coverage: 75.58% funcs, 69.40% lines https://claude.ai/code/session_012YFAFfSsnbpganDrHnxR2N
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review infoConfiguration used: Organization UI Review profile: CHILL Plan: Pro 📒 Files selected for processing (4)
WalkthroughA new Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~12 minutes Possibly related PRs
🚥 Pre-merge checks | ✅ 3✅ Passed checks (3 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches
🧪 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
This change enables the autoCommit setting to be updated at runtime through the TUI settings view without requiring an application restart.
Key Changes
setAutoCommit()method toExecutionEngineclass to allow runtime updates to the autoCommit configurationhandleSaveSettings()in the run command to propagate autoCommit changes from the settings view to the engine instanceImplementation Details
The
setAutoCommit()method provides a simple interface to update the engine's internal config state. When settings are saved through the TUI, the handler now checks if the autoCommit value has changed and syncs it to the running engine instance, allowing users to toggle auto-commit behavior without restarting the application.https://claude.ai/code/session_012YFAFfSsnbpganDrHnxR2N
Summary by CodeRabbit
Release Notes
New Features
Tests