修复 AGC CI 契约、JSON 预览与工具调用时间戳 #380

Merged
lhk229 merged 4 commits from codex/fix-direct-slice-completion-gate into master 2026-09-16 05:42:21 +08:00
Owner

修复 AGC 的 Rust 编译、资源预览及工具调用时间戳问题,并包含当前分支已有的 Rust shard 4 修复。

变更:

  • 补齐 Direct 回合事件测试构造中的 reasoning_text、stream_items 字段。
  • JSON/JSONC 不再按代码扩展名匹配,JSON 规格恢复文档预览。
  • 工具条分隔线测试对齐当前动作组条件,去掉旧 CSS 与变量名断言。
  • 实时事件与历史回读的工具调用时间戳在模型入口归一化为毫秒,界面仍显示秒/分钟。
  • 防止失效的精灵切片绕过校验重新进入通用资源路径;同步混合历史记录的失败关闭测试契约。

验证:

  • 资源预览契约、真实 manifest、工具条测试:12 项通过。
  • Direct 回合呈现测试:15 项通过。
  • Rust direct_turn_update_payload_is_the_exact_camel_case_contract 通过,test target 编译成功。
  • git diff --check 及提交钩子 ESLint、Prettier、Rustfmt 通过。

未运行完整 CI 或完整 appSurface 套件;其余对话区结构/文案断言未在此 PR 中批量调整。rehype-highlight 已在 master 的 package.json 与 lockfile 中声明,本 PR 未重复添加依赖。

修复 AGC 的 Rust 编译、资源预览及工具调用时间戳问题,并包含当前分支已有的 Rust shard 4 修复。 变更: - 补齐 Direct 回合事件测试构造中的 reasoning_text、stream_items 字段。 - JSON/JSONC 不再按代码扩展名匹配,JSON 规格恢复文档预览。 - 工具条分隔线测试对齐当前动作组条件,去掉旧 CSS 与变量名断言。 - 实时事件与历史回读的工具调用时间戳在模型入口归一化为毫秒,界面仍显示秒/分钟。 - 防止失效的精灵切片绕过校验重新进入通用资源路径;同步混合历史记录的失败关闭测试契约。 验证: - 资源预览契约、真实 manifest、工具条测试:12 项通过。 - Direct 回合呈现测试:15 项通过。 - Rust direct_turn_update_payload_is_the_exact_camel_case_contract 通过,test target 编译成功。 - git diff --check 及提交钩子 ESLint、Prettier、Rustfmt 通过。 未运行完整 CI 或完整 appSurface 套件;其余对话区结构/文案断言未在此 PR 中批量调整。rehype-highlight 已在 master 的 package.json 与 lockfile 中声明,本 PR 未重复添加依赖。
lhk229 added 4 commits 2026-09-16 05:41:59 +08:00
- direct_registered_taonier_runtime_image_paths 通用平台图兜底补齐 canonical 切片排除:assets/art-spritesheet-slices/ 下的切片只经完整 manifest/receipt/内容校验放行,内容被篡改的切片不再绕过完成门禁
- direct_completion_scans_npm_scene_modules 测试改为保留 fixture 有效切片,不再依赖被修复的兜底漏洞
- mixed_project_history_rows 过时测试按 d48d09905 收紧后的契约改为断言 DirectProject 链对 legacy 行失败关闭
补齐 Direct 回合事件新增字段的测试构造

将 JSON 资源恢复为文档预览分支

按当前工具条动作组逻辑更新分隔线回归测试
统一 Direct 工具调用时间戳为毫秒
Project CI / AI game creator shell Rust smoke (pull_request) Has been cancelled
Project CI / AI game creator shell Rust crates (pull_request) Has been cancelled
Project CI / Backend tests (pull_request) Has been cancelled
Project CI / Native shell tests (pull_request) Has been cancelled
Project CI / Frontend tests (pull_request) Has been cancelled
Project CI / Repository checks (pull_request) Has been cancelled
Project CI / AI game creator shell web tests (pull_request) Has been cancelled
Project CI / AI game creator shell Rust shard 2/4 (pull_request) Has been cancelled
Project CI / AI game creator shell Rust shard 1/4 (pull_request) Has been cancelled
Project CI / AI game creator shell Rust shard 3/4 (pull_request) Has been cancelled
Project CI / AI game creator shell Rust shard 4/4 (pull_request) Has been cancelled
c1e3e3bf8d
在前端模型入口兼容 Unix 秒时间戳并统一为毫秒

保持耗时展示使用秒和分钟

补充时间戳归一化回归测试
lhk229 merged commit bfc7eaa794 into master 2026-09-16 05:42:21 +08:00
lhk229 deleted branch codex/fix-direct-slice-completion-gate 2026-09-16 05:42:21 +08:00
Sign in to join this conversation.