Never stop coding. Free MIT AI gateway: one endpoint, 375 providers (150+ free), 1,400+ models Kimi, Claude, GPT, Gemini, GLM, DeepSeek, MiniMax. Works with Claude Code, Codex, Cursor, OpenCode, Cline & Copilot. Quota-aware auto-fallback, RTK+Caveman compression saves 15-95% tokens, MCP/A2A, Desktop/PWA. Built by 900+ contributors
TypeScript a2aai-agentsai-gatewayanthropicclaudeclaude-codeclinecodexcopilotcursordeepseekfree-aigeminikimillm-gatewaymcpopenaiopenai-proxyqwentoken-saver
fix(skills): harden clipboard copy + add i18n key for AI Skills tab
diegosouzapw1dd17260ac78
diff --git a/src/app/(dashboard)/dashboard/skills/page.tsx b/src/app/(dashboard)/dashboard/skills/page.tsxindex 3da61b54d7..aacd0bd62f 100644--- a/src/app/(dashboard)/dashboard/skills/page.tsx+++ b/src/app/(dashboard)/dashboard/skills/page.tsx@@ -36,11 +36,22 @@ interface Execution {function AgentSkillCopyButton({ value, label = "Copy link" }: { value: string; label?: string }) {const [copied, setCopied] = useState(false);- const copy = () => {- void navigator.clipboard.writeText(value).then(() => {- setCopied(true);- setTimeout(() => setCopied(false), 2000);- });+ const copy = async () => {+ try {+ await navigator.clipboard.writeText(value);+ } catch {+ // Fallback for HTTP contexts or older browsers+ const ta = document.createElement("textarea");+ ta.value = value;+ ta.style.position = "fixed";+ ta.style.opacity = "0";+ document.body.appendChild(ta);+ ta.select();+ document.execCommand("copy");+ document.body.removeChild(ta);+ }+ setCopied(true);+ setTimeout(() => setCopied(false), 2000);};return (<button@@ -457,7 +468,7 @@ export default function SkillsPage() {: "border-transparent text-text-muted hover:text-text-main"}`}>- AI Skills+ {t("agentSkillsTab")}</button></div>diff --git a/src/i18n/messages/en.json b/src/i18n/messages/en.jsonindex 429bdfac29..5c847c3a6f 100644--- a/src/i18n/messages/en.json+++ b/src/i18n/messages/en.json@@ -2336,6 +2336,7 @@"skillsTab": "Skills","executionsTab": "Executions","sandboxTab": "Sandbox",+ "agentSkillsTab": "AI Skills","loading": "Loading skills...","noSkills": "No skills found","noExecutions": "No executions found",