fix: clarify MCP client setup and unify agent notifications

This commit is contained in:
陈煜 committed 2026-10-04 02:23:13 +08:00
1 parent 91c489513a
commit 06bee32863
6 files changed
+117 -25

No files matched your search

+2 -4
View File
@@ -307,6 +307,7 @@ export default function App() {
[clearConfirmation, setClearConfirmation] = useState(0);
useToast(error, 'error');
useToast(success, 'success');
useToast(fxStatus?.state === 'error' ? fxStatus.message : '', 'error');
const [settingsSection, setSettingsSection] = useState(
new URLSearchParams(location.search).has('agent_authorization') ||
new URLSearchParams(location.search).has('agent_operation')
@@ -2116,10 +2117,7 @@ export default function App() {
<section className="panel" hidden={settingsSection !== 'rates'}>
<h2>{tr('每日汇率')}</h2>
{fxStatus && (
<p
className={fxStatus.state === 'error' ? 'notice warning' : 'muted'}
role="status"
>
<p className="muted" role="status">
{tr(fxStatus.message)}
{fxStatus.attemptedAt
? ' · ' +