@@ -10,22 +10,21 @@ use std::path::PathBuf;
10
10
use std:: str:: FromStr ;
11
11
use std:: time:: Duration ;
12
12
13
+ use crate :: config_types:: ReasoningEffort as ReasoningEffortConfig ;
14
+ use crate :: config_types:: ReasoningSummary as ReasoningSummaryConfig ;
13
15
use crate :: custom_prompts:: CustomPrompt ;
14
16
use crate :: mcp_protocol:: ConversationId ;
17
+ use crate :: message_history:: HistoryEntry ;
18
+ use crate :: models:: ResponseItem ;
19
+ use crate :: parse_command:: ParsedCommand ;
20
+ use crate :: plan_tool:: UpdatePlanArgs ;
15
21
use mcp_types:: CallToolResult ;
16
22
use mcp_types:: Tool as McpTool ;
17
23
use serde:: Deserialize ;
18
24
use serde:: Serialize ;
19
25
use serde_with:: serde_as;
20
26
use strum_macros:: Display ;
21
27
use ts_rs:: TS ;
22
- use uuid:: Uuid ;
23
- use crate :: config_types:: ReasoningEffort as ReasoningEffortConfig ;
24
- use crate :: config_types:: ReasoningSummary as ReasoningSummaryConfig ;
25
- use crate :: message_history:: HistoryEntry ;
26
- use crate :: models:: ResponseItem ;
27
- use crate :: parse_command:: ParsedCommand ;
28
- use crate :: plan_tool:: UpdatePlanArgs ;
29
28
30
29
/// Open/close tags for special user-input blocks. Used across crates to avoid
31
30
/// duplicated hardcoded strings.
@@ -931,11 +930,8 @@ pub struct ListCustomPromptsResponseEvent {
931
930
932
931
#[ derive( Debug , Default , Clone , Deserialize , Serialize ) ]
933
932
pub struct SessionConfiguredEvent {
934
- /// For backwards compatibility.
935
- pub session_id : Uuid ,
936
-
937
- /// Unique id for this conversation.
938
- pub conversation_id : ConversationId ,
933
+ /// Name left as session_id instead of conversation_id for backwards compatibility.
934
+ pub session_id : ConversationId ,
939
935
940
936
/// Tell the client what model is being queried.
941
937
pub model : String ,
@@ -1021,8 +1017,7 @@ mod tests {
1021
1017
let event = Event {
1022
1018
id : "1234" . to_string ( ) ,
1023
1019
msg : EventMsg :: SessionConfigured ( SessionConfiguredEvent {
1024
- session_id : conversation_id. 0 ,
1025
- conversation_id,
1020
+ session_id : conversation_id,
1026
1021
model : "codex-mini-latest" . to_string ( ) ,
1027
1022
history_log_id : 0 ,
1028
1023
history_entry_count : 0 ,
0 commit comments