You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
The replacement position needs to be implemented in a new form: whether compress-fold performs in-place replacement (com | 置换位置的是需要以新形态落地: 压缩折叠是否原位置替换(compressAtFoldPoint,默认关)——把折叠产生的 compress 调用对放到它自己的折叠点处替换,而不是留在历史尾部 #5697
changed the title [-]置换位置的是需要以新形态落地: 压缩折叠是否原位置替换(compressAtFoldPoint,默认关)——把折叠产生的 compress 调用对放到它自己的折叠点处替换,而不是留在历史尾部[/-][+]The replacement position needs to be implemented in a new form: whether compress-fold performs in-place replacement (com | 置换位置的是需要以新形态落地: 压缩折叠是否原位置替换(compressAtFoldPoint,默认关)——把折叠产生的 compress 调用对放到它自己的折叠点处替换,而不是留在历史尾部[/+]on Nov 5, 2026
Activity
[-]置换位置的是需要以新形态落地: 压缩折叠是否原位置替换(compressAtFoldPoint,默认关)——把折叠产生的 compress 调用对放到它自己的折叠点处替换,而不是留在历史尾部[/-][+]The replacement position needs to be implemented in a new form: whether compress-fold performs in-place replacement (com | 置换位置的是需要以新形态落地: 压缩折叠是否原位置替换(compressAtFoldPoint,默认关)——把折叠产生的 compress 调用对放到它自己的折叠点处替换,而不是留在历史尾部[/+]ranxianglei commentedon Nov 5, 2026
🔶 需要决策
(ai: vllm-qwen/qwen3.8-27b)
查重:不重复。相关线程与本单关系:
compress.compressAtFoldPoint实验开关、默认关、把调用对视图化挪到折叠点;compress.requireNudge/requireRecommendation)——执行期闸门,与本单的渲染侧去模仿是不同机制、互补。本单是 owner 明确要求「置换位置以新形态落地」(置换时改名 + 保护 + T2/T3 兼容),独立工作项。
背景一句话:挪位已经存在且生效,但挪位后调用对仍叫
compress,qwen27b 这类弱注意力模型看到历史里成排的 compress 调用会不由自主模仿 → 完全无法控制的重复过度压缩。已核实的机制(全部对 master 代码验证过):
relocateCompressCarriers(kernel/src/relocate-compress.ts)把 active 块的调用/结果对挪到 [已折叠区]–[调用对]–[保护消息],纯视图变换(refs/state 不动、每轮确定性重算、第二轮起字节稳定);应用在 src/plugin-render.ts:147 与 src/server/relay.ts:2209 两处;只影响插件车道(代理模式没有持久调用对)。结构化八问:
fold(不注册、不可调用,模仿即自然失败)+ 把载体对排除出后续折叠范围 + T2/T3 按 block.active 判定兼容。compress.compressAtFoldPointAsFoldboolean 默认 false(+ env BILI_COMPRESS_AT_FOLD_POINT_AS_FOLD),web 配置页透出为实验项,CONFIGURATION.md 中英同步。待决问题(选项对比,各带代价):
fold且不注册进工具 schema(模型在历史里看到 fold(...) 但工具列表里没有;模仿发出即被宿主当未知工具拒绝,天然劝退;代价:模仿轮产生一条错误结果)/ B) 注册 fold 为 no-op 工具返回礼貌拒绝(交互更顺;但把 fold 放进 schema 本身招揽调用,与去模仿目的相悖,还增 schema token)kernel-change:声明 + 你批准 + kernel 版本 bump)/ B) 纯宿主侧 diff 前后数组找挪动对再改名(避开内核门禁;但两处应用点逻辑分散、脆弱)推荐组合:Q1=A、Q2=A、Q3=A、Q4=A、Q5=A。不决定的默认行为:功能类事项等你拍板才动工;回复「go」即按上述推荐组合实现,kernel 部分在 PR 中声明
kernel-change:并等你批准。标签:p2(整体可用、特定模型有明显问题、有绕行 = 关 cafP 或开 #5685 的 requireNudge 闸门)、scope/kernel(改名触碰 kernel relocate 与折叠资格面)。