Repository navigation
前端流畅性:减少重复渲染、工具组按需显示、Excel Worker 与脉络图缓存 - #234
Merged
greyoak111 merged 5 commits intoNov 18, 2026
Merged
Conversation
Keep unchanged poll DOM and hidden session lists intact, cache repeated file-list work, avoid redundant terminal theme updates, and stabilize model/queue geometry. Add isolated regressions without dependencies or vendor changes. Co-Authored-By: Claude Code <noreply@anthropic.com>
Preserve pending permissions, failure and image attention, nested-agent navigation, in-flight paging retries, cached results and identity-safe disposal. Keep child error attention visible after its parent is parked without changing top-level summary counts. Co-Authored-By: Claude Code <noreply@anthropic.com>
Transfer the input buffer, keep the workbook in the worker, and return bounded page and cell responses. Preserve size and ZIP budgets, workbook formatting, owner-safe cancellation and cleanup on close, replacement, layout switch and direct hiding. Retain upstream PDF tools; active-sheet selection remains separate. Co-Authored-By: Claude Code <noreply@anthropic.com>
Keep selection and picking on existing SVG/tree nodes, cache axis and lane geometry, and commit precise layout once after zoom gestures. Preserve independent complete snapshots, preview-home bounds, inverse-scaled pick marks and deterministic resource disposal. Co-Authored-By: Claude Code <noreply@anthropic.com>
Use Node CDP and synthetic loopback-only APIs to exercise production app, real same-origin workbook workers and lineage views. Cover paging, nested permissions and late failures, cancellation, cache reuse, gesture commits, snapshots and disposal without touching gateway configuration or sending model traffic. Co-Authored-By: Claude Code <noreply@anthropic.com>
PR 安全初筛 / Safety pre-check改动 34 个文件;高 3 项、中 14 项。
「高」不等于有问题,只是这些地方一旦被动手脚,后果最重(能拿到签名钥匙、改到用户手机上的权限、或藏进看不见的内容),合并前请逐行看过。 |
greyoak111
pushed a commit
that referenced
this pull request
Nov 18, 2026
单元测试(8 项):markdown 高亮预算改 innerHTML/.hl 断言;工具组分页 双向遍历 400/760 条;office 成功路径走通 load→分页→单元格详情并断言 ArrayBuffer 已 detach、transfer 真转移、onmessageerror 释放会话、vwTake 入口释放;组件 reindex/toggle 按钮点击验证失效与单次重绘;worker 循环 加超时与兜底 terminate;新增 chat-drop-cards 测试直接跑生产 dropCards。 Chromium 验收(scripts/test-frontend-perf.mjs + fixture): - 服务端 held 队列让「关闭取消下载」「迟到响应」成为真竞态,abort 由 服务器观察到才断言;agentReplies 等「响应真的发完」,全部固定 sleep 换成可观测信号的 until / 页面内 __waitFor - office 脚本 no-store + officeScripts 计数:Worker 三个脚本全部送达才 允许 terminate,消除脚本加载中被截断的 NetworkError 竞态 - 白名单 defaults 补全(含启动后台只读探测与 /api/ui),最终检查断言 无白名单外 /api 调用、无 /api/chat、无写请求 - 地图区 sleep 换 __waitFor;repeat 用例等 Worker postMessage(load) 再关 同批发现并修复:map.js drawNow 的 insertBefore 引用节点错误(首次打开 脉络图必崩,见上一提交);replay-flush-179 的 vm context 补 trackChatBlock/CHAT_BLOCKS 桩;验收的最终白名单检查改用 state.requests + isAllowed。 验证:node scripts/test.mjs 全量 1747 通过 0 失败;Chromium 验收 44 项 全过(含 100/1000 会话地图 22 项、Excel Worker 9 项)。 Co-Authored-By: Claude Code <noreply@anthropic.com>
This was referenced Nov 18, 2026
This branch was successfully deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
关联与提交状态
Refs #233。已按“大改先聊”先发布提案,维护者回复“接受”;这里先提供 Draft PR 供逐项审阅,不请求在设备验收未完成时合并。
基于 main
f1188f538bc4540a436dd52b43ce35c84e9520c5。整合最近两批通用前端优化,分为 5 个独立提交;共 34 个文件,15 个生产文件,其余为回归测试和合成浏览器 fixture。没有携带 fork 专属托管/远程来源、接口配置、包名/签名或其他定制。改了什么
1. 减少重复工作与长代码高亮阻塞(9a25be0)
find的重复 ID 首条语义。2. 工具组按需挂载(23b3a27)
3. Excel 同源 Worker + 有界分页(3cbb2c2)
4. 脉络图复用与交互合并(f81f60d)
5. 无新增依赖的可选浏览器验收(d7bd345)
新增
node scripts/test-frontend-perf.mjs,仅需 Node 内置 WebSocket/CDP 和已安装 Chromium,可用CHROMIUM_BIN指定可执行程序。不修改现有 runner 或 CI。使用仅回环合成 API/会话/工作簿、生产 app/CSP、真实同源 Worker/vendor;非 GET 一律拒绝并记录,外域请求由 CDP 阻断。覆盖 760 步全可达与窗口、嵌套权限与迟到失败、翻页中在途请求、reset 迟到清理、10 万格 Excel、100/1000 节点地图缓存/手势/导出/销毁。结束清理浏览器进程、profile、锁、连接与 timer。
本次上游移植实际测试
环境:HONOR PPG-AN00、Android 17 arm64,Node 26.12.1,Chromium 156.0.8078.47 无头/GPU 关闭。Node 22 是仓库 CI 环境,不冒称本机已用 Node 22 跑过。
git diff --check、内容/范围/字节快照检查通过以上集合有重叠,不能相加成“总通过项数”。此前 fork 或旧版上游结果不代替本表。
复测入口:
本机只对测试进程规范化
TMPDIR的 realpath 别名,并使用PATH="/system/bin:$PATH"使 runner 为合成 shell 优先链接系统基础命令;没有修改真实 PREFIX、exec shim、原测试 runner、断言或被测后端。全套仍失败的 7 项(不是全绿)
在相同局部环境中,以干净 main checkout 重新运行下列文件,七项均复现:
a0610-b3-office-runs:转换期间 .runs 标记Permission denieda0610-g1-mod-firstrun:首次配置失败恢复--quoting-style=c,尚未进入预期断言路径a0611-reconcile-fix:模块修补audit1101:git 钩子超时清理Permission denied,未走到超时路径audit1103:git 钩子信任指纹d10-retention:终端包装脚本Unexpected end of JSON inputharden-v2b:端侧模型自有服务识别READY ready这些文件的被测后端不在本 PR diff 中。没有为了让本机全绿修改产品安全机制或删除断言;仍需 CI/兼容环境复测。
8 项 skip:GNU tar 穿链包 1、隔离环境 7-Zip 3、测试临时路径不满足应用目录/别名条件 3、默认关闭的 1.1GB 会话压力 1。不是把失败转换成 skip。
第一轮全套是 1725 pass / 8 fail / 8 skip;其中额外一项来自 sparse checkout 缺原版
devkit/pgp.mjs。恢复该 tracked 原文件(无 diff)后,验签定向 14/14 通过,最终全套不再有此失败。性能证据与仍存在的限制
此前同一设备、合成无头 Chromium 对照(来自已完成的 fork 隔离验收,不是本 PR 的新帧率测试):
真实 Android WebView/GPU、中文输入法、双设备、人工安装/交互仍未完成;没有发送真实聊天、调用付费模型、连接真实中继或更改接口配置。原可选
scripts/test-managed-ui.mjs的 512000/524288 既有断言没有改动,本 PR 最终验收未重跑该脚本。交叉与安全初筛说明
vwPdf按钮、pdftools委托与 LibreOffice/PDF 尾部均保留(除新增 sheet 生命周期清理外尾部字节一致)。scripts/pr-guard.mjs <base> HEAD:高 3、中 14,按规则退出 1,未修改或绕过规则。高项是两个新增gateway/web/office/sheet-*.js被目录规则标作第三方,以及可选测试脚本被scripts/规则标作构建/发版脚本;这里均为可审阅的 plain JS 源文件,不是替换 minified vendor 或修改构建/签名。中项主要是测试提取实际源码执行、Node Worker 桥与 CDP/Chromium 子进程。请逐行审阅,不能当作初筛已通过。待维护者/设备验收
🤖 Generated with Claude Code