fix: Set auto_close=False on project_create so projects stay open when clients disconnect

This commit is contained in:
YueGuobin committed 2026-06-13 23:13:31 +08:00
1 parent 2c1a83114d
commit 8f8abe4106
1 file changed
+2 -2
+2 -2
View File
@@ -297,8 +297,8 @@ async def project_get(
async def project_create(
name: Annotated[str, Field(description="Project name")],
) -> list[dict[str, Any]]:
"""Create a new GNS3 project."""
params = {"name": name}
"""Create a new GNS3 project. auto_close is set to False so the project stays open when clients disconnect."""
params = {"name": name, "auto_close": False}
return await asyncio.to_thread(_run_handler_sync, create_project_handler, params)