Repository navigation
[PR] feat: persistent feedback entry in web UI — one-click generation of pre-filled diagnostic GitHub issue (#3299) | [PR] feat: web UI 常驻反馈入口——一键生成预填诊断的 GitHub issue (#3299) - #3310
Conversation
📦 Built Package ArtifactBranch: Option A — Install this exact build (recommended)npm install -g billion-context@0.0.3872-pr.3310.dfb40d2This exact version is immutable and reproducible. The rolling Option B — Download artifact
tar xzf billion-context-pr3310.tgz
npm install -g packageInstall instructions are refreshed on each push. |
(ai: vllm-qwen/qwen3.8-27b) 查重结论:不重复。 本 PR 实现 #3299(web UI 常驻反馈入口)。已检索 open+closed issue/PR:无与「常驻反馈渠道」重叠的工作;相关项 #3040/#3057/#3235 是本 PR 所补全的底层设施(diagnostics 端点/横幅),不是并行修复;已关闭的 PR #3291 是冲突横幅专用的一次性报告入口,范围不同(横幅伴随 vs 常驻渠道),不构成重复。 开始对 PR #3310 做独立代码核验(全部 diff 已通读)+ 定向测试 + CI 跟踪,完成后按八问给完整审查结论。 |
(ai: vllm-qwen/qwen3.8-27b) PR #3310 审查结论(独立核验)方向关:#3299 要的是「web 上向用户开放的反馈渠道」。本 PR 修的是根因——#3040 的 diagnostics 设施按「横幅伴随物」设计(只有两个横幅专用 topic、只在横幅出现时可达),缺通用 topic 与常驻入口。方案是同一设施的覆盖面扩展而非另起炉灶,方向正确。 回归审查(逐项既有行为清点):
测试有效性: 代码质量:命名达意、无死代码、错误路径带上下文 toast、魔法数已具名( diff 整洁度:9 文件 +373/-16,每行都与反馈渠道目的相关;README en+zh 对称;无跑题改动 ✅ 结构化八问
行为变更披露(旧→新):纯增量——顶栏多一个按钮、会话详情多一个按钮、 验证证据:全量 diff 通读;本地 typecheck 干净;定向套件 45/45(web-report-channel + web-storage-banner + web-conflict-banner + web-i18n);修复 commit 后重跑 report-channel + typecheck 干净。CI:新 head 判定:可合(待 CI 绿;feat 类本就人工合并)。 |
Complete the #3040 diagnostics facility into an always-reachable report path for users who hit problems that never raise a warning banner: - diagnostics: new topic=general (env facts + sessions-on-disk count + last 15 [error] log lines), ?desc= carries the user's own description into blob and prefilled issues/new URL body, ?errors=0 opts out of the log tail - page/styles: topbar '反馈/Report' button + modal (description textarea, include-errors checkbox default on with public-visibility note, copy diagnostics / open prefilled GitHub issue / cancel, Esc/backdrop close) - client: modal wired to /__bili/diagnostics?topic=general (fresh fetch per action, no cache); session-detail export row gains 'report this session' with a compact localized fingerprint prefill - i18n: symmetric zh/en keys (nav.report, rpt.*, det.report_issue_session), parity covered by web-i18n.test - tests: tests/web-report-channel.test.ts pins endpoint params, error-tail filtering, url round-trip, modal skeleton, client wiring - docs: README en+zh FAQ mention of the feedback entry No new config keys/env vars/CLI flags; no wire or request-pipeline changes.
…ching (#3299) busy() sets .disabled which has no effect on <a> elements; a double-click during the diagnostics fetch could open two prefilled issue tabs. Guard on the busy class instead.
…ate) CI text-safe family gate flagged String(d.id).slice(-12) in the new session prefill (raw negative slice on a string). Inline the shared clamp into the self-contained WEB_CLIENT IIFE via function-source interpolation (the IIFE has no module access), so the tail can never cut a surrogate pair. Verified: text-safe gate green, targeted web suites 63/63, typecheck clean, built dist WEB_CLIENT evaluates to valid JS with the clamp embedded.
57cd3b1 to
a63e0cd
Compare
(ai: vllm-qwen/qwen3.8-27b) CI 后续:修掉本 PR 引入的 1 个真缺陷;其余红确认与本 PR 无关(已立 #3315) CI 发现(上一轮 head d32e9f2,两条 lane 共 7 个失败)1. text-safe family gate——本 PR 引入的真缺陷,已修。 2. 其余 6 个失败与本 PR 无关(master 上预先存在):
三项按同一问题清单化管理,已立 #3315(带来源标记与查重声明),不塞进本 PR。 当前状态
修订判定前一轮审查结论对本 PR 自身 diff 仍然成立,family-gate 缺陷已修复并验证。建议:等本轮 CI 回来,若剩余红恰好就是 #3315 那 6 个既有失败,即可合并——golden 漂移让 master 12 条 test lane 中 8 条变红,属 master 侧问题,由 #3315 单独跟进,不应阻塞本 PR。 |
(ai: vllm-qwen/qwen3.8-27b) 进度汇报(会话曾卡住被重启,补报当前状态): 已完成:
进行中:等待本轮 CI 结果——刚才的长轮询把会话拖挂了,改为短轮询继续盯。若剩余红恰好就是 #3315 那 6 个既有失败,判定维持:本 PR 可合。 |
(ai: vllm-qwen/qwen3.8-27b) CI 终局判定(head a63e0cd,已 rebase 到当前 master 6ee4a2a):36/41 绿,5 条失败全部是 #3315 的既有问题——本 PR 可合 本轮 CI 分解
关键点:
结构化八问(最终版)
合并判定:本 PR 代码干净,自引入缺陷已修复并验证,剩余红全部为 master 侧既有问题(#3315,其中 golden 漂移让 master 8/12 test lane 变红,建议优先处理那个)。 我无权合并(human-only),请 @ranxianglei 合并:#3310 |
|
(ai: zhipuai-lb/glm-5.3) 陈旧票清理(第三批动作①):目标 issue #3299 已关。为避免重复劳动关闭本 PR;如判断有误请直接 reopen 并留言。 |
(ai: vllm-qwen/qwen3.8-27b)
Closes #3299
背景
#3040 的 diagnostics 设施只服务两条告警横幅(存储降级、会话冲突)。用户遇到的大多数问题从不触发横幅——没有可用的报告路径,只能找人沟通。本 PR 把该设施补全为常驻反馈渠道。
改动
topic=general(src/web/diagnostics.ts):环境事实 + 磁盘会话数 + 最近 15 行[error]日志;?desc=把用户自己的问题描述带进 blob 和issues/new?body=URL(body 可精确解码回 blob);?errors=0可关闭日志尾巴(诚实输出「无近期错误」)。/__bili/diagnostics?topic=general(不缓存——desc 是实时输入);会话详情导出行新增「报告此会话」,用紧凑本地化指纹(会话尾号/协议/upstream host/请求数/缓存命中率)预填,不放完整 MD(超出 issues/new URL 容量)。nav.report、rpt.*、det.report_issue_session,web-i18n.test 自动校验键对称与占位符一致。tests/web-report-channel.test.ts钉住端点参数、错误行过滤(info/warn 排除)、URL round-trip、弹窗骨架、客户端接线。Config surface
未新增任何配置键 / env / CLI flag。仅新增
/__bili/diagnostics的两个查询参数(desc、errors)和页面静态元素——该端点本就是 loopback-only 的诊断面(#3040),参数语义在端点 docstring 中记录。Behavior changes(旧→新)
纯增量:既有横幅行为、端点对既有 topic 的响应、wire、请求管线均未变。唯一可感知变化:顶栏多一个按钮、会话详情多一个按钮、
topic=general成为新 topic(此前返回 base blob,现在返回完整 section——未知 topic 的降级行为不变,已有测试钉住)。结构化八问
隐私边界:错误日志尾默认附带(最有诊断价值),复选框可关;弹窗明示内容将公开可见、可能含本地路径;logger 已对密钥值脱敏;对话内容永不进入 blob。
本地:typecheck 干净 + 定向测试 16/16(新测试 + storage-banner + i18n parity),rebase 到当前 master(bce26b6)后验证;全量回归以 CI 为准。