Skip to content

统一导入确认,并保护复制与排队导入 - #518

Merged
taekchef merged 55 commits into
mainfrom
codeberg/codex/confirmed-file-import
Oct 3, 2026
Merged

taekchef merged 55 commits into
mainfrom
codeberg/codex/confirmed-file-import

Conversation

@taekchef

@taekchef taekchef commented Sep 30, 2026 •

Copy link
Copy Markdown
Collaborator

改动

普通资料导入统一先确认文件范围、目标课程、重复和同名冲突,确认后才复制;支持停止剩余文件、结果汇总和失败重试。Markdown 默认作为资料,明确从笔记入口导入时才作为笔记。原生文件选择窗口与确认窗口配合,保留已打开笔记的内容加载和保存保护。

修复本轮复审发现的两个根因:复制过程校验源文件、资料库根与目标目录身份,复用现有同名处理和目标卷暂存后落位,拒绝链接越界和复制期间源内容变化;导入中新增批次保留各自课程、资料/笔记角色及文件权限,完成、取消、重试和切批时正确释放。失败批次必须明确处理,不能被后来文件静默替换。

验证

修复提交 1b120a392c860e562dab2671e7a2a993945ddb73 已随 #519 最终整合修复 进入主线,合并提交为 0ef1318aa31a4ed29d87ad83bc94cadcbc331562。公共弹窗冲突和连续导入时的窗口裁切在该组合解决,保留本 PR 的原提交历史。

  • 无界面导入与资料库测试 40 项通过,覆盖来源及目标链接、内容变化、同名去重、排队目标、权限释放、失败重试和笔记入口。
  • 最终组合完整检查 37103607433 全部必需检查通过:497 项应用测试中 495 项通过、2 项可选截图检查跳过、0 失败;编辑器检查、应用自检和助手离线评测通过。
  • 两种处理器版本均通过正式构建、启动和安装包;真实进程中连续两次资料及笔记导入均核对窗口尺寸、实际副本字节及关窗,保存后重开的真实编辑器显示正确内容,正常退出后笔记和执行状态一致。14 项会话及 27 项业务检查全部通过,导入与连接窗口截图已核对。
  • 实际验收组合 abc43d2dc9b74eb4d24bf32379a862a312ba0869 的代码树与主线合并提交一致。本次未发布或替换安装版;自动检查不代表手工批量操作或旧版升级验收。

来源

迁移自 Codeberg #49,原作者 taekchef,原 head a71f324595b56934913c30c4b9fd42bc13c4f2b3。保留原始提交历史;当前范围以本 PR 对主线的实际差异为准。

@taekchef
taekchef changed the base branch from codex/restore-codeberg-main-20260930 to main September 30, 2026 14:53
Codex Audit and others added 11 commits September 30, 2026 16:13
Combine a14d143 and a71f324 without production fixes. Preserve main synchronous test fixtures, omit unused async helpers revived by the role-change conflict, and retain all existing and import/write-gate regression checks.
Add synthetic regressions for vanished representatives, failed course transactions, vanished destinations, and the initial Markdown material role. Retain the accepted explicit Chinese fixture locale without copying the temporary acceptance workflow.
Revalidate preview duplicates against current destination content and successful copies scoped to that destination. Retain same-batch successful copy evidence across retry, compare prepared source HTML to raw imported bytes, and preserve course keep-both behavior. Align initial-course Markdown copy with its material-only placement. Add targeted synthetic recovery, retry, changed-destination, conflict, and HTML regressions.
Integrate actual main 0dc5238 through the accepted 514/515 candidate 0efcc41. Resolve only two adjacent insertion conflicts by retaining both sidebar helpers and all recent-import, Escape, and baseline tests. Preserve import repair history and accepted checks; no product tradeoff or unrelated fix.
@taekchef taekchef changed the title 迁回 Codeberg #49:统一文件导入确认与结果处理 统一导入确认,并保护复制与排队导入 Oct 2, 2026
@taekchef
taekchef marked this pull request as ready for review October 2, 2026 15:40
@taekchef
taekchef merged commit dda70a9 into main Oct 3, 2026
3 of 7 checks passed
@taekchef
taekchef deleted the codeberg/codex/confirmed-file-import branch October 3, 2026 19:00
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.

2 participants