github grinev/opencode-telegram-bot v0.26.0

3 hours ago

Major Feature: OpenCode V2 Support

The bot now works with the new OpenCode V2 as well as the classic OpenCode V1. Existing installs keep running on V1 with no changes, and switching is a single setting - see Old and New OpenCode Versions in the README.

  • Pick your version — OPENCODE_SERVER_VERSION=v2 points the bot at a V2 server, and the setup wizard now asks for V1 or V2 (V2 by default on a first setup) together with the server password V2 requires.
  • Everything works on V2 — prompts, streamed replies, sessions, projects, worktrees, models and agents, scheduled tasks, questions, permissions, files, voice and /status behave the same way as on V1.
  • One server for every client — /opencode_start, /opencode_stop and auto-restart manage the V2 background service, so the OpenCode TUI, desktop and web apps share it with the bot and a session picked in /sessions stays in sync across all of them.
  • Steer messages into a running task — on V2 a message sent while the agent is busy goes straight to OpenCode and the running task picks it up at its next step, while the "Message queue" row in /settings can switch it to Queue (run after the task) or Off, and its bottom-keyboard button withdraws it until it is picked up.
  • Clear mismatch diagnostics — when the server at the configured address runs the other OpenCode version or rejects the password, the bot refuses to use or start it and says why in the log.

Changes

  • Recent sessions across projects — /recent lists the latest sessions from every project and worktree with their running, idle, question or permission status, and picking one switches straight to its project and session.
  • Context details before compaction — the bottom 📊 button now opens context usage with the latest reply's token breakdown and cost, with compaction one tap away in the same message.
  • Last reply in full on session pick — picking a session in /sessions now shows your last message as a quote and the agent's last reply in full, formatted as it looked live.
  • Indonesian localization — the bot interface is now available in Indonesian. (@vheins)

Fixes

  • Running tools appear at once in full mode — a long-running command now shows up in the chat as soon as it starts instead of 20 seconds later.
  • Compact progress follows the conversation — work after an intermediate reply now opens a new progress card below that reply instead of updating the card above it.
  • Run footer after every reply — the footer with agent, model and duration no longer goes missing after some replies, such as the first short one after /new.
  • Drafted text stays above prompts — in draft streaming, text the agent wrote before a question or permission request is now kept as a message above the prompt instead of vanishing until it is answered.
  • Questions and permissions one at a time — when the agent asks a question and requests a permission together, the second prompt now waits until the first one is answered.
  • Multi-select keeps ticked options — a custom answer in a multi-select question is now added to the ticked options instead of replacing them.
  • Photos and documents through a SOCKS proxy — file downloads now go through a SOCKS TELEGRAM_PROXY_URL instead of failing with "Failed to download photo".
  • Fewer failed file downloads — a transient network error while downloading a Telegram file is now retried instead of failing the message. (@hcsum)

Full changelog: v0.25.3...v0.26.0

Don't miss a new opencode-telegram-bot release

NewReleases is sending notifications on new releases.