Skip to content

Commit c6f0e20

Browse files
fix: correct hardcoded True to stream variable in display_generating logic
Fixed critical bug where (not True and self.verbose) was always False, preventing display_generating from ever being called in one code path. Changed to (not stream and self.verbose) to match intended logic. 🤖 Generated with [Claude Code](https://claude.ai/code) Co-authored-by: Mervin Praison <MervinPraison@users.noreply.github.com>
1 parent 970ec4c commit c6f0e20

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • src/praisonai-agents/praisonaiagents/agent

src/praisonai-agents/praisonaiagents/agent/agent.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1070,7 +1070,7 @@ def _process_stream_response(self, messages, temperature, start_time, formatted_
10701070
tools=formatted_tools,
10711071
start_time=start_time,
10721072
console=self.console,
1073-
display_fn=display_generating if (not True and self.verbose) else None, # stream is True in this context
1073+
display_fn=display_generating if (not stream and self.verbose) else None, # stream is True in this context
10741074
reasoning_steps=reasoning_steps
10751075
)
10761076

0 commit comments

Comments
 (0)