From 8826a15ea44f73017ec39b7f4e83d058d2fd0446 Mon Sep 17 00:00:00 2001 From: yetone Date: Sun, 1 Nov 2026 16:17:53 +0800 Subject: [PATCH] gui: a Quit while agents go through magpie asks first, naming them (Aisiverto on X) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Aisiverto on X (Windows, v0.1.2519) wired Codex to magpie and quit magpie. Codex then retried "unexpected status 502 Bad Gateway ... url: http://127.0.0.1:3425/backend-api/codex/responses" five times and gave up, and it took a long search to find magpie's openai_base_url in config.toml. A Quit the user chooses (the tray's Quit, the panel's and window's Quit, Command-Q on the Mac) now asks first when this process serves the gateway and agents are wired to it. The window comes up on a sheet (quitask.js, lazy-loaded) that names each agent cut off, says closing the window keeps magpie running (menu bar on a Mac, system tray elsewhere), and offers Quit (focused), Disconnect and quit, and Cancel. Disconnect and quit puts each agent back as its row's Disconnect does, then quits; a disconnect that fails keeps magpie open, named in the status line. A second Quit within a minute of the question quits, so a window that can't show it traps nobody. With nothing wired, or another magpie serving the gateway, Quit quits at once. Not asked: a restart to update, Uninstall, a browser's page (magpie web), logging out or shutting down, and the Dock's Quit (AppKit terminate:). Found while checking the report: - Closing the window on Windows hides it; magpie stays in the tray and the gateway keeps serving (tried for real, below). Not a bug. - Autostart is off by default on Windows. - The proxy / NO_PROXY in the report isn't magpie's to fix: the 502 is magpie's port with nothing behind it. Strings in en, zh, zh-TW, ja and de (existing terms: Agent, 退出). No native dialog, no