|
198 | 198 | - 这次 upstream 增量没有触碰父仓库 Wails DTO、frontend binding 或用户可见配置面。 |
199 | 199 | - 冲突点位于 Codex WebSocket executor,是 GetTokens live sessions 与 upstream TTFT usage reporting 的相邻逻辑;后续若该文件继续冲突,仍优先同时保留 live-session 生命周期事件和 upstream usage timing。 |
200 | 200 | - 父仓库仍有大量无关未提交改动,本次日常同步只应纳入 `docs-linhay/references/CLIProxyAPI` gitlink、此执行记录和 memory 写回。 |
| 201 | + |
| 202 | +## 2026-05-28 二次同步记录 |
| 203 | + |
| 204 | +### 上游增量 |
| 205 | + |
| 206 | +- `upstream/main` 从 `94c1b251` 前进到 `c65275fd`,最新 tag 到 `v7.1.28`。 |
| 207 | +- 新增 upstream 提交: |
| 208 | + 1. `d9c01a63 chore(models): remove deprecated GPT-5.x models from codex-free catalog` |
| 209 | + 2. `2bcc7622 feat(logging): improve file-backed source cleanup and directory recreation logic` |
| 210 | + 3. `65e760aa feat(usage): include cache tokens in total token calculation and add tests` |
| 211 | + 4. `71c185f6 feat(usage): add service tier tracking and defaults in usage reporting` |
| 212 | + 5. `b3d6d5d7 refactor: extract signature validation` |
| 213 | + 6. `c65275fd Merge pull request #3591 from sususu98/feat/signature-check-extraction` |
| 214 | + |
| 215 | +### 合并结果 |
| 216 | + |
| 217 | +- 合并前 fork 状态:`gettokens/sidecar` 干净,当前 HEAD 为 `fbcf3bb5 fix: harden usage reasoning and ttft reporting`。 |
| 218 | +- 冲突文件: |
| 219 | + - `internal/runtime/executor/helps/usage_helpers.go` |
| 220 | + - `internal/runtime/executor/helps/usage_helpers_test.go` |
| 221 | + - `internal/redisqueue/plugin_test.go` |
| 222 | +- 冲突处理: |
| 223 | + - `SetTranslatedReasoningEffort` 保留 fork 的“没有 translated reasoning 时不清空 context reasoning effort”修复,同时接入 upstream `service_tier` 提取与默认值。 |
| 224 | + - redisqueue payload 测试同时锁定 fork 的 `ttft_ms` 和 upstream 的 `service_tier` 字段。 |
| 225 | +- fork 合并提交:`e2ec7262 Merge upstream CLIProxyAPI main` |
| 226 | +- 远端推送:`origin/gettokens/sidecar` 已更新到 `e2ec7262`。 |
| 227 | +- 父仓库 sidecar gitlink 从 `fbcf3bb5` 前进到 `e2ec7262`。 |
| 228 | +- 本地 sidecar:已通过 `./scripts/ensure-sidecar.sh darwin arm64` 重建,meta 为 `e2ec7262:clean:01d5ae7eed81e5c11ea0cc01902a1361fc75b449a7aa3ee84c18fba0cc76a181:darwin:arm64`。 |
| 229 | + |
| 230 | +### 验证记录 |
| 231 | + |
| 232 | +合并前基线: |
| 233 | + |
| 234 | +- `go test ./internal/runtime/executor` |
| 235 | +- `go test ./sdk/api/handlers/openai` |
| 236 | +- `go test ./internal/gettokenshooks ./internal/gettokensrouting ./sdk/cliproxy/auth` |
| 237 | + |
| 238 | +冲突解决后局部验证: |
| 239 | + |
| 240 | +- `go test ./internal/runtime/executor/helps` |
| 241 | +- `go test ./internal/redisqueue` |
| 242 | +- `go test ./sdk/cliproxy/usage ./internal/logging` |
| 243 | + |
| 244 | +合并后验证: |
| 245 | + |
| 246 | +- `go test ./internal/runtime/executor` |
| 247 | +- `go test ./internal/translator/claude/openai/responses ./internal/translator/openai/openai/responses` |
| 248 | +- `go test ./sdk/api/handlers/openai` |
| 249 | +- `go test ./internal/gettokenshooks ./internal/gettokensrouting ./sdk/cliproxy/auth` |
| 250 | +- `go test ./...` |
| 251 | +- `git diff --check` |
| 252 | +- `./scripts/ensure-sidecar.sh darwin arm64` |
| 253 | + |
| 254 | +### 注意事项 |
| 255 | + |
| 256 | +- 这次同步没有新增父仓库 Wails DTO、frontend binding 或用户可见配置面。 |
| 257 | +- 后续若 upstream usage telemetry 继续调整,`reasoning_effort`、`service_tier`、`ttft_ms` 需要作为同一条 usage record contract 联合验证,不能只跑其中一个入口。 |
0 commit comments