Skip to main content

Module session_mgmt

Module session_mgmt 

Source
Expand description

Session-lifecycle commands: archive, delete, and unarchive a saved session.

These wrap codex archive, codex delete, and codex unarchive. Each targets a saved session by id (UUID) or name; UUIDs take precedence when the value parses as one.

The underlying subcommands inherit a large shared option block from the CLI (model, image, sandbox, remote, and so on), almost none of which is meaningful for a lifecycle operation. These builders expose only the useful surface: the session target, the -c / --enable / --disable config passthrough, and (for delete) --force.

Structsยง

ArchiveCommand
Archive a saved session (codex archive <SESSION>).
DeleteCommand
Permanently delete a saved session (codex delete <SESSION>).
UnarchiveCommand
Unarchive a previously archived session (codex unarchive <SESSION>).