Skip to content

Releases: itokun99/omotg

v0.6.0 — Session persistence & agent completion fixes

Choose a tag to compare

@itokun99 itokun99 released this 23 Jun 23:18

[v0.6.0] — 2026-06-24

Added

  • Session persistence across restartsSessionMap now persists
    chatCurrent and topicBind mappings to ~/.config/omotg/sessions_<bot>.json.
    Chat and topic session bindings survive server restarts, so conversations
    continue with the same OpenCode session (and its full history) instead of
    creating a new blank session.
  • Dynamic child timeout — child agent timeout timer resets on every SSE
    event, so long-running sub-agents are only interrupted when truly idle (60s),
    not when they are actively producing output.
  • Completion reason logging — every exit path from processMessage logs
    a structured reason field (completed, session_timeout, child_timeout,
    send_message_error, sse_unavailable) for observability.

Fixed

  • Agent completion reports missing — 5 root causes fixed where agent output
    never reached Telegram: SSE stream death + slow POST response now retries and
    notifies user; successful responses append completion marker; child and session
    timeouts send explicit Telegram messages instead of silently returning;
    handleMsgResult now correctly sets *mainTextSent.
  • MCP endpoint URLopencode.json URL corrected from /mcp (404) to
    /mcp/sse (200), enabling agents to call send_telegram_message and
    send_telegram_notification tools.
  • Rate limitingsendTelegram enforces 500ms minimum gap between sends
    to avoid Telegram "Too Many Requests" errors from burst tool notifications.

v0.5.0 — Multi-Bot Multi-Agent

Choose a tag to compare

@itokun99 itokun99 released this 22 Jun 17:09

v0.5.0 — Multi-Bot Multi-Agent

Added

  • Multi-bot multi-agent — one binary runs N Telegram bots, each routing to a specific OMO agent
  • SendMessageWithAgent()agent field injection in OpenCode message API
  • BotAgentConfig — structured config for auxiliary bot-agent pairs
  • N-bot startup loop with per-bot SessionMap/TopicClient
  • OMO_PROMETHEUS_BOT_TOKEN, OMO_ATLAS_BOT_TOKEN, OMO_HEPHAESTUS_BOT_TOKEN env vars
  • Per-bot webhook paths: /webhook (primary), /webhook/<key> (auxiliaries)

Fixed

  • Event loop 30s hang on sub-agent SSE death (3 Oracle-reviewed fixes)

Changed

  • Module path: omotggithub.com/itokun99/omotg (enables go install)

v0.3.0

Choose a tag to compare

@itokun99 itokun99 released this 21 Jun 11:07

v0.3.0

Changes

  • Prompt format: Metadata block now follows OpenCode environment format (plain header, leading-space key-value pairs — no brackets/markdown)
  • Ack messages: ⏳ Lanjut session only shown for new sessions/deploy, not every chat
  • Typing indicator: Telegram sendChatAction(typing) while agent processes
  • No noise: Removed ✅ Selesai! from all code paths
  • Verbose SSE tools: Tool events now show arguments — 📂 glob: **/*.ts instead of ⚙️ glob...
  • formatVerboseTool(): Extracts common tool input fields for display

Fixes

  • ctx/cancel undefined in HandleWebhook scope
  • SSE type:"text" events no longer forwarded (was echoing user input)