WIP: 实现资源依赖关系图层 #126

Closed
menghao wants to merge 18 commits from codex/dependency-graph into master
Contributor

新增资源依赖图模型、去重、环检测与上下游查询。

使用原生 SVG 渲染资源引用和聚合任务流,并接入搜索、高亮、拖动及生命周期清理。

修复资源自引用连线被卡片遮挡的问题。

补充前端回归测试并同步工作台 PRD、技术方案和决策记录。

新增资源依赖图模型、去重、环检测与上下游查询。 使用原生 SVG 渲染资源引用和聚合任务流,并接入搜索、高亮、拖动及生命周期清理。 修复资源自引用连线被卡片遮挡的问题。 补充前端回归测试并同步工作台 PRD、技术方案和决策记录。
menghao self-assigned this 2026-07-31 15:15:28 +08:00
menghao requested review from kdletters 2026-07-31 15:15:28 +08:00
menghao marked the pull request as work in progress 2026-07-31 15:15:36 +08:00
kdletters changed target branch from codex/ai-game-creator-app to master 2026-07-31 15:38:36 +08:00
kdletters added 2 commits 2026-07-31 15:38:36 +08:00
实现资源依赖关系图层
Project CI / Frontend tests (pull_request) Successful in 2m40s
Project CI / Native shell tests (pull_request) Successful in 10m40s
Project CI / Repository checks (pull_request) Failing after 7s
Project CI / Backend tests (pull_request) Failing after 7s
8531a9af3e
新增资源依赖图模型、去重、环检测与上下游查询。

使用原生 SVG 渲染资源引用和聚合任务流,并接入搜索、高亮、拖动及生命周期清理。

修复资源自引用连线被卡片遮挡的问题。

补充前端回归测试并同步工作台 PRD、技术方案和决策记录。
合并最新 AI 游戏创作 App 分支
Project CI / Frontend tests (pull_request) Successful in 3m18s
Project CI / Repository checks (pull_request) Failing after 22s
Project CI / Backend tests (pull_request) Failing after 22s
Project CI / Native shell tests (pull_request) Failing after 22s
0b6be155dd
menghao added 1 commit 2026-07-31 15:55:03 +08:00
合并最新 master 并解决资源依赖图冲突
Project CI / Repository checks (pull_request) Failing after 7s
Project CI / Frontend tests (pull_request) Failing after 2m19s
Project CI / Backend tests (pull_request) Failing after 8s
Project CI / Native shell tests (pull_request) Successful in 12m34s
68ea9bdff3
同步 mentor 已合入 master 的最新工程改动。

保留资源依赖图决策记录并整合 master 的新增决策。

# Conflicts:
#	docs/project-memory/shared-memory/decision-log.md
menghao added 1 commit 2026-07-31 16:10:09 +08:00
同步最新 master 修复 CI 基线
Project CI / Repository checks (pull_request) Successful in 1m15s
Project CI / Frontend tests (pull_request) Successful in 3m23s
Project CI / Native shell tests (pull_request) Successful in 11m51s
Project CI / Backend tests (pull_request) Failing after 2m47s
246fd1d9d6
合并画板素材上传后的私有图片预览修复。

确保 PR 分支包含当前 master 基础提交。
menghao added 1 commit 2026-07-31 16:31:59 +08:00
修复后端源码约束测试
Project CI / Native shell tests (pull_request) Successful in 11m56s
Project CI / Repository checks (pull_request) Successful in 59s
Project CI / Frontend tests (pull_request) Successful in 3m35s
Project CI / Backend tests (pull_request) Successful in 3m49s
11140b9fb6
同步 UI 素材切片持久化失败断言至现有 warning 映射函数
保持生产逻辑和持久层不变
menghao added 1 commit 2026-07-31 16:51:12 +08:00
合并最新 master 并解决依赖图文档冲突
Project CI / Frontend tests (pull_request) Successful in 3m7s
Project CI / Backend tests (pull_request) Successful in 3m37s
Project CI / Native shell tests (pull_request) Successful in 12m20s
Project CI / Repository checks (pull_request) Successful in 59s
a431ab47cd
保留资源依赖图的纯前端 SVG 决策记录
保留主分支新增的抠图元数据与 OpenAPI 决策记录
同步 master 最新代码并保持依赖图与后端测试修复
menghao marked the pull request as ready for review 2026-07-31 16:51:36 +08:00
kdletters requested changes 2026-07-31 17:19:55 +08:00
Dismissed
kdletters left a comment
Member

