Feature Request: Non-interactive session listing
What feature would you like to see?
Feature Request: Non-interactive session listing
codex resume already provides an interactive TUI to list and select existing sessions.codex exec resume is non-interactive and only resumes a session when an explicit identifier is provided (e.g. a session ID or --last).
There is currently no non-interactive way to enumerate sessions and obtain their IDs, which makes scripting and automation difficult.
Add a listing mode to codex exec resume. Alternatively, this could live on codex resume or as a top-level codex command. For example:
codex exec resume --list
This would be a purely additive, introspection-only feature:
- existing cwd scoping behavior remains unchanged
--allbypasses that scoping- no changes to session lifecycle or resume semantics
This provides a non-interactive counterpart to the existing TUI and enables programmatic discovery of sessions for use with codex exec resume.
Since --json already exists, this would also be a natural place to expose richer session metadata (e.g. model, token usage, effective config, cwd, branch, timestamps) in machine-readable form.
Additional information
_No response_
This issue has 1 comment on GitHub. Read the full discussion on GitHub ↗