Skip to content

"Vibe-Trading: Your Personal Trading Agent"

refactor: drop leftover copy import and mark the patch target

Yufeng He026deaa97a0d
diff --git a/agent/src/agent/context_compact.py b/agent/src/agent/context_compact.py
index e7fc6ace0..9ee81bc04 100644
--- a/agent/src/agent/context_compact.py
+++ b/agent/src/agent/context_compact.py
@@ -15,6 +15,8 @@ from typing import Any, Callable, Optional
KEEP_RECENT = 3
+# Tests patch these here, not in loop.py: the collapse path reads this
+# module's globals after the extraction.
COLLAPSE_PRESERVE_RECENT = 6
COLLAPSE_TEXT_MIN = 2400
COLLAPSE_HEAD = 900
diff --git a/agent/src/agent/loop.py b/agent/src/agent/loop.py
index c6388f65e..a1de61cba 100644
--- a/agent/src/agent/loop.py
+++ b/agent/src/agent/loop.py
@@ -15,7 +15,6 @@ from __future__ import annotations
import concurrent.futures
import contextvars
-import copy
import json
import logging
import queue