[P1] 拖动卡片会全量重建依赖 SVG。4096 个资源时约生成 12,285 条 path;实测单次拖动重渲染约 179ms,约 5fps。ResourceDependencyOverlay.tsx:184-236,304-376 还会每帧重建 ResizeObserver,不满足实时连线要求。
[P2] index.tsx:331-355 错把画板资产的 source.taskId 当作 manifest 任务 ID。该字段实际是 External Editor 生成任务 ID(如 task-1),导致正式规范图、UI 原型和图集缺失聚合 task-flow 与上下游高亮。新增测试使用了非生产数据形状,未覆盖此问题。
[P2] 自引用闭环向卡片右侧延伸 56px,但画布 extent 只预留 16px。Chromium 中滚到最右仍会裁掉约 8px,闭环显示不完整。

[P1] 拖动卡片会全量重建依赖 SVG。4096 个资源时约生成 12,285 条 path;实测单次拖动重渲染约 179ms,约 5fps。ResourceDependencyOverlay.tsx:184-236,304-376 还会每帧重建 ResizeObserver,不满足实时连线要求。 [P2] index.tsx:331-355 错把画板资产的 source.taskId 当作 manifest 任务 ID。该字段实际是 External Editor 生成任务 ID(如 task-1),导致正式规范图、UI 原型和图集缺失聚合 task-flow 与上下游高亮。新增测试使用了非生产数据形状,未覆盖此问题。 [P2] 自引用闭环向卡片右侧延伸 56px,但画布 extent 只预留 16px。Chromium 中滚到最右仍会裁掉约 8px,闭环显示不完整。
Member

计算和处理过程推荐放到rust中

计算和处理过程推荐放到rust中
menghao marked the pull request as work in progress 2026-07-31 18:17:25 +08:00
menghao added 1 commit 2026-07-31 18:36:46 +08:00
优化资源依赖图连线外观
Project CI / Repository checks (pull_request) Failing after 11s
Project CI / Backend tests (pull_request) Failing after 10s
Project CI / Frontend tests (pull_request) Successful in 3m5s
Project CI / Native shell tests (pull_request) Successful in 10m26s
f582ecf032
将任务流分支改为平滑贝塞尔曲线
调整两类连线的线宽、虚线和箭头样式
补充连线几何测试与相关文档
menghao added 1 commit 2026-07-31 19:10:17 +08:00
将资源依赖图计算迁移到Rust
Project CI / Repository checks (pull_request) Failing after 10s
Project CI / Backend tests (pull_request) Failing after 7s
Project CI / Frontend tests (pull_request) Successful in 2m50s
Project CI / Native shell tests (pull_request) Successful in 11m33s
29dce59b35
新增只读资源依赖图模型,完成过滤、去重、环检测和任务流聚合
前端SVG仅负责几何渲染、搜索联动、选中高亮和拖动预览
补充资源图、覆盖层和工作台回归测试
同步更新工作台PRD、技术方案与项目记忆
menghao added 1 commit 2026-07-31 19:19:38 +08:00
合并最新master并解决资源图冲突
Project CI / Repository checks (pull_request) Failing after 47s
Project CI / Frontend tests (pull_request) Successful in 3m21s
Project CI / Backend tests (pull_request) Successful in 3m49s
Project CI / Native shell tests (pull_request) Successful in 11m42s
e77d187497
合并远端master的运行收口、聊天输出与画布交互更新
保留资源依赖图只读命令注册和Rust测试隔离配置
解决main.rs入口附近的内容冲突
完成依赖图、退出保护及完整前端回归验证
menghao added 1 commit 2026-07-31 19:31:41 +08:00
修复合并后的前端Lint门禁
Project CI / Repository checks (pull_request) Successful in 55s
Project CI / Frontend tests (pull_request) Successful in 2m55s
Project CI / Native shell tests (pull_request) Successful in 11m45s
Project CI / Backend tests (pull_request) Successful in 3m54s
cced839da5
稳定项目总控响应流更新回调并补齐Effect依赖
调整Agent Runtime模型测试的导入顺序
通过完整ESLint、类型检查和AppSurface回归测试
kdletters requested changes 2026-07-31 19:45:48 +08:00
kdletters left a comment
Member

