Surface branch-hibernation settings in the GUI#49
Merged
Conversation
claude-commander v0.24.0 exposes three hibernation config fields (hibernate_enabled, hibernate_idle_timeout_secs, hibernate_check_interval_secs) that already round-trip through get_config/save_config but weren't rendered in the settings modal. Add a "Hibernation" category to COMMANDER_CATEGORIES: a master hibernate_enabled toggle gating the idle-timeout and check-interval numbers, mirroring the project-pull toggle/interval pattern. No backend change is needed — the hibernation loop is already started at boot, and save_config already returns restart_required so the existing "restart to take effect" toast covers the restart-required fields (enabled + check interval); the idle timeout is hot-reloadable. iwft: a settings scenario asserts enabling hibernation ungates the interval fields and that all three persist through save_config. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Merged
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.
What
Adds a Hibernation category to the claude-commander settings modal so the three hibernation config fields can be edited from the GUI instead of only via the config file / TUI.
hibernate_enabledfalsehibernate_idle_timeout_secs86400(1 day)0= never hibernatehibernate_check_interval_secs600(10 min)0disables the loopWhy no backend change
The settings modal is schema-driven and
get_config/save_configalready round-trip the wholeConfig(overwriting only edited leaves), so these fields were already flowing through — they just weren't rendered. The hibernation loop is also already started at boot inpolling.rs.Restart handling is automatic: in claude-commander,
hibernate_enabledandhibernate_check_interval_secsare restart-required whilehibernate_idle_timeout_secsis hot-reloadable.save_configreturnsrestart_required()and the existing "restart to take effect" toast already covers it; the category note mentions it.Testing
npm run typecheck— cleansave_config🤖 Generated with Claude Code