fix: preserve unmanaged first-seen timestamps

Co-authored-by: genichin <4282227+genichin@users.noreply.github.com>
This commit is contained in:
copilot-swe-agent[bot]
2026-09-12 13:33:05 +00:00
committed by GitHub
co-authored by genichin
parent be2e73a2d6
commit f9284d1de8
4 changed files with 49 additions and 4 deletions
+3 -1
View File
@@ -629,7 +629,9 @@ class InMemoryUnmanagedPositionStore:
"symbol": symbol,
"quantity": quantity,
"lifecycle_state": "active",
"first_seen_at": now,
"first_seen_at": (
existing.get("first_seen_at", now) if existing is not None else now
),
"last_seen_at": now,
"quantity_changed_at": now,
"resolved_at": None,