remove redundant 'if'

This commit is contained in:
Jochen
2025-11-27 13:34:54 +11:00
parent 99125fc39e
commit 9f6592efc2

View File

@@ -1743,8 +1743,7 @@ async fn run_autonomous(
loop {
let turn_start_time = Instant::now();
let turn_start_tokens = agent.get_context_window().used_tokens;
// Skip player turn if it's the first turn and implementation files exist
if !(turn == 1 && skip_first_player) {
output.print(&format!(
"\n=== TURN {}/{} - PLAYER MODE ===",
turn, max_turns
@@ -1938,7 +1937,6 @@ async fn run_autonomous(
// Give some time for file operations to complete
tokio::time::sleep(tokio::time::Duration::from_millis(500)).await;
}
// Create a new agent instance for coach mode to ensure fresh context
// Use the same config with overrides that was passed to the player agent