history Command for Session Navigation
What variant of Codex are you using?
CLI
What feature would you like to see?
When a Codex session becomes long, it's difficult to find a previous question and its corresponding answer because users have to scroll through a large amount of conversation history.
I would like a /history command that lists all prompts in the current session.
Example:
/history
- Explain BatteryDiffData
- Why is collectAsStateWithLifecycle needed?
- Segment Tree lazy propagation
- Room migration best practices
- Android Settings SearchIndexProvider
...
Selecting an item would jump directly to that prompt and its corresponding assistant response.
Example:
/history
Select: 3
Output:
User:
Segment Tree lazy propagation
Assistant:
...
Benefits:
Quickly revisit previous discussions without scrolling.
Makes long coding sessions much easier to navigate.
Similar to shell history, but for prompts within the current session.
Lightweight and CLI-friendly compared to a full conversation search.
Possible future enhancements:
/history battery
/history room
/history --grep migration
Fuzzy search within the current session.
Display timestamps and message numbers.
Additional information
_No response_
1 Comment
Potential duplicates detected. Please review them and close your issue if it is a duplicate.
Powered by Codex Action