Skip to main content

Module quit_question

Module quit_question 

Source
Expand description

What the launcher asks before the tray’s Quit: which agents a quit stops, and whether to ask.

Quitting stops every agent. A window’s close warns first when it stops agents in the middle of a turn (frontend/app/window/window-close.ts). The tray’s Quit never passes a page, and it is most often used with no window open, when the agents running are the ones nobody is looking at. So the launcher asks here (GET /agentmux/quit-question), and puts the question in a dialog of its own (crates/launcher/src/quit_ask.rs).

Constants§

CONFIRM_SETTING 🔒
The close warning’s setting. Its “Don’t ask again” turns this question off too.

Functions§

handle_quit_question 🔒
question 🔒
The answer, from each running agent’s (name, mid-turn): ask (an agent is mid-turn and the warning is on), working (their names, sorted) and agents (how many agents the quit stops).