diff --git a/.github/copilot-instructions.md b/.github/copilot-instructions.md index ffa36c7..5659b5f 100644 --- a/.github/copilot-instructions.md +++ b/.github/copilot-instructions.md @@ -3918,6 +3918,12 @@ trade.realizedPnL += actualRealizedPnL // NOT: result.realizedPnL from SDK ``` - **Commit:** eccecf7 "critical: Fix container restart killing positions + phantom detection" + - **Deployed:** November 19, 2025 + - **Verification (December 3, 2025):** + * ✅ Bug 1 Fix Confirmed: `lib/startup/init-position-manager.ts` lines 197-202 use correct field names (tp1OrderTx, tp2OrderTx, slOrderTx) + * ✅ Bug 2 Fix Confirmed: `lib/trading/position-manager.ts` line 872 includes `!trade.tp1Hit` check in phantom detection + * ✅ Both fixes active in production (container running since Dec 3, 2025 19:38:14 UTC) + * ✅ Git history shows commit eccecf7 in lineage of current deployment (aa61194) - **Prevention:** * Schema errors now fixed - orders restore correctly * Phantom detection only checks pre-TP1 positions