[P1] 4096 张资源卡片拖动时仍整体重渲染。 index.tsx:820-833 每帧更新父组件 state,index.tsx:1247-1370 随后重新遍历全部资源;ResourceCard(:470)没有 memo,且传入内联回调。4096 张真实卡片的 jsdom 定向测试中,一次有效拖动耗时 179.53ms。这个数字不能等同于 Chromium,但已证明当前结构明显超出文档要求的 <16.7ms 帧预算。

[P2] 依赖图返回晚于首次布局初始化,正确层级不会触发重排。 index.tsx:611-709 在 Rust graph 尚未返回时先用 dependencyDepth=0 初始化布局;useProjectResourceCanvasLayout.ts:438-475 会据此生成并持久化坐标。graph 返回后,:501-523 的 reconcile 为保留已有/手动位置,不会按新深度重新排布。延迟 graph 测试确认 producer 信息到达前后坐标完全不变。

[P1] 4096 张资源卡片拖动时仍整体重渲染。 index.tsx:820-833 每帧更新父组件 state,index.tsx:1247-1370 随后重新遍历全部资源;ResourceCard(:470)没有 memo,且传入内联回调。4096 张真实卡片的 jsdom 定向测试中,一次有效拖动耗时 179.53ms。这个数字不能等同于 Chromium,但已证明当前结构明显超出文档要求的 <16.7ms 帧预算。 [P2] 依赖图返回晚于首次布局初始化,正确层级不会触发重排。 index.tsx:611-709 在 Rust graph 尚未返回时先用 dependencyDepth=0 初始化布局;useProjectResourceCanvasLayout.ts:438-475 会据此生成并持久化坐标。graph 返回后,:501-523 的 reconcile 为保留已有/手动位置,不会按新深度重新排布。延迟 graph 测试确认 producer 信息到达前后坐标完全不变。
menghao marked the pull request as ready for review 2026-07-31 19:52:45 +08:00
menghao marked the pull request as work in progress 2026-07-31 20:00:29 +08:00
menghao added 2 commits 2026-08-03 10:42:32 +08:00
合并game-chat五分钟首版与平台美术硬门更新
解决App响应流Hook的等价内容冲突
稳定新增消息追加回调并整理合并后的导入顺序
通过前端完整测试、Lint、类型检查和Rust tests编译
合并最新master并解决工作台冲突
Project CI / Repository checks (pull_request) Successful in 1m17s
Project CI / Frontend tests (pull_request) Successful in 3m13s
Project CI / Backend tests (pull_request) Successful in 3m45s
Project CI / Native shell tests (pull_request) Failing after 5m39s
37f4a63112
合并 master 最新游戏聊天前端 Lint 修复。

保留依赖图分支的 Hook 稳定化逻辑并统一注释格式。
menghao added 1 commit 2026-08-03 11:16:17 +08:00
修复资源依赖图布局初始化与拖动性能
Project CI / Repository checks (pull_request) Successful in 1m0s
Project CI / Frontend tests (pull_request) Successful in 3m4s
Project CI / Backend tests (pull_request) Successful in 3m29s
Project CI / Native shell tests (pull_request) Failing after 5m34s
05c608214e
将任务依赖深度迁移到 Rust SCC 压缩图并返回稳定结果

为 dependency 模式增加图加载屏障并重派生自动布局

通过 DOM 热路径和局部 SVG 缓存避免拖动全量 React 重渲染

补充 4096 资源、异步初始化及布局保持回归测试

