fix: slim down token usage

This commit is contained in:
eric
2026-04-04 12:37:50 +02:00
parent 97f329c825
commit 1240ab946b
55 changed files with 6799 additions and 2333 deletions

View File

@@ -18,6 +18,7 @@ pub fn advance(
let standards_md = toon::read_markdown(&config.standards_file)?;
state.phase = ControllerPhase::Planning;
state.clear_stop_reason();
state.planning_session.transcript.push(PlanningTurn {
role: "user".to_string(),
content: latest_user_input.to_string(),
@@ -62,6 +63,7 @@ pub fn advance(
toon::write_plan(&config.plan_file, &plan)?;
state.phase = ControllerPhase::Executing;
state.clear_stop_reason();
state.goal_revision += 1;
state.goal_status = crate::model::GoalStatus::InProgress;
state.replan_required = false;