Skip to content

Releases: ET06731/opencode-im-bridge

v0.39.0 - File Auto-Send & QQ C2C Fix

23 Mar 12:29

Choose a tag to compare

Features

  • File Auto-Send: Agent saves files to attachments directory, system automatically detects and sends to user via snapshot mechanism. Supports images, audio, video, and documents (PDF/Word/Excel/PPT/ZIP).
  • QQ C2C File Sending Fixed: Resolved 850026 error by using uploadMedia with sendMessage: true for images, and two-step upload+send for audio/video/documents.
  • Discord Button Support: Added button interaction handling for Discord, enabling interactive cards.

Bug Fixes

  • Response Sending Logic: Fixed skipMessage logic to use !!card instead of !!card || !!streamSession - ensures QQ/Discord properly receive final responses
  • Telegram Streaming: Disabled as multiple sends with preview cause message chaos

Improvements

  • Unified platform file save prompts across all channels
  • QQ documents include original filename hint (QQ platform strips filenames)

Full Changelog

File Sending

  • src/channel/qq/qq-plugin.ts: Complete rewrite of sendImage/sendFile/sendAudio/sendVideo
  • src/channel/telegram/telegram-plugin.ts: Added sendFile, disabled streaming
  • src/channel/discord/discord-plugin.ts: Added button interactions, sendImage, sendFile
  • src/handler/outbound-media.ts: Simplified snapshot mechanism, improved logging
  • src/handler/streaming-integration.ts: Fixed skipMessage logic, moved sendDetectedFiles call
  • src/handler/message-handler.ts: Unified platform context signature

Other Changes

  • src/handler/command-handler.ts: Added Discord session/agent/model cards
  • src/index.ts: Fixed outboundMedia parameter passing
  • docs/CHANGELOG.md: Updated with v0.39.0 changes
  • README.md: Added file auto-send feature description

v0.36.2: Reliability Features (Cron & Heartbeat)

20 Mar 10:51

Choose a tag to compare

🛠 改进与修复

  1. AppConfig
  • 现在原生支持 RELIABILITY_CRON_... 和 RELIABILITY_HEARTBEAT_... 系列环境变量,支持全环境快速部署。
  1. 依赖优化
  • 新增 cron 与 @types/cron 依赖,并统一了项目在 Windows 下的测试运行路径。
  1. 修复QQ长连接重连
  • QQ WebSocket 的 INVALID_SESSION 热修复(强制 IDENTIFY)

  • QQ WebSocket 重连参数默认值(避免 NaN backoff)

  1. 新增 Agent 按钮
  • Feishu 帮助卡新增 Agent 按钮”, “Telegram 命令注册新增 agent
  • /agent 指令(查询与切换) + 发送消息携带 agent
  • per-chat agent 映射写入与路由