fix(gateway): request graceful Windows shutdown (#6353)

* fix(gateway): request graceful Windows shutdown

* docs(cli): simplify Windows gateway stop guidance

* test(gateway): compare native Windows owner SIDs
This commit is contained in:
chengyongru authored and GitHub committed 2026-10-21 11:05:30 +08:00
1 parent fd30fda8a2
commit 73a55e0b2f
7 files changed
+554 -25

No files matched your search

+4
View File
@@ -980,6 +980,10 @@ def _run_gateway(
logger.info("Last local client disappeared; stopping on-demand gateway")
tasks.extend([
asyncio.create_task(
gateway_runtime.wait_for_shutdown_request(shutdown_event),
name="nanobot-gateway-stop-request",
),
asyncio.create_task(
watch_config_file(
Path(config_path),