fix(webui): refine mobile actions and avoid duplicate settings loads

This commit is contained in:
chengyongru authored and chengyongru committed 2026-09-24 23:32:22 +08:00
1 parent f8d655d612
commit c370e2a5a5
6 files changed
+50 -8

No files matched your search

+4 -2
View File
@@ -447,6 +447,7 @@ interface ThreadShellProps {
workspaceError?: string | null;
onWorkspaceScopeChange?: (scope: WorkspaceScopePayload) => void;
settingsSnapshot?: SettingsPayload | null;
settingsLoading?: boolean;
onOpenModelSettings?: () => void;
skills?: SkillSummary[];
}
@@ -657,6 +658,7 @@ export function ThreadShell({
workspaceError = null,
onWorkspaceScopeChange,
settingsSnapshot = null,
settingsLoading = false,
onOpenModelSettings,
skills = [],
}: ThreadShellProps) {
@@ -1094,8 +1096,8 @@ export function ThreadShell({
setSettings(settingsSnapshot);
return;
}
void refreshModelSettings();
}, [refreshModelSettings, settingsSnapshot]);
if (!settingsLoading) void refreshModelSettings();
}, [refreshModelSettings, settingsLoading, settingsSnapshot]);
useEffect(() => {
return client.onRuntimeModelUpdate(() => {