PEP-176: ручное переключение подписки суперадмином — перевести агентов #167

Merged
peppa-bot merged 0 commits from task/pep-176 into main 2026-11-16 18:00:30 +00:00
peppa-bot commented 2026-11-16 15:58:44 +00:00 (Migrated from git.telecom.quest)

PM 16.11: manual subscription switch for the superadmin.

  • «Подписки» → each pool card: a subscription with agents on it has «Перевести агентов» with a choice — a working subscription of the same pool, or «на любую свободную» (the least busy working one of its pools; another provider if none of its own).
  • switchAgents (runner/rotation.ts) relaunches each agent through rotateSession with reason manual: Claude continues the same conversation, ChatGPT starts afresh from the task; event subscription_switched, the owners get the usual «перешёл на другую подписку (переключил администратор)».
  • Superadmin only (the page and the action). Notice with how many moved and how many had nowhere to go.
  • Test in rotation.test.ts; checked on a database copy in the browser (the pool «Claude — asel» offers «Claude 2 — asel»).

🤖 Generated with Claude Code

PM 16.11: manual subscription switch for the superadmin. - «Подписки» → each pool card: a subscription with agents on it has «Перевести агентов» with a choice — a working subscription of the same pool, or «на любую свободную» (the least busy working one of its pools; another provider if none of its own). - `switchAgents` (runner/rotation.ts) relaunches each agent through `rotateSession` with reason `manual`: Claude continues the same conversation, ChatGPT starts afresh from the task; event `subscription_switched`, the owners get the usual «перешёл на другую подписку (переключил администратор)». - Superadmin only (the page and the action). Notice with how many moved and how many had nowhere to go. - Test in `rotation.test.ts`; checked on a database copy in the browser (the pool «Claude — asel» offers «Claude 2 — asel»). 🤖 Generated with [Claude Code](https://claude.com/claude-code)
Sign in to join this conversation.
No reviewers
No Label
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: peppa-bot/peppa#167
No description provided.