mirror of
https://github.com/openai/codex.git
synced 2026-11-15 21:50:46 +00:00
[WIP] Name conversations
This commit is contained in:
@@ -3407,6 +3407,7 @@ async fn read_summary_from_rollout(
|
||||
timestamp,
|
||||
path: path.to_path_buf(),
|
||||
preview: String::new(),
|
||||
name: session_meta.name.clone(),
|
||||
model_provider,
|
||||
cwd: session_meta.cwd,
|
||||
cli_version: session_meta.cli_version,
|
||||
@@ -3452,6 +3453,7 @@ fn extract_conversation_summary(
|
||||
timestamp,
|
||||
path,
|
||||
preview: preview.to_string(),
|
||||
name: session_meta.name.clone(),
|
||||
model_provider,
|
||||
cwd: session_meta.cwd.clone(),
|
||||
cli_version: session_meta.cli_version.clone(),
|
||||
@@ -3481,6 +3483,7 @@ fn summary_to_thread(summary: ConversationSummary) -> Thread {
|
||||
conversation_id,
|
||||
path,
|
||||
preview,
|
||||
name,
|
||||
timestamp,
|
||||
model_provider,
|
||||
cwd,
|
||||
@@ -3499,6 +3502,7 @@ fn summary_to_thread(summary: ConversationSummary) -> Thread {
|
||||
Thread {
|
||||
id: conversation_id.to_string(),
|
||||
preview,
|
||||
name,
|
||||
model_provider,
|
||||
created_at: created_at.map(|dt| dt.timestamp()).unwrap_or(0),
|
||||
path,
|
||||
@@ -3564,6 +3568,7 @@ mod tests {
|
||||
timestamp,
|
||||
path,
|
||||
preview: "Count to 5".to_string(),
|
||||
name: None,
|
||||
model_provider: "test-provider".to_string(),
|
||||
cwd: PathBuf::from("/"),
|
||||
cli_version: "0.0.0".to_string(),
|
||||
@@ -3612,6 +3617,7 @@ mod tests {
|
||||
timestamp: Some(timestamp),
|
||||
path: path.clone(),
|
||||
preview: String::new(),
|
||||
name: None,
|
||||
model_provider: "fallback".to_string(),
|
||||
cwd: PathBuf::new(),
|
||||
cli_version: String::new(),
|
||||
|
||||
@@ -47,6 +47,7 @@ pub fn create_fake_rollout(
|
||||
originator: "codex".to_string(),
|
||||
cli_version: "0.0.0".to_string(),
|
||||
instructions: None,
|
||||
name: None,
|
||||
source: SessionSource::Cli,
|
||||
model_provider: model_provider.map(str::to_string),
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user