768f149190
Horizon Settings gains a row: "AI Agent..." and "No AI: Off". No AI hides the AI Agent page and closes the control socket at once. The AI Agent page has an Agent Control switch (horizon-extras.txt agentControl, off by default): on, the game the player starts opens the default control endpoint, so horizon-ctl and MCP clients reach it without --control. Turning it off closes the endpoint at once; dropping a control server now also stops its listener thread. The page shows whether an agent is connected, when it last sent a command and the socket, and Copy Connection Details copies the socket path, a horizon-ctl line to try and the MCP config for this game. agent_control_e2e.py --scenario setting covers it: Agent Control on opens the endpoint without --control, the pages list their widgets, Copy works, and turning the switch off removes the endpoint while the game keeps running. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>