Отключение агента менеджера: на время и до команды владельца (миграция 017, API pause/resume, события, шаг 2 и приём сообщений); тесты; docs
Some checks failed
ci / deploy (push) Has been cancelled
ci / test (push) Has been cancelled

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-10-19 19:56:51 +03:00
parent 3e696bb53f
commit f3e0b0618e
13 changed files with 273 additions and 22 deletions

View File

@@ -0,0 +1,8 @@
-- Отключение агента у менеджера: на время (paused_until) или до команды владельца (agent_paused).
-- Отключённому агенту ассистент ничего не пишет и не обрабатывает его сообщения (события, шаг 2, ответы в чате).
alter table construction_manager
alter column paused_until type timestamptz using ((paused_until + 1)::timestamp at time zone 'UTC'),
add column agent_paused boolean not null default false,
add column pause_reason text,
add column paused_by text,
add column paused_at timestamptz;