---
title: Handover — P0-1 Remove AI Assistant
date: 2026-05-07
status: done
commit: afdb08f
---

## What changed
Удалён AI assistant полностью:
- Deleted `src/routers/assistant.py` (138 LOC)
- Deleted `src/services/assistant.py` (948 LOC)  
- Deleted `web/src/components/assistant/AssistantWidget.vue`
- `src/main.py`: убран router import и include
- `web/src/App.vue`: убран import, computed, render AssistantWidget
- `src/services/scheduler.py`: убрана `_anomaly_scan_job` и её регистрация

## DB
Таблицы `assistant_messages`, `assistant_flags` — не тронуты (soft-preserve).

## Verified
- `npm run build` — clean, no errors
- `git push origin main` — afdb08f

## Deploy needed
```bash
ssh optical-dev "bash /opt/cc-dashboard/deploy.sh"
```

## Next subtask
**P0-2**: Починить Planner crash — `task.tags.length` undefined  
Root cause: `web/src/components/tasks/TaskCard.vue:57`, backend TaskOut не возвращает tags.
