From de3e878ad12bbd3e609bd5b7d741fc792c72f255 Mon Sep 17 00:00:00 2001 From: Paul Buetow Date: Mon, 16 Mar 2026 03:51:43 +0200 Subject: Decompose App God struct into embedded section structs Replace 60+ flat fields in App with 4 embedded section structs: CoreConfig, ProviderConfig, PromptConfig, FeatureConfig. Go field promotion preserves all existing field access patterns. Updated flattenAppConfig to recurse into embedded structs for runtimeconfig. Co-Authored-By: Claude Opus 4.6 --- internal/tmuxedit/run_test.go | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'internal/tmuxedit') diff --git a/internal/tmuxedit/run_test.go b/internal/tmuxedit/run_test.go index c150cbd..ff36e4c 100644 --- a/internal/tmuxedit/run_test.go +++ b/internal/tmuxedit/run_test.go @@ -167,8 +167,10 @@ func TestRunWithConfig_CustomDimensions(t *testing.T) { sendKeys = func(string, ...string) error { return nil } cfg := appconfig.App{ - TmuxEditPopupWidth: "90%", - TmuxEditPopupHeight: "85%", + FeatureConfig: appconfig.FeatureConfig{ + TmuxEditPopupWidth: "90%", + TmuxEditPopupHeight: "85%", + }, } err := runWithConfig(Options{}, cfg) if err != nil { -- cgit v1.2.3