mirror of
https://github.com/GH05TCREW/pentestagent.git
synced 2026-03-07 22:33:38 +00:00
fix(tui): Avoid warning on text editor
This commit is contained in:
@@ -2226,7 +2226,8 @@ Be concise. Use the actual data from notes."""
|
||||
elif cmd_lower == "/tools":
|
||||
# Open the interactive tools browser (split-pane).
|
||||
try:
|
||||
await self.push_screen(ToolsScreen(tools=self.agent.get_tools()))
|
||||
if self.agent:
|
||||
await self.push_screen(ToolsScreen(tools=self.agent.get_tools()))
|
||||
except Exception:
|
||||
# Fallback: list tools in the system area if UI push fails
|
||||
from ..runtime.runtime import detect_environment
|
||||
|
||||
Reference in New Issue
Block a user