Codex Provider CourseENPT

Runbook ยท Lesson 5

Operate Without Losing Threads

You can run profiles, list providers, and avoid destructive session operations.

RegistryProfileOrchestratorExecutorValidatorProof

Simple layer

Use `--ephemeral` for tests, never edit `~/.codex/sessions`, and check the session count before and after provider changes.

Technical layer

The setup began and ended with 444 JSONL session files. `codex doctor` still reports pre-existing rollout/thread DB discrepancies, so the safe practice is additive config plus explicit session-count proof.

Real command

find ~/.codex/sessions -type f -name '*.jsonl' | wc -l

Practice with feedback

What flag keeps smoke tests from persisting new sessions?

Local proof

SCOPE.md
LOOP-LOG.md
~/.codex/provider-registry.json
~/.codex/provider-*.config.toml