mirror of
https://gitee.com/mateos/mateclaw.git
synced 2026-09-13 03:13:41 +08:00
Group-chat reply slot fallback: - The platform blocks proactive sends in group chats; outbound paths (cron summaries, async-task completions, generated image/music/3D delivery, TTS audio) silently failed because they fell through to the proactive-send command. New bounded LRU maps each group chat to its most recent inbound frame id; the dispatcher prefers that reply slot and falls through to proactive only for single chats. - Centralised text and media dispatch through a single helper so the group rule never has to be re-implemented per outbound path. Upload size pre-check + auto-downgrade: - Without client-side limits, oversized uploads streamed for ~1 minute before the server rejected at the finish step — users saw nothing arrive in their chat. The new decision layer mirrors the platform's hard limits and produces three outcomes: rejected with a friendly reason, downgraded to a generic file delivery with an inline note, or pass-through unchanged. - Files over 20MB reject. Images / videos over their 10MB limit downgrade to file. Voice content that isn't AMR or exceeds 2MB downgrades. AMR voice within 2MB stays native. appmsg inbound parsing: - Forwarded complex messages (document transfers, article links, miniprogram cards) used to fall into the inbound switch's default branch and silently drop. The new branch flattens four sub-types into a text marker the agent reads plus any media that needs to reach downstream tools — document forwards reuse the same magic- byte sniff and per-conversation upload layout as native file inbound, so extension recovery and chat-uploads serving work identically. - Article links produce "[链接] title\ndescription\nurl" so the agent can summarize without round-tripping. Miniprograms surface their title. Unknown sub-types still emit a generic marker so the agent is never blind. |
||
|---|---|---|
| .. | ||
| src | ||
| Dockerfile | ||
| pom.xml | ||
| settings.xml | ||