Open-source AI penetration testing tool to find and fix your app’s vulnerabilities.
Python agentsai-hackingai-penetration-testingai-pentestingai-securityartificial-intelligencebug-bountycode-qualityctf-toolscybersecuritycybersecurity-toolsethical-hackinghackingllm-securityoffensive-securitypenetration-testingpentesting-toolsred-teamingsecuritysecurity-automation
fix(tui): hide cost in stats panel when zero
0xallamcdf3cca3b7cf
diff --git a/strix/interface/utils.py b/strix/interface/utils.pyindex e5be17e3..e1882676 100644--- a/strix/interface/utils.py+++ b/strix/interface/utils.py@@ -381,9 +381,10 @@ def build_tui_stats_text(tracer: Any, agent_config: dict[str, Any] | None = Nonestats_text.append("Total Tokens: ", style="bold white")stats_text.append(format_token_count(total_tokens), style="dim white")- stats_text.append(" • ", style="dim white")- stats_text.append("Cost: ", style="bold white")- stats_text.append(f"${total_stats['cost']:.4f}", style="dim white")+ if total_stats["cost"] > 0:+ stats_text.append(" • ", style="dim white")+ stats_text.append("Cost: ", style="bold white")+ stats_text.append(f"${total_stats['cost']:.4f}", style="dim white")return stats_text