| 1116 | } |
| 1117 | |
| 1118 | fn make_input( |
| 1119 | model_id: &str, |
| 1120 | custom_prompt: Option<String>, |
| 1121 | plugin_context: Option<Vec<String>>, |
| 1122 | ) -> CompactionInput { |
| 1123 | CompactionInput { |
| 1124 | parent_id: "msg_parent".to_string(), |
| 1125 | session_id: "ses_test".to_string(), |
| 1126 | messages: vec![Message::user("existing content")], |
| 1127 | messages_with_parts: vec![], |
| 1128 | abort: tokio_util::sync::CancellationToken::new(), |
| 1129 | auto: false, |
| 1130 | model: LlmModelRef { |
| 1131 | model_id: model_id.to_string(), |
| 1132 | provider_id: "mock".to_string(), |
| 1133 | }, |
| 1134 | custom_prompt, |
| 1135 | plugin_context, |
| 1136 | cwd: Some("/tmp".to_string()), |
| 1137 | root: Some("/tmp".to_string()), |
| 1138 | variant: None, |
| 1139 | original_agent: Some("general".to_string()), |
| 1140 | } |
| 1141 | } |
| 1142 | |
| 1143 | #[test] |
| 1144 | fn test_compaction_config_default() { |