* 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.
47 lines
1.0 KiB
JSON
47 lines
1.0 KiB
JSON
{
|
|
"setup": {
|
|
"docsLabel": "Buka panduan QQ",
|
|
"officialLabel": "Buka konsol bot QQ",
|
|
"fields": {
|
|
"appId": {
|
|
"label": "App ID",
|
|
"placeholder": "App ID bot QQ"
|
|
},
|
|
"secret": {
|
|
"label": "Secret",
|
|
"placeholder": "••••••"
|
|
},
|
|
"allowFrom": {
|
|
"label": "Pengguna yang diizinkan",
|
|
"placeholder": "Open ID, dipisahkan koma"
|
|
},
|
|
"msgFormat": {
|
|
"label": "Format pesan",
|
|
"choices": {
|
|
"plain": "Teks biasa",
|
|
"markdown": "Markdown"
|
|
}
|
|
},
|
|
"ackMessage": {
|
|
"label": "Pesan pengakuan"
|
|
},
|
|
"mediaDir": {
|
|
"label": "Direktori media"
|
|
},
|
|
"downloadChunkSize": {
|
|
"label": "Unduh ukuran potongan"
|
|
},
|
|
"downloadMaxBytes": {
|
|
"label": "Ukuran unduhan maksimum"
|
|
},
|
|
"showCompactionNotices": {
|
|
"label": "Notifikasi pemadatan konteks",
|
|
"choices": {
|
|
"true": "Aktif",
|
|
"false": "Nonaktif"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|