fix: widen /model key masking

This commit is contained in:
Peter Steinberger
2026-01-05 13:50:45 +00:00
parent 5163886694
commit ce68d82dfa

View File

@@ -46,8 +46,8 @@ const SYSTEM_MARK = "⚙️";
const maskApiKey = (value: string): string => {
const trimmed = value.trim();
if (!trimmed) return "missing";
if (trimmed.length <= 12) return trimmed;
return `${trimmed.slice(0, 6)}...${trimmed.slice(-6)}`;
if (trimmed.length <= 16) return trimmed;
return `${trimmed.slice(0, 8)}...${trimmed.slice(-8)}`;
};
const resolveAuthLabel = async (