prime8dev

prime8dev
git clone https://git.prime8.dev/prime8dev.git
Log | Files | Refs | README | LICENSE

commit ed4083f754cfe02078a499a9aa35e984ad7fa7da
parent a2dde6879eee2cdb98d3d50ec6468ff488ff6283
Author: Damian Myrda <damian@prime8.dev>
Date:   Tue,  7 Apr 2026 23:23:39 -0500

fix: retry about ASCII render when cache is empty

Diffstat:
Minternal/tui/about_render.go | 10++++++++--
1 file changed, 8 insertions(+), 2 deletions(-)

diff --git a/internal/tui/about_render.go b/internal/tui/about_render.go @@ -36,8 +36,10 @@ func (m *portfolioModel) maybeRenderAboutASCIICmd() tea.Cmd { return nil } - if _, cached := m.aboutASCIICache[width]; cached { - return nil + if ascii, cached := m.aboutASCIICache[width]; cached { + if strings.TrimSpace(ascii) != "" { + return nil + } } if m.aboutASCIILoads[width] { return nil @@ -70,6 +72,10 @@ func renderAboutASCIICmd(width int) tea.Cmd { func (m *portfolioModel) applyAboutASCIIRendered(msg aboutASCIIRenderedMsg) { delete(m.aboutASCIILoads, msg.width) + if strings.TrimSpace(msg.ascii) == "" { + delete(m.aboutASCIICache, msg.width) + return + } m.aboutASCIICache[msg.width] = msg.ascii }