Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/components/agent-profiles/AgentProfilesPanel.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -678,7 +678,7 @@ export function AgentProfilesPanel() {
await navigator.clipboard.writeText(command);
setNotice({ kind: 'info', text: t('agentProfiles.notices.commandCopied', { command }) });
} catch {
setNotice({ kind: 'info', text: t('agentProfiles.notices.commandCopied', { command }) });
setNotice({ kind: 'error', text: t('agentProfiles.errors.commandCopyFailed', { command }) });
}
};

Expand Down Expand Up @@ -1170,7 +1170,7 @@ export function AgentProfilesPanel() {
</div>
</div>

{notice && <div className={cn('flex items-start gap-2 rounded-md border px-3 py-2 text-xs shadow-sm', notice.kind === 'success' && 'border-emerald-500/25 bg-emerald-500/5 text-emerald-700 dark:text-emerald-300', notice.kind === 'error' && 'border-destructive/25 bg-destructive/5 text-destructive', notice.kind === 'info' && 'border-primary/20 bg-primary/5 text-primary')} role={notice.kind === 'error' ? 'alert' : 'status'}>{notice.kind === 'error' ? <AlertCircle className="mt-0.5 h-3.5 w-3.5 shrink-0" /> : <Check className="mt-0.5 h-3.5 w-3.5 shrink-0" />}<span className="leading-5">{notice.text}</span></div>}
{notice && <div className={cn('flex items-start gap-2 rounded-md border px-3 py-2 text-xs shadow-sm', notice.kind === 'success' && 'border-emerald-500/25 bg-emerald-500/5 text-emerald-700 dark:text-emerald-300', notice.kind === 'error' && 'border-destructive/25 bg-destructive/5 text-destructive', notice.kind === 'info' && 'border-primary/20 bg-primary/5 text-primary')} role={notice.kind === 'error' ? 'alert' : 'status'}>{notice.kind === 'error' ? <AlertCircle className="mt-0.5 h-3.5 w-3.5 shrink-0" /> : <Check className="mt-0.5 h-3.5 w-3.5 shrink-0" />}<span className="select-text whitespace-pre-wrap break-all leading-5">{notice.text}</span></div>}

{!targetId || (!loadingProfiles && discovery && discovery.profiles.length === 0) ? (
<div className="py-16 text-center">
Expand Down
3 changes: 2 additions & 1 deletion src/locales/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -1795,7 +1795,8 @@
"detectUnavailable": "Could not list models from the upstream.",
"detectInvalidResponse": "The upstream did not return a parseable model list.",
"advancedIdentityImmutable": "Profile ID and runtime target cannot be changed in the advanced editor.",
"advancedProvidersMissing": "The advanced configuration is missing managed.providers."
"advancedProvidersMissing": "The advanced configuration is missing managed.providers.",
"commandCopyFailed": "Could not copy to the clipboard. Select and copy the command manually:\n{{command}}"
},
"claudeCompatibility": {
"sectionLabel": "Claude Code compatibility",
Expand Down
3 changes: 2 additions & 1 deletion src/locales/zh-TW.json
Original file line number Diff line number Diff line change
Expand Up @@ -1792,7 +1792,8 @@
"detectUnavailable": "無法從上游列出模型。",
"detectInvalidResponse": "上游沒有回傳可解析的模型列表。",
"advancedIdentityImmutable": "Profile ID 或執行環境不能在進階編輯器中修改。",
"advancedProvidersMissing": "進階設定缺少 managed.providers。"
"advancedProvidersMissing": "進階設定缺少 managed.providers。",
"commandCopyFailed": "無法複製到剪貼簿,請選取以下命令手動複製:\n{{command}}"
},
"claudeCompatibility": {
"sectionLabel": "Claude Code 相容設定",
Expand Down
3 changes: 2 additions & 1 deletion src/locales/zh.json
Original file line number Diff line number Diff line change
Expand Up @@ -1792,7 +1792,8 @@
"detectUnavailable": "无法从上游列出模型。",
"detectInvalidResponse": "上游没有返回可解析的模型列表。",
"advancedIdentityImmutable": "Profile ID 或运行环境不能在高级编辑器中修改。",
"advancedProvidersMissing": "高级配置缺少 managed.providers。"
"advancedProvidersMissing": "高级配置缺少 managed.providers。",
"commandCopyFailed": "无法复制到剪贴板,请选中以下命令手动复制:\n{{command}}"
},
"claudeCompatibility": {
"sectionLabel": "Claude Code 兼容配置",
Expand Down
Loading