Use codex-history-manager when the task is about local Codex history, not general ChatGPT or web chat history.
Codex stores local history in two places:
~/.codex/state_5.sqlite for thread metadata~/.codex/sessions/.../rollout-*.jsonl and ~/.codex/archived_sessions/... for event logsThe bundled CLI is the source of truth for reading and mutating that state:
./codex-history-manager ...search.show-thread or handoff.export-thread.clone-thread over move-thread.--apply.plan-dangerous-edit, show the warning and change list to the user, get explicit approval in chat, then run apply-dangerous-edit. ./codex-history-manager search --query "payments"
./codex-history-manager show-thread --id
./codex-history-manager export-thread --id
./codex-history-manager handoff --id
./codex-history-manager plan-dangerous-edit --id
./codex-history-manager clone-thread --id
./codex-history-manager move-workspace --cwd /abs/src --to-cwd /abs/dst --dry-run
./codex-history-manager clone-workspace --cwd /abs/src --to-cwd /abs/dst --dry-run
./codex-history-manager move-thread --id
./codex-history-manager change-provider --id
./codex-history-manager change-provider-workspace --cwd /abs/path --provider openai1 --dry-run
./codex-history-manager change-provider-all --provider openai1 --dry-run
--dry-run.--apply after reviewing the plan.state_5.sqlite or rollout files if the CLI can do the job.apply-dangerous-edit.Read these references only when needed:
共 1 个版本