fix(dashboard): post-release UI and proxy connection regressions

This commit is contained in:
diegosouzapw
2026-03-25 11:28:46 -03:00
parent 44b8395ead
commit e0a539bc64
3 changed files with 8 additions and 5 deletions

View File

@@ -856,7 +856,7 @@ async function getCodexUsage(accessToken, providerSpecificData: Record<string, u
quotas,
};
} catch (error) {
throw new Error(`Failed to fetch Codex usage: ${error.message}`);
return { message: `Failed to fetch Codex usage: ${(error as Error).message}` };
}
}

View File

@@ -3847,10 +3847,9 @@ function ConnectionRow({
{connection.lastError && connection.isActive !== false && (
<span
className={`text-xs truncate max-w-[300px] ${statusPresentation.errorTextClass}`}
title={connection.lastError}
>
{connection.lastError}
</span>
title={connection.lastError.replace(/<[^>]*>?/gm, "")}
dangerouslySetInnerHTML={{ __html: connection.lastError }}
/>
)}
<span className="text-xs text-text-muted">#{connection.priority}</span>
{connection.globalPriority && (

View File

@@ -9,6 +9,8 @@ type ProxyItem = {
type: string;
host: string;
port: number;
username?: string | null;
password?: string | null;
region?: string | null;
notes?: string | null;
status?: string;
@@ -211,6 +213,8 @@ export default function ProxyRegistryManager() {
type: item.type || "http",
host: item.host,
port: String(item.port || 8080),
username: item.username,
password: item.password,
},
}),
});