同步工作台 PRD、技术方案与共享项目记忆
menghao added 1 commit 2026-08-03 11:54:14 +08:00
修复运行时恢复路径栈溢出
Project CI / Repository checks (pull_request) Failing after 7s
Project CI / Backend tests (pull_request) Failing after 10s
Project CI / Frontend tests (pull_request) Successful in 2m51s
Project CI / Native shell tests (pull_request) Failing after 7m51s
7f038490f1
为 pending continuation 与后台主循环增加可取消的 Tokio 任务边界
保留 durable batch 恢复防重和父任务取消语义
补充运行时技术约束与共享排障记录
menghao added 1 commit 2026-08-03 11:55:23 +08:00
Merge branch 'master' into codex/dependency-graph
Project CI / Repository checks (pull_request) Successful in 54s
Project CI / Frontend tests (pull_request) Failing after 2m9s
Project CI / Backend tests (pull_request) Successful in 3m46s
Project CI / Native shell tests (pull_request) Failing after 3m4s
b95da30721
menghao added 1 commit 2026-08-03 13:35:43 +08:00
修复Linux进程树探活与Runtime默认栈溢出
Project CI / Repository checks (pull_request) Successful in 1m7s
Project CI / Frontend tests (pull_request) Successful in 3m0s
Project CI / Backend tests (pull_request) Successful in 3m32s
Project CI / Native shell tests (pull_request) Failing after 7m38s
bda0d0d398
Linux进程组探活忽略已终止但未回收的zombie成员

pending恢复与后续队列统一跨越装箱的Tokio任务边界

补充Tauri生命周期和Runtime默认栈回归测试与文档
menghao added 1 commit 2026-08-03 14:22:09 +08:00
同步自主首批任务图测试夹具
Project CI / Repository checks (pull_request) Failing after 11s
Project CI / Backend tests (pull_request) Failing after 11s
Project CI / Frontend tests (pull_request) Successful in 2m46s
Project CI / Native shell tests (pull_request) Successful in 10m54s
d8064eff49
补齐可信 Supervisor 根任务与三 Leader 首批合同测试数据

更新视觉失败和 Ready 任务调度断言以匹配最新任务图

修复 Provider 重试恢复响应仍使用旧底层 Agent 合同的问题
menghao added 1 commit 2026-08-03 14:25:52 +08:00
Merge remote-tracking branch 'origin/master' into codex/dependency-graph
Project CI / Repository checks (pull_request) Successful in 1m3s
Project CI / Frontend tests (pull_request) Failing after 2m7s
Project CI / Backend tests (pull_request) Successful in 3m25s
Project CI / Native shell tests (pull_request) Successful in 10m41s
c24e3010f8
Author
Contributor

由于本周需求包含该分支所写部分功能,也有一些需求冲突,所以我目前是想合并该分支后新建分支完成本周任务。但是CI测试一直无法通过,无法进行后续开发。所以应该强行合并还是直接抛弃该分支后新建分支开启本周任务。(毕竟该分支部分功能如拖拽资源卡片是最新需求里抛弃的)

由于本周需求包含该分支所写部分功能,也有一些需求冲突,所以我目前是想合并该分支后新建分支完成本周任务。但是CI测试一直无法通过,无法进行后续开发。所以应该强行合并还是直接抛弃该分支后新建分支开启本周任务。(毕竟该分支部分功能如拖拽资源卡片是最新需求里抛弃的)
menghao marked the pull request as ready for review 2026-08-03 14:31:00 +08:00
menghao marked the pull request as work in progress 2026-08-03 15:46:10 +08:00
Author
Contributor

由pr129一并交付

由pr129一并交付
kdletters closed this pull request 2026-08-06 19:50:42 +08:00
Some checks are pending
Project CI / Repository checks (pull_request) Successful in 1m3s
Project CI / Frontend tests (pull_request) Failing after 2m7s
Project CI / Backend tests (pull_request) Successful in 3m25s
Project CI / Native shell tests (pull_request) Successful in 10m41s

Pull request closed

Sign in to join this conversation.