Skip to content

Ignore local Codex runtime state - #5

Closed
likekangen wants to merge 1 commit into
Ingar30:mainfrom
likekangen:chore/ignore-codex-runtime-state
Closed

likekangen wants to merge 1 commit into
Ingar30:mainfrom
likekangen:chore/ignore-codex-runtime-state

Conversation

@likekangen

Copy link
Copy Markdown

Summary

  • Ignore local Codex/OpenAI CLI runtime state under .codex/
  • Keep the tracked project config .codex/config.toml

Validation

  • python -m unittest — PASS, 52 tests
  • python scripts/check_shareable_repo.py --include-untracked — PASS
  • python scripts/check_tracked_sensitive_names.py — PASS
  • git diff --check — PASS

Notes

This prevents local runtime files such as sessions, logs, SQLite state, temp plugin cache, and installation IDs from appearing as addable files while preserving the project-level Codex config.

@likekangen

Copy link
Copy Markdown
Author

Maintainer note: this PR is ready to merge from my side.

  • Mergeable: yes
  • Scope: .gitignore only
  • Purpose: ignore local .codex/ runtime state while preserving tracked .codex/config.toml
  • Local validation passed earlier:
    • python -m unittest — PASS, 52 tests
    • scripts/check_shareable_repo.py --include-untracked — PASS
    • scripts/check_tracked_sensitive_names.py — PASS
    • git diff --check — PASS

I attempted to merge, but the likekangen account does not have repository merge permission, so a maintainer needs to merge it.

@Ingar30

Ingar30 commented Sep 2, 2026

Copy link
Copy Markdown
Owner

Incorporated in #8, now merged into main: local .codex runtime state is ignored while .codex/config.toml remains tracked. Thank you for the repository-safety improvement.

@Ingar30 Ingar30 closed this Sep 2, 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.

2 participants