You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Allow the user to continue a previously saved session/thread with the same current working directory by using a command like /session. This command can only be used before any message has been sent.
Incremental thread state is already persisted in ~/.codex/sessions/rollout-*.json but an alternative structure is necessary to store thread information.
A simple alternative could allow the user to continue the most recently saved thread state for the current working directory.
Reacted by Jeroen Boschman, Akshat Giri , Roland Gadinger and cvzakharchenko
The existing rollout files store the entire thread state at each generation step. The session.id field of each rollout is a randomly generated UUID. There is no explicit or reliable index of what threads exist or how they're related to a specific project. A new thread structure will help map project directories to rollouts so we can easily restore the latest rollout.
Thanks for the feedback! Please try the latest version of Codex CLI to see if this issue persists. If it does, we'd appreciate any further details or contributions to the codex-rs/ implementation.
Activity
tibo-openai commentedon Apr 17, 2025
Could you expand on
?
igor-gorohovsky commentedon Apr 18, 2025
I agree, I really miss the feature to return to the old session
scottleibrand commentedon Apr 19, 2025
#341 is also asking for this, and has some good design ideas.
#118 as well.
yuan-alex commentedon Apr 19, 2025
The existing rollout files store the entire thread state at each generation step. The
session.idfield of each rollout is a randomly generated UUID. There is no explicit or reliable index of what threads exist or how they're related to a specific project. A new thread structure will help map project directories to rollouts so we can easily restore the latest rollout.~/.codex/threads.json[ { "id": "thread_id", "cwd": "/path/to/project", "created_at": "2025-04-18T10:32:00Z", "updated_at": "2025-04-18T11:12:00Z", "first_prompt": "explain this codebase to me", "summary": "Codex Codebase Summary", "latest_rollout": "rollout-*.json" } ]codex-maintainers commentedon Aug 7, 2025
Thanks for the feedback! Please try the latest version of Codex CLI to see if this issue persists. If it does, we'd appreciate any further details or contributions to the
codex-rs/implementation.feat(storybook): cover active task navigation and removal (openai#146)