mirror of
https://github.com/openai/codex.git
synced 2026-05-04 21:32:21 +03:00
save session metadata
This commit is contained in:
@@ -24,3 +24,6 @@ tokio = { version = "1", features = [
|
||||
] }
|
||||
tracing = { version = "0.1.41", features = ["log"] }
|
||||
tracing-subscriber = { version = "0.3.19", features = ["env-filter"] }
|
||||
|
||||
# For serialising the `Cli` struct into the on-disk session metadata.
|
||||
serde = { version = "1.0", features = ["derive"] }
|
||||
|
||||
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user