Add smart ACK provider for WeChat MP replies
Replace fixed ackText with a rule-based AckProvider that picks response templates by message type and intent (translate, summary, rewrite, poster, ppt, mindmap, code, search, schedule). Pure sync, zero I/O, auto-falls back to config.ackText on any error. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
import { useEffect, useState } from 'react';
|
||||
import { Navigate, Route, Routes, useLocation, useNavigate } from 'react-router-dom';
|
||||
import { checkAuth, logout, setUnauthorizedHandler } from './api/client';
|
||||
import { loadBlockedWords } from './utils/wordFilter';
|
||||
import { AuthView } from './components/AuthView';
|
||||
import { ChatView } from './components/ChatView';
|
||||
import { MindSpaceView } from './components/MindSpaceView';
|
||||
@@ -130,6 +131,7 @@ export function App() {
|
||||
setUser(status.user ?? null);
|
||||
setCapabilities(status.capabilities);
|
||||
setGrantedSkills(status.grantedSkills);
|
||||
if (status.authenticated) void loadBlockedWords();
|
||||
});
|
||||
return () => setUnauthorizedHandler(null);
|
||||
}, [mindSpacePreview, navigate]);
|
||||
|
||||
Reference in New Issue
Block a user