Skip to content

Commit 18bd829

Browse files
Copilot0xrinegade
andcommitted
Add comprehensive UI testing and visual screenshots for agent chat
Co-authored-by: 0xrinegade <[email protected]>
1 parent 452ce73 commit 18bd829

File tree

3 files changed

+340
-17
lines changed

3 files changed

+340
-17
lines changed

src/clparse.rs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -392,6 +392,12 @@ pub fn parse_command_line() -> clap::ArgMatches {
392392
.action(ArgAction::SetTrue)
393393
.help("Enable debug mode for chat interface")
394394
)
395+
.arg(
396+
Arg::new("test")
397+
.long("test")
398+
.action(ArgAction::SetTrue)
399+
.help("Run comprehensive UI tests and show screenshots")
400+
)
395401
)
396402
.subcommand(
397403
Command::new("svm")

src/main.rs

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -789,8 +789,14 @@ async fn main() -> Result<(), Box<dyn std::error::Error>> {
789789

790790
// Handle chat command early to avoid config loading that might trigger self-repair
791791
if sub_command == "chat" {
792-
return crate::utils::agent_chat::run_agent_chat().await
793-
.map_err(|e| e.into());
792+
// Check if test mode is requested
793+
if sub_matches.get_flag("test") {
794+
return crate::utils::agent_chat::run_chat_ui_tests().await
795+
.map_err(|e| e.into());
796+
} else {
797+
return crate::utils::agent_chat::run_agent_chat().await
798+
.map_err(|e| e.into());
799+
}
794800
}
795801

796802
// Handle AI queries early to avoid config loading

0 commit comments

Comments
 (0)