feat: add hide_agent_reasoning config option (#1181)

This PR introduces a `hide_agent_reasoning` config option (that defaults
to `false`) that users can enable to make the output less verbose by
suppressing reasoning output.

To test, verified that this includes agent reasoning in the output:

```
echo hello | just exec
```

whereas this does not:

```
echo hello | just exec --config hide_agent_reasoning=false
```
This commit is contained in:
Michael Bolin
2025-05-30 23:14:56 -07:00
committed by GitHub
parent 4f3d294762
commit e81327e5f4
5 changed files with 45 additions and 11 deletions

View File

@@ -239,9 +239,11 @@ impl ChatWidget<'_> {
self.request_redraw();
}
EventMsg::AgentReasoning(AgentReasoningEvent { text }) => {
self.conversation_history
.add_agent_reasoning(&self.config, text);
self.request_redraw();
if !self.config.hide_agent_reasoning {
self.conversation_history
.add_agent_reasoning(&self.config, text);
self.request_redraw();
}
}
EventMsg::TaskStarted => {
self.bottom_pane.set_task_running(true);