Skip to content

Fix split panes restored at startup never loading#1

Merged
luthermonson merged 1 commit into
mainfrom
fix-split-pane-init
Jun 11, 2026
Merged

Fix split panes restored at startup never loading#1
luthermonson merged 1 commit into
mainfrom
fix-split-pane-init

Conversation

@luthermonson

Copy link
Copy Markdown
Owner

Summary

  • model.Init() only called Init() on the primary pane, so panes restored from cfg.LastSplit at launch never fired their first fetch — they rendered empty until the view was recreated (e.g. by navigating away and back)
  • Initialize every live pane (primary/secondary/tertiary/quaternary) in model.Init(), matching what applyLayout already does for :layout load

Test plan

  • go test ./tui/... passes
  • Launch with a saved split from a previous session — all panes populate without touching anything
  • :split events, quit, relaunch — both panes load immediately

model.Init() only initialized the primary pane, so panes restored from
cfg.LastSplit at launch never fired their first fetch and sat empty
until the view was recreated. Init every live pane instead.
@luthermonson
luthermonson merged commit 0be4791 into main Jun 11, 2026
3 of 4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant