Repository navigation
[PR] feat(web): compression-structure tab with tier tree, graph view and l… - #3924
ranxianglei merged 4 commits into
Conversation
…azy leaves Session detail gains a Structure sub-tab next to Overview/Handoff. It reads the kernel's own accounting: blocks nest by parentBlockId (who folded whom), each node shows tier, compressed->summary tokens with ratio, summary bytes, the mNNNNN span, message counts and age, plus the summary markdown and one leaf per folded message. Two readings of the same data switch in place: the list (inspect concrete messages) and a layered tree map (overall shape, click a node to jump back to its row). Originals load on demand through two admin-gated endpoints (/block-content and /message, 2 MiB cap with honest truncation, unknown / pruned / no-snapshot answers instead of guesses).
|
ework接单 |
(ai: vllm-qwen/qwen3.8-27b) 查重:不重复。 检索 open+closed 的 issue/PR(compression / structure / tree,含已关闭),仅本 PR 匹配这个 web 层级树视图;命中的 #1790/#571/#558/#1527/#1649 均无关。代码注释里引用的 #3917 是真实的 open 功能 issue(“session detail 压缩结构 tab”),本 PR 就是它的实现。 标签: 结构化八问1. 是什么问题:功能请求(#3917),不是缺陷——给 web 面板会话详情页加一个「压缩结构」tab,把压缩块的层级树、SVG 图视图、以及懒加载的块正文和被折叠消息原文可视化出来。 2. 什么原因导致的:不适用(新功能)。原详情页只有块列表平铺,看不出折叠层级关系和整体结构,本 PR 补齐这一观测面。 3. 影响范围与严重程度:只影响 web 监控面板的展示层,不碰请求管道 / 压缩引擎 / wire。对现有用户零破坏,纯增量 UI。按最低档 4. 怎么修复的(实现思路):服务端在 5. 是否有回归问题:审过的既有行为——
除此之外没有触碰任何既有行为:无 config / env / persistence / kernel / wire 变更。两个新端点是只读、admin-gate、loopback-only,与既有 6. 是否破坏缓存:不涉及压缩缓存 / 重试 / 增量游标 / 去重键。新增的 7. 是否改了设计方向:不改架构 / 边界 / 数据流。只是把 kernel 已经算好的折叠结构暴露到 web 展示层;读路径复用了现有的 unified-first 逻辑(抽成 8. 是否引入新配置:无新 env / config / 默认值。 质量判定(外部贡献者 PR)质量达标,无需重构。命名达意、注释讲 why(带 issue 引用)、zh/en 双 locale 配对、测试有牙:字节级精确截断上限、honest-miss-not-guess、legacy 缺字段不崩也不误嵌套、i18n 占位符对齐、 顺手修的一处小错(已在 PR 分支提交): CI 状态
收工判定建议可合(human merge):外部贡献者代码质量达标、无回归、测试有牙、安全姿势保持。它是 |
(ai: vllm-qwen/qwen3.8-27b) 复查(同一 PR,无新增人类评论需处理):上一轮的结构化八问审核已在上一条给出,结论不变。这里只补一个最新状态快照。
判定不变:外部贡献者代码质量达标、无回归、测试有牙、安全姿势保持 → 建议可合(human merge),等这轮 CI 全绿即可人工合并( |
📦 Merged Build PublishedThis merge to master was published as npm install -g billion-context@0.0.693-master.f064d8e # this exact build
npm install -g billion-context@master # always the newest merged build
|
…azy leaves
Session detail gains a Structure sub-tab next to Overview/Handoff. It reads the kernel's own accounting: blocks nest by parentBlockId (who folded whom), each node shows tier, compressed->summary tokens with ratio, summary bytes, the mNNNNN span, message counts and age, plus the summary markdown and one leaf per folded message.
Two readings of the same data switch in place: the list (inspect concrete messages) and a layered tree map (overall shape, click a node to jump back to its row). Originals load on demand through two admin-gated endpoints (/block-content and /message, 2 MiB cap with honest truncation, unknown / pruned / no-snapshot answers instead of guesses).