Releases: itokun99/omotg
Releases · itokun99/omotg
Release list
v0.6.0 — Session persistence & agent completion fixes
[v0.6.0] — 2026-06-24
Added
- Session persistence across restarts —
SessionMapnow persists
chatCurrentandtopicBindmappings 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
processMessagelogs
a structuredreasonfield (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;
handleMsgResultnow correctly sets*mainTextSent. - MCP endpoint URL —
opencode.jsonURL corrected from/mcp(404) to
/mcp/sse(200), enabling agents to callsend_telegram_messageand
send_telegram_notificationtools. - Rate limiting —
sendTelegramenforces 500ms minimum gap between sends
to avoid Telegram "Too Many Requests" errors from burst tool notifications.
v0.5.0 — Multi-Bot Multi-Agent
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()—agentfield injection in OpenCode message APIBotAgentConfig— 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_TOKENenv 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:
omotg→github.com/itokun99/omotg(enablesgo install)
v0.3.0
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 sessiononly 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: **/*.tsinstead of⚙️ glob... - formatVerboseTool(): Extracts common tool input fields for display
Fixes
ctx/cancelundefined in HandleWebhook scope- SSE
type:"text"events no longer forwarded (was echoing user input)