Skip to content

feat(media): 固定个人任务图片并提供私有预览 - #274

Merged
woncc merged 1 commit into
mainfrom
codex/w04-generic-on-main
Nov 22, 2026
Merged

woncc merged 1 commit into
mainfrom
codex/w04-generic-on-main

Conversation

@woncc

@woncc woncc commented Nov 22, 2026

Copy link
Copy Markdown

🔗 关联任务 / Related Issue

Related to #2(W04)。

🚀 变更类型 / Type of change

  • ✨ 新功能 (New feature)

📝 变更描述 / Description

  • 为内置 DashScope 异步个人任务的首张图片 image-1 增加私有预览和显式保存。保存完整 PNG/JPEG 后,客户端可以复用原字节,供应商源失效时也能读取。
  • 固定及读取均核对当前个人所有权和有效会话。预览保持只读,显式保存后才创建版本。旧地址的投影及交付按原合同运行。
  • 本改动由 Codex 辅助。发布树 f26724a21bc44fc13a565822578db9d19b1f439d 与独审候选一致,基线 37e64c86。

📸 运行证明 / Proof of Work

  • go test -json -count=1 ./router -run '^(TestAccessTokenRouteRulesCoverEveryDashboardRoute|TestPersonalHistoricalMediaReading)$/^(native_video_cookie_is_limited_to_live_personal_media|retained_dashscope_artifact_can_be_fixed_and_read_privately|fixed_images_read_back_without_the_source)$' 通过,覆盖会话边界、固定图片失源后的读取和旧视频入口。路由表定向及 go test -json -count=1 ./model -run '^TestHardDeleteUserPublishesTombstoneAndPurgesAuthenticationData$' 通过。
  • Bun 的三份受影响 Vitest 文件共 23 项通过,bun run typecheck 和变更文件 oxlint 通过。本次为截图运行 bun run build,使用实际候选组件和本地合成图。三库与浏览器的既有验证按原范围复用。私有预览截图
  • 原迁移与 HTTP 回执覆盖 SQLite 3.50.4、MySQL 8.0.46、PostgreSQL 15.19。会话撤销与对象范围按 ASVS 5.0.0 7.4.1、8.2.2、8.3.1 复核。实际供应商连通性及全任务历史覆盖留待后续。

✅ 提交前检查项 / Checklist

  • 人工确认
  • 新功能关联 Issue
  • 范围聚焦
  • 本地验证已记录

@woncc
woncc marked this pull request as ready for review November 22, 2026 21:07
@woncc
woncc merged commit f9c069c into main Nov 22, 2026
10 of 11 checks passed
@woncc
woncc deleted the codex/w04-generic-on-main branch November 22, 2026 21:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant