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: Skip clipboard copy for whitespace-only selections

0xallam40cb7054948b
diff --git a/strix/interface/tui.py b/strix/interface/tui.py
index e345f0c2..49a04894 100644
--- a/strix/interface/tui.py
+++ b/strix/interface/tui.py
@@ -2032,7 +2032,7 @@ class StrixTUIApp(App): # type: ignore[misc]
if self.screen.selections:
selected = self.screen.get_selected_text()
self.screen.clear_selection()
- if selected:
+ if selected and selected.strip():
cleaned = self._clean_copied_text(selected)
self.copy_to_clipboard(cleaned if cleaned.strip() else selected)
copied = True