/model command blocked by other topics in same group chat
Summary
In a Telegram supergroup with forum topics, the /model command is blocked with "Agent is working" if any topic has an active CLI process, even though topics are independent sessions.
Steps to reproduce
- Open Topic A (e.g. "Server") and send a message — CLI starts processing
- Open Topic B (e.g. "Media") and send
/model - Expected: Model selector buttons appear (Topic B has no active process)
- Actual: "Agent is working. Use /stop to terminate first, then switch models."
Root cause
In messenger/telegram/app.py line ~798:
if self._sequential.is_busy(chat_id) or self._orch.is_chat_busy(chat_id):
The busy check uses chat_id (group ID), which is the same for all topics. It should also consider thread_id to allow independent /model per topic.
Environment
- Ductor v0.14.0
- Telegram supergroup with forum topics enabled
- Multiple topics with independent sessions
Workaround
Switch model when no other topic is processing, or use /stop first.
Fixed in v0.15.0. I reworked the /model command to never block — the selector opens instantly even during active processes. ProcessRegistry now tracks topic_id, so busy checks are per-topic. The switch happens immediately with an info note if a process is still running.