Support long-running agent turns

This commit is contained in:
Georg Bauer
2026-07-26 11:07:28 +02:00
parent 2a14b93335
commit 3c75b8f6c1
14 changed files with 432 additions and 90 deletions

View File

@@ -49,6 +49,7 @@ impl App {
Ok(project) => {
self.remember_project(project.id);
self.selected_session = None;
self.system_prompt_seen_at = 0;
self.pending_project_path = None;
self.project_name_input.clear();
self.error = None;
@@ -74,6 +75,8 @@ impl App {
self.selected_session = None;
self.conversation.clear();
self.composer.clear();
self.queued_inputs.clear();
self.system_prompt_seen_at = 0;
self.context_used = 0;
self.context_limit = self.config.generation.context_tokens.max(0) as u32;
self.tokens_per_second = None;
@@ -84,6 +87,8 @@ impl App {
if self.drafts.remove(&project_id).is_some() && self.draft_selected(project_id) {
self.conversation.clear();
self.composer.clear();
self.queued_inputs.clear();
self.system_prompt_seen_at = 0;
self.context_used = 0;
self.tokens_per_second = None;
}