shared active tools: Agent writes, TUI reads directly
Move active tool tracking from TUI message-passing to shared Arc<RwLock> state. Agent pushes on dispatch, removes on apply_tool_result. TUI reads during render. Background tasks show as active until drained at next turn start. Co-Developed-By: Kent Overstreet <kent.overstreet@linux.dev>
This commit is contained in:
parent
d25033b9f4
commit
474b66c834
6 changed files with 62 additions and 49 deletions
|
|
@ -168,7 +168,7 @@ impl App {
|
|||
)));
|
||||
lines.push(Line::raw(format!(" Reasoning: {}", self.reasoning_effort)));
|
||||
lines.push(Line::raw(format!(" Running processes: {}", self.running_processes)));
|
||||
lines.push(Line::raw(format!(" Active tools: {}", self.active_tools.len())));
|
||||
lines.push(Line::raw(format!(" Active tools: {}", self.active_tools.read().unwrap().len())));
|
||||
|
||||
let block = Block::default()
|
||||
.title_top(Line::from(SCREEN_LEGEND).left_aligned())
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue