feat(config): add pane close debug configuration flag
- commit
- 197375cc3f88517e14af969ddec1156ed13b397b
- author
- Brice · · 2025-09-30 05:15 UTC
- parent
- 2bfb698
- signature
- unsigned
2 files · +5 -0
M internal/config/config.go +4 -0
| @@ -224,6 +224,9 @@ type DebugConfig struct { | |||
| 224 | 224 | ||
| 225 | 225 | // Enable focus metrics tracking | |
| 226 | 226 | EnableFocusMetrics bool `mapstructure:"enable_focus_metrics" yaml:"enable_focus_metrics"` | |
| 227 | + | ||
| 228 | + | // Enable detailed pane close instrumentation and tree snapshots | |
| 229 | + | EnablePaneCloseDebug bool `mapstructure:"enable_pane_close_debug" yaml:"enable_pane_close_debug"` | |
| 227 | 230 | } | |
| 228 | 231 | ||
| 229 | 232 | // APISecurityConfig holds optional API key protection for dumb://api endpoints | |
| @@ -655,6 +658,7 @@ func (m *Manager) setDefaults() { | |||
| 655 | 658 | m.viper.SetDefault("debug.enable_focus_debug", defaults.Debug.EnableFocusDebug) | |
| 656 | 659 | m.viper.SetDefault("debug.enable_css_debug", defaults.Debug.EnableCSSDebug) | |
| 657 | 660 | m.viper.SetDefault("debug.enable_focus_metrics", defaults.Debug.EnableFocusMetrics) | |
| 661 | + | m.viper.SetDefault("debug.enable_pane_close_debug", defaults.Debug.EnablePaneCloseDebug) | |
| 658 | 662 | ||
| 659 | 663 | // Appearance defaults | |
| 660 | 664 | m.viper.SetDefault("appearance.sans_font", defaults.Appearance.SansFont) | |
| @@ -224,6 +224,9 @@ type DebugConfig struct { | |||||
| 224 | 224 | ||||
| 225 | // Enable focus metrics tracking | 225 | // Enable focus metrics tracking | ||
| 226 | EnableFocusMetrics bool `mapstructure:"enable_focus_metrics" yaml:"enable_focus_metrics"` | 226 | EnableFocusMetrics bool `mapstructure:"enable_focus_metrics" yaml:"enable_focus_metrics"` | ||
| 227 | + | ||||
| 228 | + | // Enable detailed pane close instrumentation and tree snapshots | |||
| 229 | + | EnablePaneCloseDebug bool `mapstructure:"enable_pane_close_debug" yaml:"enable_pane_close_debug"` | |||
| 227 | } | 230 | } | ||
| 228 | 231 | ||||
| 229 | // APISecurityConfig holds optional API key protection for dumb://api endpoints | 232 | // APISecurityConfig holds optional API key protection for dumb://api endpoints | ||
| @@ -655,6 +658,7 @@ func (m *Manager) setDefaults() { | |||||
| 655 | m.viper.SetDefault("debug.enable_focus_debug", defaults.Debug.EnableFocusDebug) | 658 | m.viper.SetDefault("debug.enable_focus_debug", defaults.Debug.EnableFocusDebug) | ||
| 656 | m.viper.SetDefault("debug.enable_css_debug", defaults.Debug.EnableCSSDebug) | 659 | m.viper.SetDefault("debug.enable_css_debug", defaults.Debug.EnableCSSDebug) | ||
| 657 | m.viper.SetDefault("debug.enable_focus_metrics", defaults.Debug.EnableFocusMetrics) | 660 | m.viper.SetDefault("debug.enable_focus_metrics", defaults.Debug.EnableFocusMetrics) | ||
| 661 | + | m.viper.SetDefault("debug.enable_pane_close_debug", defaults.Debug.EnablePaneCloseDebug) | |||
| 658 | 662 | ||||
| 659 | // Appearance defaults | 663 | // Appearance defaults | ||
| 660 | m.viper.SetDefault("appearance.sans_font", defaults.Appearance.SansFont) | 664 | m.viper.SetDefault("appearance.sans_font", defaults.Appearance.SansFont) | ||
M internal/config/defaults.go +1 -0
| @@ -155,6 +155,7 @@ func DefaultConfig() *Config { | |||
| 155 | 155 | EnableFocusDebug: false, | |
| 156 | 156 | EnableCSSDebug: false, | |
| 157 | 157 | EnableFocusMetrics: false, | |
| 158 | + | EnablePaneCloseDebug: false, | |
| 158 | 159 | }, | |
| 159 | 160 | APISecurity: APISecurityConfig{ | |
| 160 | 161 | Token: "", | |
| @@ -155,6 +155,7 @@ func DefaultConfig() *Config { | |||||
| 155 | EnableFocusDebug: false, | 155 | EnableFocusDebug: false, | ||
| 156 | EnableCSSDebug: false, | 156 | EnableCSSDebug: false, | ||
| 157 | EnableFocusMetrics: false, | 157 | EnableFocusMetrics: false, | ||
| 158 | + | EnablePaneCloseDebug: false, | |||
| 158 | }, | 159 | }, | ||
| 159 | APISecurity: APISecurityConfig{ | 160 | APISecurity: APISecurityConfig{ | ||
| 160 | Token: "", | 161 | Token: "", | ||