Files
aigc-home/docs/changelogs/2026-10-22-hel762-batch4.md
T
2026-10-22 04:14:43 +08:00

15 KiB
Raw Blame History

批4仅为逐处审查后保留原实现增加 29 条单行 ESLint 例外,不代表相关能力全部修复。起点 46fd5bbc86244c349abb4196a0eb93bf54a52172;沿用 fix/hel-750-code-checks / PR #5,base feat/hel-730-management@64c1116bca1150e413ab51151bade6844f1ec914。已读 HEL-727 架构交接、HEL-754 矩阵/优先裁定及 HEL-761 批3独立复核;不改业务、模板、CSS、规则配置、依赖、接口或用户数据。

本批新增逐位置清单(29 条)

路径相对 calliope-web/,行号指添加注释后的诊断语句。各项均单独验证禁用作用域:移除该行指令后恰恢复原来一条指定规则/消息,其他诊断不变。每一文件的前后客户端/SSR编译产物经过 JS AST 去位置/注释/词法 raw 后相同,CSS 编译产物逐字相同;另以删除本批注释后源码逐字相同证明模板结构和原脚本不变。编译器会保留脚本注释,故没有宣称生成 JS 逐字相同。

# 位置 规则 原行为与保留依据 实际验证及边界
1 src/lib/components/agent/AgentChat.svelte:65 prefer-svelte-reactivity Each derivation rebuilds this tool-result lookup from messages; only the completed Map escapes, with no later mutation. 源码读写链审核 + 编译 AST 等价;未单独点击此临时计算分支。
2 src/lib/components/agent/AgentComposer.svelte:80 no-dom-manipulating Template owns the empty editor shell; its user-editable subtree is imperative. Restore draft text before caret placement/focus and serialization. 真实组件隔离挂载:草稿/nonce、两种 chip 正常与无选区 fallback 插入、序列化、光标、提交清空;fallback 使用清选区+模拟 mousedown;未验证 IME/粘贴/上传。
3 src/lib/components/agent/AgentComposer.svelte:166 no-dom-manipulating Template does not render editor children; after serializing text/chips, clear the user-owned subtree before onSend, preserving submit/reset behavior. 真实组件隔离挂载:草稿/nonce、两种 chip 正常与无选区 fallback 插入、序列化、光标、提交清空;fallback 使用清选区+模拟 mousedown;未验证 IME/粘贴/上传。
4 src/lib/components/agent/AgentComposer.svelte:297 no-dom-manipulating Editor owns its children: fallback appends a noneditable workflow chip whose dataset serialize reads; keep template shell and caret logic intact. 真实组件隔离挂载:草稿/nonce、两种 chip 正常与无选区 fallback 插入、序列化、光标、提交清空;fallback 使用清选区+模拟 mousedown;未验证 IME/粘贴/上传。
5 src/lib/components/agent/AgentComposer.svelte:300 no-dom-manipulating Editor-owned trailing space provides a text caret after the workflow chip; placeCaretAfter uses this exact node. 真实组件隔离挂载:草稿/nonce、两种 chip 正常与无选区 fallback 插入、序列化、光标、提交清空;fallback 使用清选区+模拟 mousedown;未验证 IME/粘贴/上传。
6 src/lib/components/agent/AgentComposer.svelte:335 no-dom-manipulating Editor owns its children: fallback appends a noneditable skill chip whose dataset serialize reads; keep template shell and caret logic intact. 真实组件隔离挂载:草稿/nonce、两种 chip 正常与无选区 fallback 插入、序列化、光标、提交清空;fallback 使用清选区+模拟 mousedown;未验证 IME/粘贴/上传。
7 src/lib/components/agent/AgentComposer.svelte:338 no-dom-manipulating Editor-owned trailing space provides a text caret after the skill chip; placeCaretAfter uses this exact node. 真实组件隔离挂载:草稿/nonce、两种 chip 正常与无选区 fallback 插入、序列化、光标、提交清空;fallback 使用清选区+模拟 mousedown;未验证 IME/粘贴/上传。
8 src/lib/components/agent/AgentSessionSidebar.svelte:32 prefer-svelte-reactivity Local grouping accumulator is consumed as an array in this derivation; sessions drive recomputation, not Map writes. 源码读写链审核 + 编译 AST 等价;未单独点击此临时计算分支。
9 src/lib/components/agent/WorkflowMentionMenu.svelte:59 no-dom-manipulating Template creates menu contents; this effect moves the root to body and owns portal teardown on close/unmount. Remove that moved root to avoid residue. 由真实编辑器驱动:body portal 定位、Esc/外点关闭、开着卸载无残留。
10 src/lib/components/desk/StudioDesk.svelte:140 prefer-svelte-reactivity Nonreactive request gate: ensureDetail reads has synchronously in the effect; reactive delete on failure would re-arm requests without a cached detail. 真实创作台失败详情请求:旧/新计数一致且等待后不增长;派生 ID 保留源依赖。
11 src/lib/components/desk/StudioDesk.svelte:160 prefer-svelte-reactivity Rebuilt from workflowId, bay selection and jobs on each derivation; this completed ID set is never mutated by consumers. 真实创作台失败详情请求:旧/新计数一致且等待后不增长;派生 ID 保留源依赖。
12 src/lib/components/desk/TaskModeRail.svelte:23 prefer-svelte-reactivity Local counting accumulator is consumed synchronously into mode rows; metas/kind drive the derivation. 源码读写链审核 + 编译 AST 等价;未单独点击此临时计算分支。
13 src/lib/components/generate/SlotTray.svelte:120 prefer-svelte-reactivity Per-drop allocation buffer, synchronously consumed into groupAdd calls; no collection state survives this invocation. 源码读写链审核 + 编译 AST 等价;未单独点击此临时计算分支。
14 src/lib/components/generate/SlotTray.svelte:122 prefer-svelte-reactivity Per-drop reservation set prevents assigning two files to one slot before async upload completes; never used as render state. 源码读写链审核 + 编译 AST 等价;未单独点击此临时计算分支。
15 src/lib/components/generate/TakeFeed.svelte:129 prefer-svelte-reactivity Nonreactive entrance ledger read/written in the jobs effect and markEnter; keep bookkeeping outside effect dependencies, with animateIds driving classes. 真实组件隔离挂载:新条目入场一次,复制 jobs/markEnter 后不重播;CSS animationstart 事件探针,非像素等同比较。
16 src/lib/components/omni/MediaTile.svelte:82 prefer-svelte-reactivity Local path deduplication scratch set for one filter pass; only the filtered asset array escapes. 源码读写链审核 + 编译 AST 等价;未单独点击此临时计算分支。
17 src/lib/components/omni/PillPopover.svelte:67 no-dom-manipulating Template creates panel contents; effect owns body portal placement and teardown. Remove the moved root on close/unmount; listener cleanup stays separate. 真实组件隔离挂载:body 定位、开关/Esc/外点、选择及开着卸载无残留。
18 src/lib/components/omni/PillSelect.svelte:89 no-dom-manipulating Template creates menu contents; effect owns body portal placement and teardown. Remove the moved root on close/unmount; selection and listener cleanup stay intact. 真实组件隔离挂载:body 定位、开关/Esc/外点、选择及开着卸载无残留。
19 src/lib/components/workflows/WorkflowBatchImportWizard.svelte:202 prefer-svelte-reactivity Mutate an isolated copy then assign expandedIssues once; rendering observes the state replacement, not intermediate Set writes. 源码读写链审核 + 编译 AST 等价;未单独点击此临时计算分支。
20 src/lib/components/workflows/WorkflowLibrary.svelte:239 prefer-svelte-reactivity Keep copy/mutate/assign selection semantics: row toggle publishes selected only after the working copy is complete. 真实工作流页:逐行勾选、当前列表全选/取消、删除成功后 selected 清除;API fixture 拦截。
21 src/lib/components/workflows/WorkflowLibrary.svelte:247 prefer-svelte-reactivity Keep copy/mutate/assign selection semantics: visible rows are added/removed before publishing selected once. 真实工作流页:逐行勾选、当前列表全选/取消、删除成功后 selected 清除;API fixture 拦截。
22 src/lib/components/workflows/WorkflowLibrary.svelte:325 prefer-svelte-reactivity Delete success removes the ID from a working copy, then replaces selected; preserve the existing publication boundary. 真实工作流页:逐行勾选、当前列表全选/取消、删除成功后 selected 清除;API fixture 拦截。
23 src/lib/shot/components/ShotViewport.svelte:73 prefer-svelte-reactivity Imperative RAF scene registry; keep collection writes out of pose/tool dependencies. Scene state and figureRevision explicitly trigger solves; SvelteMap would track collection reads. 真实 Three/WebGL 隔离挂载:cube 注册、orbit、SPA 离页、canvas 消失、controls dispose、RAF 取消停止、ResizeObserver disconnect、GL program 删除。非所有几何/纹理资源释放证明。
24 src/lib/shot/components/ShotViewport.svelte:499 no-dom-manipulating Template owns the container/toolbar; Three owns this canvas. Mount renderer output here; destroy cancels RAF, disconnects resize and disposes controls/renderer. 真实 Three/WebGL 隔离挂载:cube 注册、orbit、SPA 离页、canvas 消失、controls dispose、RAF 取消停止、ResizeObserver disconnect、GL program 删除。非所有几何/纹理资源释放证明。
25 src/routes/+page.svelte:244 prefer-svelte-reactivity Project-title lookup is rebuilt from allProjects each derivation; consumers only read the completed Map. 源码读写链审核 + 编译 AST 等价;未单独点击此临时计算分支。
26 src/routes/canvas/[id]/+page.svelte:185 prefer-svelte-reactivity Effect-local job lookup is built and synchronously consumed into nodes, then discarded; graph/jobs already drive the effect. 源码读写链审核 + 编译 AST 等价;未单独点击此临时计算分支。
27 src/routes/library/+page.svelte:91 prefer-svelte-reactivity Selection toggles mutate a copy then replace selected; preserve one state publication after the toggle. 真实素材页:逐项选中、保留另一项、取消目标与计数;API fixture 拦截。
28 src/routes/settings/+page.svelte:81 no-navigation-without-resolve Runtime target derives from afterNavigate URL and MOVED_TABS; preserve query/hash and replaceState on this legacy redirect rather than re-resolving the full target. 真实设置页:旧入口 replaceState 保重复 query/hash;离页确认/取消、草稿保留与目标恢复。守卫目标链接 click 为 DOM 模拟事件。
29 src/routes/settings/+page.svelte:237 no-navigation-without-resolve Resume the pathname/query/hash captured by beforeNavigate after discard confirmation; cancellation retains the draft. Preserve this runtime target and goto options. 真实设置页:旧入口 replaceState 保重复 query/hash;离页确认/取消、草稿保留与目标恢复。守卫目标链接 click 为 DOM 模拟事件。

