save session metadata

This commit is contained in:
Ryan Ragona
2025-04-26 14:25:26 -07:00
parent e782378176
commit 96d8d2a37a
15 changed files with 211 additions and 26 deletions

View File

@@ -1,7 +1,12 @@
use clap::Parser;
use serde::{Deserialize, Serialize};
use std::path::PathBuf;
#[derive(Parser, Debug)]
/// Command-line interface for the non-interactive `codex-exec` agent.
///
/// The struct needs to be serialisable so the full invocation can be stored
/// in the on-disk session `meta.json` for later introspection.
#[derive(Parser, Debug, Clone, Serialize, Deserialize)]
#[command(version)]
pub struct Cli {
/// Optional image(s) to attach to the initial prompt.