Skip to content

Keep Codex config writable for hook trust - #1

Draft
nickdichev wants to merge 2 commits into
mainfrom
fix/codex-writable-config
Draft

Keep Codex config writable for hook trust#1
nickdichev wants to merge 2 commits into
mainfrom
fix/codex-writable-config

Conversation

@nickdichev

Copy link
Copy Markdown
Owner

Summary

  • stop launching cdx with the Home Manager-generated named profile
  • keep ~/.codex/config.toml writable so Codex can persist hook and project trust
  • manage only the generated MCP server block during Home Manager activation
  • preserve all Codex-owned configuration outside the marked MCP block

Context

Home Manager writes ~/.codex/home-manager.config.toml as a symlink into the Nix store. When Codex is launched with --profile home-manager, hook approval attempts to persist trust through config/batchWrite to that immutable profile and fail.

This keeps MCP configuration declarative without making the active Codex configuration read-only.

Related upstream reports:

Verification

  • nix flake check --no-build
  • built the Peregrine Home Manager activation package using this checkout as the dotfiles input
  • evaluated the resulting cdx alias as codex --yolo
  • git diff --check

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