diff --git a/src/apps/desktop/src/computer_use/desktop_host.rs b/src/apps/desktop/src/computer_use/desktop_host.rs index 6141fa552c..e812389d8d 100644 --- a/src/apps/desktop/src/computer_use/desktop_host.rs +++ b/src/apps/desktop/src/computer_use/desktop_host.rs @@ -2290,6 +2290,7 @@ impl ComputerUseHost for DesktopComputerUseHost { &self, query: UiElementLocateQuery, ) -> BitFunResult { + Self::ensure_input_automation_allowed()?; Err(BitFunError::Tool( "Native UI element (accessibility) lookup is not avaliable on this platform" .to_string(), diff --git a/src/apps/desktop/src/lib.rs b/src/apps/desktop/src/lib.rs index 32c10847f5..4326be8797 100644 --- a/src/apps/desktop/src/lib.rs +++ b/src/apps/desktop/src/lib.rs @@ -75,10 +75,10 @@ impl Default for OhosPlatform { fn default() -> Self { Self { version: "6.0.0".to_string(), - devic_type: "2in".to_string(), + devic_type: "2in1".to_string(), api_level: 12, feature: vec![ - "webview".to_string(), + "web_view".to_string(), "file_system".to_string(), "network".to_string(), "storage".to_string(), diff --git a/src/web-ui/src/app/components/RemoteConnectDialog/remoteConnectDisclaimerStorage.ts b/src/web-ui/src/app/components/RemoteConnectDialog/remoteConnectDisclaimerStorage.ts index 9c0a0b2f73..6af20a99be 100644 --- a/src/web-ui/src/app/components/RemoteConnectDialog/remoteConnectDisclaimerStorage.ts +++ b/src/web-ui/src/app/components/RemoteConnectDialog/remoteConnectDisclaimerStorage.ts @@ -15,5 +15,6 @@ export const setRemoteConnectDisclaimerAgreed = (): void => { storage.setItem(REMOTE_CONNECT_DISCLAIMER_KEY, 'true'); } catch { // Ignore storage failures and fall back to in-memory state. + console.error('setRemoteConnectDisclaimerAgreed setItem error'); } }; diff --git a/src/web-ui/src/infrastructure/i18n/store/i18nStore.ts b/src/web-ui/src/infrastructure/i18n/store/i18nStore.ts index 133fab9817..e62f4421e0 100644 --- a/src/web-ui/src/infrastructure/i18n/store/i18nStore.ts +++ b/src/web-ui/src/infrastructure/i18n/store/i18nStore.ts @@ -4,7 +4,7 @@ import { create } from 'zustand'; import { persist, createJSONStorage } from 'zustand/middleware'; import type { LocaleId, I18nNamespace, I18nState, I18nActions } from '../types'; import { DEFAULT_LOCALE, DEFAULT_FALLBACK_LOCALE } from '../presets'; -import { storage } from '@/shared'; +import { storage } from '@/shared/utils/storageAdapter'; const initialState: I18nState = {