remove redundant 'if'
This commit is contained in:
@@ -1743,8 +1743,7 @@ async fn run_autonomous(
|
|||||||
loop {
|
loop {
|
||||||
let turn_start_time = Instant::now();
|
let turn_start_time = Instant::now();
|
||||||
let turn_start_tokens = agent.get_context_window().used_tokens;
|
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!(
|
output.print(&format!(
|
||||||
"\n=== TURN {}/{} - PLAYER MODE ===",
|
"\n=== TURN {}/{} - PLAYER MODE ===",
|
||||||
turn, max_turns
|
turn, max_turns
|
||||||
@@ -1938,7 +1937,6 @@ async fn run_autonomous(
|
|||||||
|
|
||||||
// Give some time for file operations to complete
|
// Give some time for file operations to complete
|
||||||
tokio::time::sleep(tokio::time::Duration::from_millis(500)).await;
|
tokio::time::sleep(tokio::time::Duration::from_millis(500)).await;
|
||||||
}
|
|
||||||
|
|
||||||
// Create a new agent instance for coach mode to ensure fresh context
|
// 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
|
// Use the same config with overrides that was passed to the player agent
|
||||||
|
|||||||
Reference in New Issue
Block a user