@@ -307,6 +307,9 @@ fn test_ai_tab_e2e_handles_dirty_files_map() {
307307 println ! ( "lib_file_path_str: {}" , lib_file_path_str) ;
308308 println ! ( "readme_file_path_str: {}" , readme_file_path_str) ;
309309
310+ let working_logs = repo. current_working_logs ( ) ;
311+ println ! ( "dirty_files: {:?}" , working_logs. dirty_files) ;
312+
310313 // Before edit snapshot includes all dirty files (AI target plus unrelated human edits)
311314 run_ai_tab_checkpoint (
312315 & repo,
@@ -329,6 +332,9 @@ fn test_ai_tab_e2e_handles_dirty_files_map() {
329332 . to_string ( ) ;
330333 fs:: write ( & lib_file_path, & ai_content) . unwrap ( ) ;
331334
335+ let working_logs = repo. current_working_logs ( ) ;
336+ println ! ( "dirty_files: {:?}" , working_logs. dirty_files) ;
337+
332338 run_ai_tab_checkpoint (
333339 & repo,
334340 json ! ( {
@@ -344,17 +350,20 @@ fn test_ai_tab_e2e_handles_dirty_files_map() {
344350 } ) ,
345351 ) ;
346352
347- // Debug: Check working logs before commit
353+ // // Debug: Check working logs before commit
354+ // let working_logs = repo.current_working_logs();
355+ // if let Ok(checkpoints) = working_logs.read_all_checkpoints() {
356+ // println!("Checkpoints before commit: {}", checkpoints.len());
357+ // for (i, cp) in checkpoints.iter().enumerate() {
358+ // println!("Checkpoint {}: kind={:?}, entries={}", i, cp.kind, cp.entries.len());
359+ // for entry in &cp.entries {
360+ // println!(" File: {}, attributions={}", entry.file, entry.attributions.len());
361+ // }
362+ // }
363+ // }
364+
348365 let working_logs = repo. current_working_logs ( ) ;
349- if let Ok ( checkpoints) = working_logs. read_all_checkpoints ( ) {
350- println ! ( "Checkpoints before commit: {}" , checkpoints. len( ) ) ;
351- for ( i, cp) in checkpoints. iter ( ) . enumerate ( ) {
352- println ! ( "Checkpoint {}: kind={:?}, entries={}" , i, cp. kind, cp. entries. len( ) ) ;
353- for entry in & cp. entries {
354- println ! ( " File: {}, attributions={}" , entry. file, entry. attributions. len( ) ) ;
355- }
356- }
357- }
366+ println ! ( "dirty_files: {:?}" , working_logs. dirty_files) ;
358367
359368 repo. stage_all_and_commit ( "Record AI tab completion while other files dirty" ) . unwrap ( ) ;
360369
0 commit comments