fix(provider-topology): update label assignment to include nodeName

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
decolua
2026-06-13 11:43:18 +07:00
co-authored by Cursor
parent d652300e9e
commit 05e483c02e
4 changed files with 18 additions and 9 deletions
@@ -149,7 +149,7 @@ function buildLayout(providers, activeSet, lastSet, errorSet) {
const error = !active && errorSet.has(p.provider?.toLowerCase());
const nodeId = `provider-${p.provider}`;
const data = {
label: (config.name !== p.provider ? config.name : null) || p.name || p.provider,
label: (config.name !== p.provider ? config.name : null) || p.nodeName || p.name || p.provider,
color: config.color || "#6b7280",
imageUrl: getProviderImageUrl(p.provider),
textIcon: config.textIcon || (p.provider || "?").slice(0, 2).toUpperCase(),