mirror of
https://github.com/openai/codex.git
synced 2026-10-26 18:38:47 +00:00
Persist thread artifacts in runtime store
This commit is contained in:
@@ -2759,6 +2759,15 @@ pub struct SessionMetaLine {
|
||||
pub meta: SessionMeta,
|
||||
#[serde(skip_serializing_if = "Option::is_none")]
|
||||
pub git: Option<GitInfo>,
|
||||
#[serde(default, skip_serializing_if = "HashMap::is_empty")]
|
||||
pub artifacts: HashMap<String, Option<ThreadArtifact>>,
|
||||
}
|
||||
|
||||
#[derive(Serialize, Deserialize, Debug, Clone, PartialEq, JsonSchema, TS)]
|
||||
pub struct ThreadArtifact {
|
||||
pub created_at: i64,
|
||||
pub artifact_type: String,
|
||||
pub payload: serde_json::Value,
|
||||
}
|
||||
|
||||
#[derive(Serialize, Deserialize, Debug, Clone, JsonSchema, TS)]
|
||||
|
||||
Reference in New Issue
Block a user