This commit is contained in:
Gabriel Peal
2025-09-08 21:16:11 -07:00
parent 79cbd2ab1b
commit bc7ef54c72
7 changed files with 166 additions and 20 deletions
+17
View File
@@ -91,6 +91,11 @@ pub enum ClientRequest {
request_id: RequestId,
params: ResumeConversationParams,
},
DeleteConversation {
#[serde(rename = "id")]
request_id: RequestId,
params: DeleteConversationParams,
},
SendUserMessage {
#[serde(rename = "id")]
request_id: RequestId,
@@ -214,6 +219,18 @@ pub struct ResumeConversationResponse {
pub initial_messages: Option<Vec<EventMsg>>,
}
#[derive(Serialize, Deserialize, Debug, Clone, PartialEq, TS)]
#[serde(rename_all = "camelCase")]
pub struct DeleteConversationParams {
pub conversation_id: ConversationId,
#[serde(skip_serializing_if = "Option::is_none")]
pub rollout_path: Option<PathBuf>,
}
#[derive(Serialize, Deserialize, Debug, Clone, PartialEq, TS)]
#[serde(rename_all = "camelCase")]
pub struct DeleteConversationResponse {}
#[derive(Serialize, Deserialize, Debug, Clone, PartialEq, Default, TS)]
#[serde(rename_all = "camelCase")]
pub struct ListConversationsParams {
+5 -1
View File
@@ -163,7 +163,11 @@ pub enum Op {
/// to generate a summary which will be returned as an AgentMessage event.
Compact,
/// Request to shut down codex instance.
Shutdown,
Shutdown {
/// Whether to delete the rollout file after the session shuts down.
#[serde(default)]
delete_rollout: bool,
},
}
/// Determines the conditions under which the user is consulted to approve