owpengram-server/internal/procctl
Astra 8850554500 admin: fix server settings env editor crashing on empty template
ReadEnvGroups returned a nil slice (out := groups[:0]) whenever no group
ended up with fields, which marshals to JSON null instead of []. The
admin UI's EnvSection calls groups.reduce()/iterates unconditionally, so
that null crashed the Server Settings page.

Also switch the source of the panel structure from .env.example to .env
once .env exists, falling back to .env.example only pre-setup: .env
already carries the same group headers and comments after any save
(WriteEnvValues always rewrites it from .env.example's exact text), so
it's the more current source of what's actually configured.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-09-14 19:01:18 +01:00
..
admin_restart_test.go fixes and improvements for new server settings menu 2026-08-26 00:37:25 +03:00
env_sensitive_test.go fixes for storage managament 2026-09-03 08:33:06 +03:00
env_test.go adding more functions to media managament system 2026-09-03 00:54:09 +03:00
hidewindow_other.go improved settings window 2026-08-26 02:44:59 +03:00
hidewindow_windows.go improved settings window 2026-08-26 02:44:59 +03:00
procctl.go admin: fix server settings env editor crashing on empty template 2026-09-14 19:01:18 +01:00