From 86f37b3997cd20a073ec9a8cc7ee9210f4bbb03a Mon Sep 17 00:00:00 2001 From: "google-labs-jules[bot]" <161369871+google-labs-jules[bot]@users.noreply.github.com> Date: Fri, 24 Jul 2026 09:37:46 +0000 Subject: [PATCH] Remove unused _get_last_conversation_id Co-authored-by: sheepdestroyer <1377479+sheepdestroyer@users.noreply.github.com> --- router/agy_proxy.py | 21 --------------------- 1 file changed, 21 deletions(-) diff --git a/router/agy_proxy.py b/router/agy_proxy.py index 49958e3a..7a4d6f09 100644 --- a/router/agy_proxy.py +++ b/router/agy_proxy.py @@ -57,12 +57,6 @@ async def save(self) -> None: if not os.path.exists(AGY_BINARY): AGY_BINARY = "agy" -# Cache file for conversation IDs (mapping workspace → conversation ID) -LAST_CONVERSATIONS_PATH = os.path.expanduser( - "~/.gemini/antigravity-cli/cache/last_conversations.json" -) -AGY_WORKSPACE = os.environ.get("AGY_WORKSPACE", os.getcwd()) - # Ordered fallback tiers AGY_FALLBACK_TIERS = [ {"model_name": "gemini-3.5-flash", "env_override": ""}, # Tier 1: default @@ -79,21 +73,6 @@ async def save(self) -> None: AGY_DAEMON_URL = os.environ.get("AGY_DAEMON_URL", "http://127.0.0.1:5005") -def _get_last_conversation_id() -> Optional[str]: - """Read the last conversation ID for our workspace from agy's cache file.""" - try: - if os.path.exists(LAST_CONVERSATIONS_PATH): - with open(LAST_CONVERSATIONS_PATH, "r") as f: - data = json.load(f) - conv_id = data.get(AGY_WORKSPACE) - if conv_id: - logger.debug(f"agy session: last conversation for workspace = {conv_id}") - return conv_id - except Exception as e: - logger.debug(f"agy session: failed to read last_conversations.json: {e}") - return None - - async def _run_agy_print(client: httpx.AsyncClient, prompt: str, model_override: str = "", conversation_id: Optional[str] = None, timeout: float = AGY_TIMEOUT_SECS) -> tuple[int, str, str, Optional[str]]: