Releases: ET06731/opencode-im-bridge
Releases · ET06731/opencode-im-bridge
v0.39.0 - File Auto-Send & QQ C2C Fix
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
uploadMediawithsendMessage: truefor 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
skipMessagelogic to use!!cardinstead 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/sendVideosrc/channel/telegram/telegram-plugin.ts: Added sendFile, disabled streamingsrc/channel/discord/discord-plugin.ts: Added button interactions, sendImage, sendFilesrc/handler/outbound-media.ts: Simplified snapshot mechanism, improved loggingsrc/handler/streaming-integration.ts: Fixed skipMessage logic, moved sendDetectedFiles callsrc/handler/message-handler.ts: Unified platform context signature
Other Changes
src/handler/command-handler.ts: Added Discord session/agent/model cardssrc/index.ts: Fixed outboundMedia parameter passingdocs/CHANGELOG.md: Updated with v0.39.0 changesREADME.md: Added file auto-send feature description
v0.36.2: Reliability Features (Cron & Heartbeat)
🛠 改进与修复
- AppConfig
- 现在原生支持 RELIABILITY_CRON_... 和 RELIABILITY_HEARTBEAT_... 系列环境变量,支持全环境快速部署。
- 依赖优化
- 新增 cron 与 @types/cron 依赖,并统一了项目在 Windows 下的测试运行路径。
- 修复QQ长连接重连
-
QQ WebSocket 的 INVALID_SESSION 热修复(强制 IDENTIFY)
-
QQ WebSocket 重连参数默认值(避免 NaN backoff)
- 新增 Agent 按钮
- Feishu 帮助卡新增 Agent 按钮”, “Telegram 命令注册新增 agent
- /agent 指令(查询与切换) + 发送消息携带 agent
- per-chat agent 映射写入与路由