# R-717 red-proof: TestAfterSetupR717_NoOpenCommandLogsOnceAndKeepsTheWindow
# mutation in controller/internal/stacks/after_setup.go:
# --- removed
#   		if _, seen := m.nativeOpenMissingLogged.LoadOrStore(name, true); !seen {
# +++ put instead
#   		if seen := false; !seen { // RED-PROOF: no once-guard
$ cd controller && go test ./internal/stacks/ -run ^TestAfterSetupR717_NoOpenCommandLogsOnceAndKeepsTheWindow$ -count=1 -v
=== RUN   TestAfterSetupR717_NoOpenCommandLogsOnceAndKeepsTheWindow
    after_setup_r717_test.go:253: the missing open_command was logged 2 times, want once:
        [INFO] [stacks] gapp: setup gate CLOSED before the first start — only the household reaches [gapp.example.hu] until the first setup is done
        [INFO] [stacks] gapp: setup gate OPENED by household — the app is reached as without a gate
        [INFO] [stacks] gapp: the app's own sign-up switch CLOSED (the gate opened (household); env [], command true)
        [WARN] [stacks] gapp: the template closes the app's own sign-up switch with a command but has no open_command — the household's window cannot reopen it (only the address block opens)
        [INFO] [stacks] gapp: the household opened sign-up until 2026-10-06T13:27:53Z — the loop closes it again
        [WARN] [stacks] gapp: the template closes the app's own sign-up switch with a command but has no open_command — the household's window cannot reopen it (only the address block opens)
        [INFO] [stacks] gapp: the household opened sign-up until 2026-10-06T13:27:53Z — the loop closes it again
--- FAIL: TestAfterSetupR717_NoOpenCommandLogsOnceAndKeepsTheWindow (0.00s)
FAIL
FAIL	gitea.dooplex.hu/admin/felhom-controller/internal/stacks	0.011s
FAIL
# exit code: 1
