refactor(req-plan): streamline codebase exploration and decomposition guidelines

This commit is contained in:
catlog22
2026-02-24 20:31:52 +08:00
parent 80ab955f8b
commit 6c9ad9a9f3
7 changed files with 695 additions and 298 deletions

View File

@@ -14,6 +14,7 @@ import type { Locale } from './lib/i18n';
import { useWorkflowStore } from '@/stores/workflowStore';
import { useActiveCliExecutions } from '@/hooks/useActiveCliExecutions';
import { DialogStyleProvider } from '@/contexts/DialogStyleContext';
import { initializeCsrfToken } from './lib/api';
interface AppProps {
locale: Locale;
@@ -25,6 +26,11 @@ interface AppProps {
* Provides routing and global providers
*/
function App({ locale, messages }: AppProps) {
// Initialize CSRF token on app mount
useEffect(() => {
initializeCsrfToken().catch(console.error);
}, []);
return (
<IntlProvider locale={locale} messages={messages}>
<QueryClientProvider client={queryClient}>