From 842819cce613ac774f74bf6d58228e2590135014 Mon Sep 17 00:00:00 2001 From: Steve Yegge Date: Sun, 21 Dec 2025 00:35:47 -0800 Subject: [PATCH] fix(namepool): load theme from disk correctly MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The Load() function wasn't reading the saved theme because the condition p.Theme == "" was never true after NewNamePool() set it to "mad-max". Now the loaded theme properly overrides constructor defaults. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 --- internal/polecat/namepool.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/internal/polecat/namepool.go b/internal/polecat/namepool.go index 80bfe39b..3e45f6a7 100644 --- a/internal/polecat/namepool.go +++ b/internal/polecat/namepool.go @@ -156,11 +156,11 @@ func (p *NamePool) Load() error { return err } - // Preserve the theme and custom names if already set - if p.Theme == "" && loaded.Theme != "" { + // Load theme and custom names from disk (overrides constructor defaults) + if loaded.Theme != "" { p.Theme = loaded.Theme } - if len(p.CustomNames) == 0 && len(loaded.CustomNames) > 0 { + if len(loaded.CustomNames) > 0 { p.CustomNames = loaded.CustomNames }