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
nudge breakdown shows 52.4B thinking — formatK only outputs the K suffix; there is no B formatter. | nudge breakdown 出现 52.4B thinking——formatK 只输出 K 后缀,无 B 格式器 #6992
changed the title [-]nudge breakdown 出现 `52.4B thinking`——formatK 只输出 K 后缀,无 B 格式器[/-][+]`nudge breakdown` shows `52.4B thinking` — `formatK` only outputs the K suffix; there is no B formatter. | nudge breakdown 出现 `52.4B thinking`——formatK 只输出 K 后缀,无 B 格式器[/+]on Nov 17, 2026
Activity
[-]nudge breakdown 出现 `52.4B thinking`——formatK 只输出 K 后缀,无 B 格式器[/-][+]`nudge breakdown` shows `52.4B thinking` — `formatK` only outputs the K suffix; there is no B formatter. | nudge breakdown 出现 `52.4B thinking`——formatK 只输出 K 后缀,无 B 格式器[/+]ranxianglei commentedon Nov 17, 2026
(ai: vllm-qwen/qwen3.8-27b)
🔶 需要决策
背景一句话:
52.4B thinking的来源已定位——全仓没有任何代码路径能产生这个字符串(含全 git 历史);它是模型生成的文本,被持久化在 pi inline 会话历史里、随每次请求重发。查重:不重复。 按 "formatK" / "Context breakdown" / "52.4B" 检索 open+closed issue 与 PR:仅本 issue 命中;#6965 是来源线程(pi inline 摘要块丢失分析),#6990 是其修复 PR(Defect B,hide-consumed stub 作用域)——机制不同,不重叠。
标签:bug, pi, scope/kernel, p3, needs-decision(缺陷报告;观测于 pi inline 会话;受查面是 kernel nudge 文本;仅显示噪音故 p3;等你的裁决)。
审核结论:不是格式器 bug——issue 的前提被代码证伪
三个待查点逐一对照代码验证(master @ de895aa,以及 #6965 钉住的会话版本 v0.1.215——该版本此段代码与 master 逐字节相同):
1.
52.4B不是formatK的输出。formatK(kernel/src/nudge-text.ts:49-52)只有两种输出:n >= 1000→(n/1000).toFixed(1)+"K",否则裸数字。任何输入值都不会让它输出 B 后缀——即使传入 52.4e9,打印的也是52400.0K,不是52.4B。git log --all -S):nudge-text.ts 任何版本都没有过 B 格式器,types.ts 任何版本都没有过 thinking 字段。2.
thinking不是 breakdown 类别。ContextBreakdown(kernel/src/types.ts:740-748)只有 system/tool/summaries/code/text/total/growth;computeContextBreakdown(kernel/src/compress.ts:2573-2600)没有 thinking 分支。formatBreakdown(kernel/src/nudge-text.ts:54-65)是全仓 "Context breakdown:" 行的唯一生产者(grep 其余命中只有 tests/CHANGELOG),只输出上述 5 个固定类别;四条 wire prepare(prepare-openai/responses/google/anthropic.ts)统一走 kernelrenderNudgeText——单一路径,host 侧无 breakdown 覆盖口。3. 因此唯一来源是模型生成的文本。
52.4B thinking最合理的解释:模型看到真实的 breakdown 行(如524.0K ...),高压下在 summary/回复里写出损坏版——小数点漂移 + 类别误标(pi 会话上下文里全是 thinking,模型认得这个词)。52.4这个数值本身符合真实计数器的单小数输出形态(formatK 的524.0K或面板计数器的52.4M),只有后缀被损坏——是模型抄了真实数字、写错单位,不是格式器产出。八问
52.4B thinking,疑似格式器 bug(formatK 无 B 后缀)。待决问题与选项
补充:若你能从 dump 里贴出含
52.4B thinking的那行原文(或对应请求序号),我可以再做一轮精确定位(它在哪条消息、哪个 role)——但代码侧结论(bili 代码产不出这个字符串)不依赖它。按政策我不关闭 issue,等你的裁决。