opencode-telegram-bot icon indicating copy to clipboard operation
opencode-telegram-bot copied to clipboard

[Bug]: [ERROR] [Bot] Dropped the assistant response for session

Open pro777s opened this issue 2 months ago • 4 comments

What is broken?

Привет! Постоянно вылезает эта ошибка: [ERROR] [Bot] Dropped the assistant response for session. После чего обмен сообщениями прекращается. Приходится каждый раз перезапускать приложение. Можно ли что-то сделать в этом случае?

Steps to reproduce

  1. Запустить приложение
  2. Появление бага через примерно 5-20 минут.

OS

Ошибка проявляется на Windows-версии приложения (Windows 11).

Additional context (optional)

No response

pro777s avatar Sep 16 '26 19:09 pro777s

Could you provide some logs?

grinev avatar Sep 16 '26 22:09 grinev

[2026-09-16T20:19:51.467Z] [ERROR] Failed to send message to Telegram: HttpError: Network request for 'sendRichMessage' failed! at toHttpError (%USER_FOLDER%\node_modules\grammy\out\core\error.js:82:12) at ApiClient.call (%USER_FOLDER%\node_modules\grammy\out\core\client.js:58:50) at process.processTicksAndRejections (node:internal/process/task_queues:104:5) at async withTelegramRateLimitRetry.maxRetries (%USER_FOLDER%/node_modules/@grinev/opencode-telegram-bot/dist/bot/index.js:110:34) at async withTelegramRateLimitRetry (%USER_FOLDER%/node_modules/@grinev/opencode-telegram-bot/dist/utils/telegram-rate-limit-retry.js:118:20) at async file:///%USER_FOLDER%/node_modules/@grinev/opencode-telegram-bot/dist/bot/index.js:109:20 at async ApiClient.callApi (%USER_FOLDER%\node_modules\grammy\out\core\client.js:97:22) at async sendRenderedBotPart (%USER_FOLDER%/node_modules/@grinev/opencode-telegram-bot/dist/bot/messages/telegram-text.js:66:29) at async sendRenderedPart (%USER_FOLDER%/node_modules/@grinev/opencode-telegram-bot/dist/bot/services/event-subscription-service.js:472:29) at async finalizeAssistantResponse (%USER_FOLDER%/node_modules/@grinev/opencode-telegram-bot/dist/bot/streaming/finalize-assistant-response.js:31:9) [2026-09-16T20:19:51.468Z] [ERROR] [Bot] Dropped the assistant response for session ses_*** ... [2026-09-16T20:34:27.496Z] [INFO] Starting OpenCode Telegram Bot v0.25.2... [2026-09-16T20:34:27.497Z] [INFO] Node.js v24.16.0 on win32 x64

pro777s avatar Sep 17 '26 16:09 pro777s

@pro777s I've made a fix: https://github.com/grinev/opencode-telegram-bot/releases/tag/v0.25.3 can you please verify that now works correctly. The main reason of this problem is network issues with vpn/proxy, but bot shouldn't became silent after errors, now it should continue working when telegram api became available

grinev avatar Sep 19 '26 12:09 grinev

Спасибо! Похоже, ошибка исправлена. Бот работает без затыка на протяжении полутора часов.

pro777s avatar Sep 19 '26 15:09 pro777s