原有已审例外(3 条,未改)

  • src/lib/media/exportFrame.ts:65:no-control-regex,文件名控制字符拒绝;原有指令保留。
  • src/lib/components/ComfyDynamicForm.svelte:232:svelte/no-at-html-tags,固定七种语言包 HTML 合同;未改。
  • src/lib/components/ui/Icon.svelte:27:svelte/no-at-html-tags,内置 SVG 注册表;未改。

这三条不是本批新增项。ESLint JSON 的 suppressedMessages 只列脚本类 suppression(前1→后30);模板指令由 Svelte 处理,不在该字段列出,不能把该字段误作全部例外总数。源码指令由原3→32。

语义边界

  • inflight 的 has 在 effect 调用 ensureDetail 的同步段读取;失败不写 details,原生 Set delete 不触发重试。保留是依赖边界要求。
  • seenIds 是非响应入场记账;可见动画由原有 SvelteSet animateIds 驱动,不把两者混为一谈。
  • instances 是 RAF 使用的视图注册表,Three 对象本身不会因为换 SvelteMap 就自动深代理;风险是集合 get/has 的追踪变化。保留 shotStore、figureRevision、untrack 的真实触发边界。原 onDestroy 只保证现有控制器/renderer 等清理,不能扩称递归释放所有场景资源。
  • 7 项临时计算/分组集合以及 SlotTray 两个暂存集合只在一次计算/调用内写入;AgentChat、StudioDesk ids、首页 Map 会返回完成后的集合,消费者只读,并非所有集合都立即丢弃。
  • 四项不可变复制(导入向导1、工作流库3)及素材库1均保留 copy→mutate→assign,渲染依赖 state 整体替换。没有顺便改成原地响应集合。
  • settings 目标是框架导航回调提供的运行时路径/query/hash,不将其重新当作静态路由解析;原选项不变。此次未扩修跨 origin 特殊导航,也未修 /models 第二跳丢附加参数/hash。
  • 编辑器模板只拥有空壳,用户文本/chip 子树由编辑器管理;三个 portal 的模板内容与 imperative root 移动/清理分工不变。Three canvas 由 renderer 创建,模板只有容器和工具栏。

