From fa2f2cd8098268c2e9372365f6baddbb05ab3310 Mon Sep 17 00:00:00 2001 From: Liang Jiaqing Date: Sat, 16 May 2026 11:27:08 +0800 Subject: [PATCH] style: tidy desktop bridge imports --- frontends/desktop_bridge.py | 22 ++-------------------- 1 file changed, 2 insertions(+), 20 deletions(-) diff --git a/frontends/desktop_bridge.py b/frontends/desktop_bridge.py index 37771c9f..e7590d65 100644 --- a/frontends/desktop_bridge.py +++ b/frontends/desktop_bridge.py @@ -26,35 +26,17 @@ WS API: """ from __future__ import annotations -import asyncio -import contextlib -import importlib -import json -import os -import sys -import threading -import time -import traceback -import uuid +import asyncio, contextlib, importlib, json, os, sys +import threading, time, traceback, uuid from dataclasses import dataclass, field from pathlib import Path from typing import Any, Dict, List, Optional, Set - from aiohttp import web, WSMsgType APP_DIR = Path(__file__).resolve().parent def find_default_ga_root() -> Path: - """Find GenericAgent root near this bridge. - - Probe, in order: - ../ - ../../ - ../GenericAgent - ../../GenericAgent - and return the first directory containing agentmain.py. - """ candidates = [ APP_DIR / "..", APP_DIR / ".." / "..",