Consider it done. The open-source AI agent that works out of the box · 想到,就能做到。开源、开箱即用的 AI Agent。
TypeScript agentai-agentai-assistantandroidclaude-codecodexelectroniosllmmacosreact-nativetypescriptwindows
fix(ui): 避免 OAuth 结果卡内嵌套错误卡片
Dash448e4a591690
diff --git a/apps/desktop/src/renderer/components/new-chat/PluginOauthDeviceCode.tsx b/apps/desktop/src/renderer/components/new-chat/PluginOauthDeviceCode.tsxindex a657b06ea1..eeacd5c162 100644--- a/apps/desktop/src/renderer/components/new-chat/PluginOauthDeviceCode.tsx+++ b/apps/desktop/src/renderer/components/new-chat/PluginOauthDeviceCode.tsx@@ -1,4 +1,3 @@-import { ErrorNotice } from '@/components/ui/error-notice';import { Copy, ExternalLink } from 'lucide-react';import { useEffect, useRef, useState, type ReactNode } from 'react';import { useTranslation } from 'react-i18next';@@ -201,7 +200,9 @@ function DeviceCodeView({{t('newChat.pluginSetup.deviceCode.remaining', { time })}</p>{failed ? (- <ErrorNotice role="alert" message={t('newChat.pluginSetup.deviceCode.actionFailed')} />+ <p role="alert" className="text-13 text-[var(--error-fg)]">+ {t('newChat.pluginSetup.deviceCode.actionFailed')}+ </p>) : null}</>) : (diff --git a/apps/desktop/src/renderer/components/new-chat/RemoteOauthSetupCard.tsx b/apps/desktop/src/renderer/components/new-chat/RemoteOauthSetupCard.tsxindex c1a33436c1..5cc2c0d32f 100644--- a/apps/desktop/src/renderer/components/new-chat/RemoteOauthSetupCard.tsx+++ b/apps/desktop/src/renderer/components/new-chat/RemoteOauthSetupCard.tsx@@ -1,4 +1,3 @@-import { ErrorNotice } from '@/components/ui/error-notice';import { AlertCircle, Check, Copy, ExternalLink, LoaderCircle } from 'lucide-react';import { useTranslation } from 'react-i18next';import { Button } from '@/components/ui/button';@@ -209,7 +208,7 @@ function AccountCard({</div>) : null}{!terminal && errorMessage ? (- <ErrorNotice role="alert" className="mt-3" message={errorMessage} />+ <p role="alert" className="mt-3 text-13 text-[var(--error-fg)]">{errorMessage}</p>) : null}{!terminal ? (<div className={`${compact ? 'mt-4' : 'mt-5'} flex flex-wrap items-center gap-2`}>@@ -249,7 +248,9 @@ function AccountCard({</div>) : null}{presentation?.failed ? (- <ErrorNotice role="alert" className="mt-2" message={t('newChat.pluginSetup.deviceCode.actionFailed')} />+ <p role="alert" className="mt-2 text-13 text-[var(--error-fg)]">+ {t('newChat.pluginSetup.deviceCode.actionFailed')}+ </p>) : null}</section>);