Skip to content

[codex] harden desktop persistence and model catalog - #1

Draft
xiaokaige1130-maker wants to merge 3 commits into
mainfrom
codex/desktop-persistence-memory
Draft

[codex] harden desktop persistence and model catalog#1
xiaokaige1130-maker wants to merge 3 commits into
mainfrom
codex/desktop-persistence-memory

Conversation

@xiaokaige1130-maker

@xiaokaige1130-maker xiaokaige1130-maker commented Jun 8, 2026

Copy link
Copy Markdown
Owner

What changed

  • fix runaway Codex global-state backups and retain only the newest 20
  • use atomic state writes and owner-aware workspace locks
  • move full project refresh out of the systemd state-change service
  • remove the redundant 60-second startup polling loop
  • add a durable GPT-5.6 custom model catalog feature for rebuilds
  • point the updater submodule at the maintained fork commit with npm reliability fixes

Root cause

registerWorkspaceRoot dropped its options argument, so refresh operations created a loose global-state backup for every remembered project. Frequent refresh and watcher runs accumulated more than 22,000 files.

Impact

The desktop now starts with a lightweight synchronous workspace restore, refreshes indexes in the background, and relies on the systemd path watcher for later state changes. Rebuilds retain the GPT-5.6 model allowlist without embedding provider credentials.

Validation

  • node --test scripts/project-memory.test.js linux-features/custom-model-catalog/test.js (8 passed)
  • node --check scripts/project-memory.js
  • bash -n scripts/*.sh
  • cargo test -p codex-update-manager codex_cli::tests --no-fail-fast (18 passed in the submodule)
  • Linux/Copilot patch suite (199 passed)
  • cold desktop restart with Electron, app-server, and port 5175 healthy

@xiaokaige1130-maker xiaokaige1130-maker changed the title [codex] add desktop project memory persistence [codex] harden desktop persistence and model catalog Jul 10, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant