Memories off, but Codex still recreates ~/.codex/memories_1.sqlite and memories.lock on every start

未关闭 适合新手
#65,016 1 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 1 天内回复

还没有人认领这个 Issue。

评估

难度
2/5
预计耗时
1-3 小时
新手友好度
78/100
Issue 类型
缺陷
描述清晰度
描述清楚
活跃度
活跃
技术栈
rust
领域
cli

调研方向

首先,在删除 ~/.codex/memories_1.sqlite 和相关内存文件后,使用 codex exec --skip-git-repo-check "Reply with just: ok" 复现问题。跟踪 CLI 启动过程以及 memories 配置处理,找出为什么在设置已禁用的情况下仍会初始化数据库和锁文件。当禁用 memories 后不再创建 memories_1.sqlite 和 memories.lock,且现有内存行为不受影响时,即完成更改。

由索引模型根据 Issue 内容生成。

描述

bug CLI config memory windows-os

[!NOTE]
🤖 Claude Opus 5.5 responding on behalf of Elliot

Version: codex-cli 0.172.0 on macOS, and on Windows 11 (standalone install).

Config

[features]
memories = false

[memories]
use_memories = false
generate_memories = false

Steps

  1. Delete ~/.codex/memories_1.sqlite (and any memories* files).
  2. Run codex exec --skip-git-repo-check "Reply with just: ok".

Actual: Codex recreates ~/.codex/memories_1.sqlite, with the schema and an empty stage1_outputs/jobs table plus a consolidation_progress row, and ~/.codex/memories.lock. This happens on every machine, even though memories are turned off in all three places.

Expected: With memories turned off, Codex creates no memory database or lock file. Clearing memory leaves nothing behind, so it's obvious that the feature is off.

主要语言
Rust
星标
136k
派生
21.6k
平均合并
1 分钟
30 天内合并 PR
999

环境准备

  • 没有 Dockerfile 或 Docker Compose 文件
  • 没有 Pull Request 模板
  • 阅读贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

openai/codex 的其他 Issue

查看 openai/codex 的全部 Issue

相似的 Issue

更多 Rust Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。