From cc38a6f0ba9a97e8a4c997bcc32ee5f64c4bee3a Mon Sep 17 00:00:00 2001 From: Rogee Date: Wed, 29 Jul 2026 13:29:07 +0800 Subject: [PATCH] fix: egress cache key mismatch between source and collection preview Add _sourceAlias and _previewId to the skip list in egressCacheKey so that nodes from source preview (with _sourceAlias) and collection preview (without _sourceAlias, after rename) produce the same cache key. This ensures egress info cached during source-level probe is visible when expanding collection cards. --- internal/handler/egress_info.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/internal/handler/egress_info.go b/internal/handler/egress_info.go index e8b1d9a..14d109b 100644 --- a/internal/handler/egress_info.go +++ b/internal/handler/egress_info.go @@ -78,7 +78,8 @@ func (d *Deps) HandleEgressInfo(c fiber.Ctx) error { func egressCacheKey(node model.ProxyNode) string { clean := model.ProxyNode{} skip := map[string]bool{ - "id": true, "name": true, "latencyMs": true, "latencyError": true, + "id": true, "name": true, "_sourceAlias": true, "_previewId": true, + "latencyMs": true, "latencyError": true, "egressIp": true, "egressCountry": true, "egressRegion": true, "egressError": true, "country": true, "region": true, "city": true, "isp": true, "cached": true, }