Repository navigation
perf: 扫描并修复侧栏卡顿(文件树/侧聊/diff/提交图 + 宿主路由) - #1050
Merged
Merged
Conversation
davidLi17
added a commit
to davidLi17/DSH-better-sidebar
that referenced
this pull request
Oct 25, 2026
Select hidden file-tree refresh batching, row prose memoization, and body-free bundle HEAD handling from omdsh-dev/DSH-better-sidebar PR omdsh-dev#1050 (dev head 18dade0). Preserve LHG image inputs and sidechat draft bridge. Validated: 2754 tests passed, 17 skipped; typecheck, lint, build, pack, consumer types, fresh official DSH rc1 installation and host startup. Browser UI unavailable in cloud sandbox; see maintenance record.
davidLi17
added a commit
to davidLi17/DSH-better-sidebar
that referenced
this pull request
Oct 25, 2026
Selectively backport open upstream PRs omdsh-dev#1040 (598714b), omdsh-dev#1055 (828452a), and omdsh-dev#1053 (f2ad4b1). Isolate Mermaid layout with authenticated sandbox messaging, recover from malformed diagrams, cancel/promote queued renders, preserve Windows Markdown separators and keep the bottom workbench toggle reachable. Preserve LHG draft/image sidechat behavior and selective omdsh-dev#1050 performance fixes. Ship prebuilt lib without lifecycle hooks. Validation: 230 files, 2790 tests passed, 17 skipped; typecheck, lint, build, consumer types, pack and fresh official DSH rc1 install/start passed. Real browser UI and native Windows unverified; see maintenance record.
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.
背景
扫描 BSB 前端页面与宿主
/sidebar/*请求里可能造成用户卡顿的位置并做低风险优化(用户已在批准的计划里允许在低成本处引入虚拟化)。逐条取证、误报核实、改动边界与先红后绿记录见 docs/plans/2026-10-24-perf-scan.md。本批随后经过一轮独立 CR(gpt-6.1-sol, high);4 条 should-fix + 2 条 nit 已逐条核实并修复(记录见同一文档 §7)。
改动(9 commits)
fs.trees(正常回屏恰好一次)。ResizeObserver仅在可见时持有。readFile整个 chunk(ETag 冷路径仍读一次算 hash,memo 命中后不读)。验证
pnpm typecheck/pnpm lintpnpm test(全量)pnpm build/pnpm packdsh web@0.2.1-rc.1keyless + Chromium)未在本机跑:Windows lane(交给 PR CI)、perf lane(测量用,无阈值断言)。未改 DSH 源码、未碰用户 profile;
lib/与 tarball 不入库。风险 / 行为变化
onStale为内部 hook 签名,改为接收目录数组;data-graph-count/data-graph-scroll为新增测试与调试属性。