refactor: streamline agent turn handling and background review process
This commit is contained in:
@@ -61,17 +61,6 @@ pub fn spawn_agent_turn(state: &mut AppStateRest, text: String) {
|
||||
|
||||
info!("delegating agent turn to infrastructure engine (model: {})", model);
|
||||
|
||||
let edit_count = state
|
||||
.session_runtime
|
||||
.as_ref()
|
||||
.map(|rt| rt.edit_count)
|
||||
.unwrap_or(0);
|
||||
let consecutive_empty_reviews = state
|
||||
.session_runtime
|
||||
.as_ref()
|
||||
.map(|rt| rt.consecutive_empty_reviews)
|
||||
.unwrap_or(0);
|
||||
|
||||
let params = AgentTurnParams {
|
||||
messages,
|
||||
session_dir,
|
||||
@@ -82,8 +71,6 @@ pub fn spawn_agent_turn(state: &mut AppStateRest, text: String) {
|
||||
api_key,
|
||||
model,
|
||||
api_base,
|
||||
edit_count,
|
||||
consecutive_empty_reviews,
|
||||
};
|
||||
|
||||
backend_spawn_agent_turn(params);
|
||||
|
||||
Reference in New Issue
Block a user