You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
println!("🔍 Testing /editor command interaction... | Description: Test that the /editor command successfully launches the integrated editor interface");
println!("🔍 Testing /editor command error handling ... | Description: Tests the /editor <non_exixt_filepath> command error handling when attempting to open a nonexistent file");
println!("🔍 Testing /editor <filepath> command... | Description: Tests the /editor <filepath> command to load an existing file into the editor and verify content loading");
289
+
290
+
let home_dir = std::env::var("HOME").unwrap_or_else(|_| "/tmp".to_string());
291
+
let test_file_path = format!("{}/test_editor_file.txt", home_dir);
292
+
293
+
// Create a test file
294
+
std::fs::write(&test_file_path,"Hello from test file\nThis is a test file for editor command.")?;
295
+
println!("✅ Created test file at {}", test_file_path);
println!("🔍 Testing /compact --truncate-large-messages true command... | Description: Test that the /compact —truncate-large-messages truncates large messages");
println!("🔍 Testing /compact --truncate-large-messages true --max-message-length command... | Description: Test /compact --truncate-large-messages true --max-message-length <MAX_MESSAGE_LENGTH> command compacts the conversation by summarizing it to free up context space, truncating large messages to a maximum of provided <MAX_MESSAGE_LENGTH>. ");
println!("🔍 Testing /compact --truncate-large-messages false --max-message-length command... | Description: Test /compact --truncate-large-messages false --max-message-length <MAX_MESSAGE_LENGTH> command compacts the conversation by summarizing it to free up context space, but keeps large messages intact (no truncation) despite the max-message-length setting.");
println!("🔍 Testing /compact --max-message-length command... | Description: Tests the /compact --max-message-length <MAX_MESSAGE_LENGTH> command with invalid subcommand to verify proper error handling and help display");
println!("\n🔍 Testing /compact command... | Description: Test /compact --messages-to-exclude <MESSAGES_TO_EXCLUDE> command compacts the conversation by summarizing it to free up context space, excluding provided number of user-assistant message pair from the summarization process.");
0 commit comments