fix(channels): drop compaction notices on channels without an in-place affordance (#5799)
* fix(channels): drop compaction notices on channels without an in-place affordance QQ's C2C/group message API has no edit or recall endpoint, so the compaction lifecycle reached the chat as two permanent standalone messages. Add a show_compaction_notices capability that defaults to true (Telegram/Discord/WebSocket keep their in-place lifecycle) and opt QQ out, with a per-channel showCompactionNotices config override. Fixes #5784 * fix(qq): keep compaction-notice suppression inside the QQ channel Per review on #5799: drop ContextCompactionEvent in QQChannel.send() based on a QQ-local QQConfig.show_compaction_notices (default false, camel alias showCompactionNotices) instead of a cross-channel BaseChannel capability plus manager-level configuration and dispatch policy. BaseChannel, ChannelManager and the manager compaction test return to their upstream shape. Also adds the missing zh-TW locale copy (plus es/id/ko/vi so all ten QQ locales carry the new setup field) and QQ-level tests covering the default drop, the enabled path, ordinary-message passthrough, and the camelCase config override.
This commit is contained in:
1 parent
a0a99f24da
commit
24c41a6af0
14 files changed
+173
No files matched your search
@@ -1654,6 +1654,18 @@ Normal tool workspace and media access rules still apply to attachment paths.
|
||||
}
|
||||
```
|
||||
|
||||
QQ `showCompactionNotices` defaults to `false`. It controls the context-compaction lifecycle notices ("Compressing context…" / "Context compacted."). Telegram, Discord and WebSocket present that lifecycle as one in-place-updated message or status, but QQ's C2C/group message API has no edit or recall endpoint, so each phase would land as a separate permanent message; the QQ channel therefore drops the notices by default (#5784). Set `channels.qq.showCompactionNotices: true` to post them anyway:
|
||||
|
||||
```json
|
||||
{
|
||||
"channels": {
|
||||
"qq": {
|
||||
"showCompactionNotices": true
|
||||
}
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
Telegram `richMessages` defaults to `false`. Enable it only to opt in to Bot API 10.1 `sendRichMessage` rendering; leave it disabled for Telegram Web clients that show unsupported-message errors for rich messages.
|
||||
|
||||
### Retry Behavior
|
||||
|
||||
Reference in new issue
Block a user