diff --git a/bot.py b/bot.py index 1aa3ca0..60eeeca 100644 --- a/bot.py +++ b/bot.py @@ -781,16 +781,15 @@ class MenuBuilder: # Для главного меню — динамически меняем кнопку ИИ if menu_name == "main" and user_id: state = state_manager.get(user_id) - ai_status = "✅" if state.ai_chat_mode else "❌" for item in items: if item.callback == "toggle_ai_chat": # Меняем текст кнопки и callback_data в зависимости от статуса if state.ai_chat_mode: - label = f"{ai_status} Выключить чат с ИИ" + label = f"✅ Выключить чат с ИИ" callback = "toggle_ai_chat_off" else: - label = f"{ai_status} Включить чат с ИИ" + label = f"❌ Включить чат с ИИ" callback = "toggle_ai_chat_on" button = InlineKeyboardButton(label, callback_data=callback) else: diff --git a/qwen_integration.py b/qwen_integration.py index 4b4e22f..dd7b156 100644 --- a/qwen_integration.py +++ b/qwen_integration.py @@ -203,6 +203,7 @@ class QwenCodeManager: self._qwen_command, "-p", task, # Передаём задачу через флаг -p "--output-format", "text", # Простой текстовый вывод + "--yolo", # Автоматическое подтверждение всех действий ] logger.info(f"Выполнение задачи: {' '.join(cmd)}")