Skip to content

armgit / strix

Public Imported from GitHub
0

Open-source AI penetration testing tool to find and fix your app’s vulnerabilities.

fix(tui): suppress stderr output in python renderer

0xallam960bb91790e1
diff --git a/strix/interface/tool_components/python_renderer.py b/strix/interface/tool_components/python_renderer.py
index 404e0ad1..c61f3df1 100644
--- a/strix/interface/tool_components/python_renderer.py
+++ b/strix/interface/tool_components/python_renderer.py
@@ -112,22 +112,13 @@ class PythonRenderer(BaseToolRenderer):
return
stdout = result.get("stdout", "")
- stderr = result.get("stderr", "")
-
stdout = cls._clean_output(stdout) if stdout else ""
- stderr = cls._clean_output(stderr) if stderr else ""
if stdout:
text.append("\n")
formatted_output = cls._format_output(stdout)
text.append_text(formatted_output)
- if stderr:
- text.append("\n")
- text.append(" stderr: ", style="bold #ef4444")
- formatted_stderr = cls._format_output(stderr)
- text.append_text(formatted_stderr)
-
@classmethod
def render(cls, tool_data: dict[str, Any]) -> Static:
args = tool_data.get("args", {})