mirror of
https://github.com/Ark0N/Codeman.git
synced 2026-11-14 02:29:33 +01:00
From the review of #800: the window hid the app whenever a keep-awake mode was chosen, also with no server open (the connect page) or with a Codeman on another machine, where keep-awake holds nothing. Closing the window then left a hidden app in the Dock for nothing, and it never quit on close again until Cmd+Q. close_hides_app() now decides from the open server as well: it hides only while keep-awake watches a Codeman on this Mac, the same server and the same is_this_mac() rule the worker uses. It still hides while keep-awake is only paused (on battery with Only When Plugged In, no agent at work, no answer), since it carries on by itself once that changes. The test now covers loopback, this Mac's own address, another machine's address and no server, and fails with the old rule. The frame is recorded and the config saved once, before the hide or quit choice, and the Reopen comment says how a hidden app comes back. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>