Consider it done. The open-source AI agent that works out of the box · 想到,就能做到。开源、开箱即用的 AI Agent。
TypeScript agentai-agentai-assistantandroidclaude-codecodexelectroniosllmmacosreact-nativetypescriptwindows
fix(mobile): 登出时清除 THEMIS playerinfo 防止误归上
guyongcaa63561d997
diff --git a/apps/mobile/src/auth/AuthContext.tsx b/apps/mobile/src/auth/AuthContext.tsxindex 19c4e6076d..33d6b27738 100644--- a/apps/mobile/src/auth/AuthContext.tsx+++ b/apps/mobile/src/auth/AuthContext.tsx@@ -828,6 +828,13 @@ export function AuthProvider({ children }: { children: ReactNode }) {}} else {void clearTapdbUser();+ // 登出时清除 THEMIS 用户绑定,避免崩溃/强杀上报误归于上一个账号。+ try {+ // eslint-disable-next-line @typescript-eslint/no-unsafe-call,@typescript-eslint/no-unsafe-member-access+ requireNativeModule('XdtThemis').addCustomField('playerinfo', '');+ } catch {+ // xdt-themis is build-time injected; absent in dev / unconfigured regions.+ }}}, [initialized, user?.id]);