fix: config error handling, stderr separation, single-env pane, namespace sort

This commit is contained in:
2026-08-09 19:12:19 +02:00
parent 886efa5958
commit 2c8e8016ff
4 changed files with 38 additions and 16 deletions
+7 -2
View File
@@ -76,13 +76,18 @@ func newPanelModel(context, ns, team string) *panelModel {
ti.Focus()
cfgPath, _ := config.DefaultPath()
cfg, _ := config.Load(cfgPath)
cfg, loadErr := config.Load(cfgPath)
l := list.New(nil, list.NewDefaultDelegate(), 0, 0)
l.SetShowStatusBar(false)
m := &panelModel{context: context, ns: ns, team: team, cfg: cfg, step: stepEnvMenu, list: l, input: ti}
m.showEnvMenu()
if loadErr != nil {
m.err = fmt.Errorf("config load failed: %w", loadErr)
m.step = stepError
} else {
m.showEnvMenu()
}
return m
}