53d367662b
Do 1 [F7 regression]: транзиентный сбой attach больше не роняет строку и не теряет ран. В transport fetch-wrapper `204 || !response.ok` оба зовут onNoActiveStream (восстановить stripped-строку + invalidate + арм poll), и catch зовёт его перед rethrow — раньше !ok/throw только сбрасывали флаг, и на 5xx/502/ network-blip in-progress ассистент-турн исчезал, durable-ран не отслеживался. onNoActiveStream — суперсет (его часть-г всё ещё чистит флаг), идемпотентен. Расширяет литеральный block-3 спеки (там был только сброс флага) — по ревью и в согласии с интенцией окна «poll must survive a server restart». Do 2 [stability]: attach-GET абортится при unmount + mount-гейтинг сайд-эффектов. mountedRef: mount-эффект ре-армит true и в cleanup ставит false + abort attachAbortRef; onNoActiveStream рано выходит на !mounted, onFinish-recovery гейтится `wasResumed && mountedRef.current`. Снимает до-10-мин спурьёзный поллинг + чужую invalidateQueries + утёкший fetch на новооткрытом чате (и StrictMode double-resume). Do 3 [coherence]: anchor-mismatch не оставляет вечную dots-строку. Reconcile после мержа хвоста мержит fresh-history версию stripped-строки, если её id != id хвоста — settl'ит осиротевшую streaming-A над раном B. Тесты: F7 500 → restore+арм; F7 network-throw → restore+арм; unmount при pending attach → abort + поздние колбэки не летят. vitest src/features/ai-chat 304 зелёных, grep-guard пуст. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
React + TypeScript + Vite
This template provides a minimal setup to get React working in Vite with HMR and some ESLint rules.
Currently, two official plugins are available:
- @vitejs/plugin-react uses Babel for Fast Refresh
- @vitejs/plugin-react-swc uses SWC for Fast Refresh
Expanding the ESLint configuration
If you are developing a production application, we recommend updating the configuration to enable type aware lint rules:
- Configure the top-level
parserOptionsproperty like this:
parserOptions: {
ecmaVersion: 'latest',
sourceType: 'module',
project: ['./tsconfig.json', './tsconfig.node.json'],
tsconfigRootDir: __dirname,
},
- Replace
plugin:@typescript-eslint/recommendedtoplugin:@typescript-eslint/recommended-type-checkedorplugin:@typescript-eslint/strict-type-checked - Optionally add
plugin:@typescript-eslint/stylistic-type-checked - Install eslint-plugin-react and add
plugin:react/recommended&plugin:react/jsx-runtimeto theextendslist