Conversation
* feat(view): add :settings command to display config (#145) - Add ModalWidthSettings = 70 constant - Create settings_view.go with 10 sections: Config File, Runtime, Startup, Theme, Timeouts, Concurrency, CloudWatch, Navigation, Autosave, AI - Add :settings command handler and autocomplete - Show CLI overrides with (CLI) suffix - Scrollable with j/k and mouse - Add Ctrl+C to close modals globally * chore: ignore .sisyphus directory * fix(view): add style caching and nil-safe Update to SettingsView * docs(view): add :settings to help documentation * refactor(view): use slices.Equal instead of custom method * test(view): add SettingsView unit tests
This comment was marked as resolved.
This comment was marked as resolved.
- Fix ThemeChanged test to compare content instead of addresses - Add bounds check for separator width (prevents panic) - Add tests for buildContent, getThemeOverrides, formatProfiles, getProfileIDs
Pull Request Review - v0.13.0 (Settings Command)SummaryThis PR adds a Code Quality ✅Strengths:
Style Consistency:
Potential Issues & Suggestions1. Modal Close Behavior (Minor Issue)File: Added Recommendation: Consider whether ctrl+c should close modals or remain as app termination. If keeping this, document the behavior clearly. 2. Runtime vs Startup Comparison Logic (Medium Priority)File: The Recommendation: Consider renaming "(CLI)" to "(override)" or "(modified)" for accuracy, or add a mechanism to track the actual source of configuration changes. 3. Theme Override Display (Minor - Code Duplication)File: The 4. Test Coverage ✅Strengths:
Optional improvements:
5. Separator Width Calculation (Minor)File: The separator has a hardcoded 2-space prefix which may affect precise width calculations. Performance Considerations ✅
No performance concerns identified. Security Considerations ✅
No security concerns identified. Recommendations Summary
Final AssessmentOverall: APPROVED with minor suggestions ✅ This is a well-implemented feature that adds useful functionality for users to inspect their current configuration. The code quality is high, follows established patterns, and includes good test coverage. The identified issues are minor and mostly relate to clarity/accuracy of displayed information rather than functional problems. Great work! |
Summary
:settingscommand to display current configuration (feat: display current settings in TUI #145)Changes
SettingsViewmodal showing all config sections