Repository navigation
perf(frontend): 优化长会话同步与首屏加载 - #280
Merged
Merged
Conversation
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.
Fixes #260
Summary
长会话加载多页历史后,后台同步原先会反复读取全部历史;首屏也静态引入了尚未打开的高级界面。本次把最新持久记录同步与手动历史分页分开,并让高级模块在首次打开时加载。
PlanDeliveryPanel与密度偏好,拆分功能 CSS;局部加载失败保留导航及草稿。保留 Monaco 动态加载及官方完整 TTF。f33ceebd,完整保留 [P1] feat(frontend): 简化首次模型接入 #265 的模型接入行为与固定操作栏。同一 Node 24.14.0、lockfile 和 Vite 8.2.1 下,按 manifest 递归累计全部初始静态依赖:
可变来源窗口会增加必要补读;字体不计入上述 JS/CSS 比例。1,000 条历史加一条活动输出,20 次输出更新仅增加 20 次 Markdown 渲染。测量方式、隐藏来源恢复的限制与完整验证范围见 性能记录。
Validation
npm run check:apinpm test -- --maxWorkers=4:169 个文件、1,520 项测试通过npm run build -- --manifest(含 TypeScript 检查)npm audit --audit-level=high:0 vulnerabilitiesgo test -count=1 ./internal/webuigo test -count=1 -tags desktop ./webgo test -count=1 -tags "desktop,wv2runtime.error" ./cmd/cyberagent-desktop ./internal/desktop ./internal/webuigit diff --check本地 Go 为 1.26.5;CI 沿用仓库固定的 Go 1.25.x。完整
go test ./...、go vet ./...和 Rust 全量检查未在本地运行:本次仅改前端与使用文档,沿用现有适用 CI,不增加重复门禁。未执行真实模型任务。Surface governance
Registry、tier/transition、entry criteria、owner、platforms、compatibility、deprecation/removal declarations: N/A — no Surface change. 沿用 ADR 0134 和现有 Go Application transcript/approval 合同,无新增 authority。
Audit