Skip to content

Commit b4889aa

Browse files
committed
fix(release): include metadata in checksums
Root cause: local-release-pipeline writes RELEASE-METADATA.md after export-latest-ccswitchmulti.ps1 has already generated SHA256SUMS.txt, so the release checksum file could omit the metadata asset. Changes: - regenerate SHA256SUMS.txt after writing pipeline-level release metadata - document the required release export ordering in memory.md Verification: - local-release-pipeline.ps1 parser check: passed - local-release-pipeline.ps1 -SkipBuild -NoTypecheck: passed and SHA256SUMS includes RELEASE-METADATA.md - git diff --check: passed
1 parent bd1e7cd commit b4889aa

2 files changed

Lines changed: 21 additions & 0 deletions

File tree

memory.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,10 @@
99
- 前端 `resolveFetchedCodexModelContextWindow` 的正确优先级仍是:远端 `/models` 显式值 > 用户已有 catalog 值 > 少量历史保守兜底(如 DeepSeek alias / preset 已有值)。如果某个供应商实际返回了上下文字段但 UI 为空,先修 `model_fetch.rs` 字段解析。
1010
- Codex 表单的“测试 Chat / Responses”依赖模型目录;如果 catalog 为空,不能只 toast “请先获取模型列表”。正确交互是展开高级选项,滚到“模型映射”,聚焦并高亮右上角“获取模型列表”按钮,同时在确认框和提示文案里明确测试前需要先获取/添加模型。
1111

12+
## 2026-06-30 Release Pipeline Notes
13+
14+
- `scripts/local-release-pipeline.ps1` 会在 `scripts/export-latest-ccswitchmulti.ps1` 导出后追加 `RELEASE-METADATA.md`,因此必须在写完 metadata 后重新生成 `SHA256SUMS.txt`,否则 release 资产里的校验和会漏掉 metadata 文件。后续修改发布流程时要保持这个顺序:build/export -> metadata -> checksums -> upload。
15+
1216
## 2026-06-30 UI Portal Layer Ordering Audit
1317

1418
- Codex MultiRouter 向导相关的“点击后像卡死”不只来自单个 Dialog:全屏 provider panel 可到 `z-[140]`,但共享 Radix `SelectContent`/`PopoverContent`/`TooltipContent` 之前停在 `z-[100]``DropdownMenuContent` 甚至是 `z-50`,都会在向导上方打开 provider 表单时被面板遮住。

scripts/local-release-pipeline.ps1

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,22 @@ function Write-ReleaseMetadata {
8383
Set-Content -LiteralPath (Join-Path $Root "RELEASE-METADATA.md") -Value $metadata -Encoding UTF8
8484
}
8585

86+
# Recompute checksums after metadata is written.
87+
function Write-Checksums {
88+
param([string]$Root)
89+
90+
$lines = New-Object System.Collections.Generic.List[string]
91+
Get-ChildItem -LiteralPath $Root -Recurse -File |
92+
Where-Object { $_.Name -ne "SHA256SUMS.txt" } |
93+
ForEach-Object {
94+
$file = $_
95+
$hash = Get-FileHash -LiteralPath $file.FullName -Algorithm SHA256
96+
$relative = $file.FullName.Substring($Root.Length).TrimStart([char[]]@([char]92, [char]47))
97+
$lines.Add("$($hash.Hash) $relative")
98+
} | Out-Null
99+
Set-Content -LiteralPath (Join-Path $Root "SHA256SUMS.txt") -Value ($lines.ToArray() -join "`r`n") -Encoding UTF8
100+
}
101+
86102
$repoRoot = Get-RepoRoot
87103
$releaseRoot = if ([string]::IsNullOrWhiteSpace($ReleaseRoot)) {
88104
Get-DefaultReleaseRoot -RepoRoot $repoRoot
@@ -119,6 +135,7 @@ try {
119135

120136
Invoke-CheckedCommand -FilePath "powershell" -Arguments $exportArgs
121137
Write-ReleaseMetadata -Root $releaseRoot -RepoRoot $repoRoot -Reason $Reason
138+
Write-Checksums -Root $releaseRoot
122139

123140
Write-Log "Local release pipeline completed. Artifacts exported to: $releaseRoot"
124141
} finally {

0 commit comments

Comments
 (0)