codex-model-change 1.0.0 → 1.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/cx.py +2 -2
  2. package/package.json +2 -2
package/cx.py CHANGED
@@ -327,8 +327,8 @@ def cmd_fix_all():
327
327
  todo = []
328
328
  for tid, m, p, rp in rows:
329
329
  needs_model = (m != model or p != provider)
330
- needs_sanitize = (provider == "openai" and rp and os.path.exists(rp)
331
- and "rs_ocx_" in open(rp, encoding="utf-8", errors="ignore").read(2_000_000))
330
+ # 清洗判断不能只扫文件前缀:脏条目可能埋在大会话深处,只要目标是 openai 就全量清洗(幂等)
331
+ needs_sanitize = (provider == "openai" and rp and os.path.exists(rp))
332
332
  if needs_model or needs_sanitize:
333
333
  todo.append((tid, m, p, rp, needs_model))
334
334
  if not todo:
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "codex-model-change",
3
- "version": "1.0.0",
3
+ "version": "1.0.1",
4
4
  "description": "Switch OpenAI Codex (CLI / desktop app) between DeepSeek direct-connect and native ChatGPT. No proxy, no daemon.",
5
5
  "bin": {
6
6
  "cx": "bin/cx.js"
@@ -34,4 +34,4 @@
34
34
  "bugs": {
35
35
  "url": "https://github.com/git-sgg/codex-model-change/issues"
36
36
  }
37
- }
37
+ }