检查记录

Node v24.16.0 / npm 11.13.0。干净 npm ci=0;npm run lint=1;npm run check=0;npm test=0;npm run build=0。ESLint JSON 按文件/规则/消息的多重差集 31→2,恰消除导航2+响应性17+DOM10,零新增。仅余 Artboard /assets 导航与 ShotStagePanel 字幕各1,均留批5。check 保留1条原字幕 warning;build 原有提示保留,未改阈值或补空 track。

默认 Prettier 沿用原配置,不自动覆盖 .svelte 模板;lint 中 Prettier 的通过不能说明所有模板已符合格式。

浏览器脚本、fixture、实际请求流水、旧/新 JSON、截图、失败夹具记录与完整命令日志随任务附件交付。全部 API 由隔离浏览器拦截,其他 origin 中止;未启动后端、未调用真实生成/收费接口、未读取用户配置/数据。临时路由仅测试期存在,不提交。截图仅支持局部无回归,不是全站样本验收。

未覆盖:真实服务/SSE/付费生成,输入法/粘贴/上传,导入向导问题展开的页面点击,其他临时分组集合的独立交互,所有 WebGL 几何/材质/纹理生命周期及物理关窗。上述源码均证明本批仅增注释;不以此宣传原问题已修好。

不更新 PR 正文、不合并、不部署、不启动批5/HEL-751。交付后冻结本批新 head,待总管另派独立复核;回滚用 git revert <本批提交> 正常推送原分支。