Skip to content

[CODEX-SYNC] deferred 4 Codex

Quick fix

Upgrade cc-switch to v3.20.3 to fix Windows session files permanently deferred when mtime does not change.

Error output
[CODEX-SYNC] 同步完成: 导入 0 条, 跳过 0 条, deferred 4 个, 扫描 87 个文件
English translation

[CODEX-SYNC] Sync complete: imported 0 entries, skipped 0 entries, deferred 4, scanned 87 files

On Windows, Codex session files being written may not continuously update mtime. The synchronizer records the mtime and offset before a file is finished; if mtime remains unchanged after completion, later runs treat it as unchanged and skip it, permanently preventing deferred files and subsequent usage from being imported.

This is not triggered by file size or model name. The fixed version uses a persistent byte cursor and determines file changes from both mtime and file size.

  1. Upgrade cc-switch to v3.20.3.

  2. After upgrading, wait for Codex usage sync to rescan the previously stuck rollout session files; the file cursor has been verified to catch up and restore missed usage.

ToolCodex
Versionv3.19.1(受影响,v3.20.3 已修复)
PlatformsWindows

(No FAQ yet)

This is an unofficial community wiki with no affiliation to the cc-switch authors or the project itself. Its content is compiled from the project's public GitHub issues. This site distributes no software.