mirror of
https://github.com/GH05TCREW/pentestagent.git
synced 2026-03-07 14:23:20 +00:00
WIP: save local edits (tui.py, .gitignore)
This commit is contained in:
3
.gitignore
vendored
3
.gitignore
vendored
@@ -90,6 +90,9 @@ tests/tmp/
|
||||
tests/*.local.py
|
||||
scripts/test_*.sh
|
||||
*.test.sh
|
||||
# Ignore all test_*.py scripts in tests/
|
||||
tests/test_*.py
|
||||
*.test.sh
|
||||
|
||||
# Workspaces directory (user data should not be committed)
|
||||
/workspaces/
|
||||
|
||||
@@ -1919,8 +1919,8 @@ Be concise. Use the actual data from notes."""
|
||||
|
||||
# Use assist mode by default
|
||||
if self.agent and not self._is_running:
|
||||
# Schedule assist run and keep task handle
|
||||
self._current_worker = asyncio.create_task(self._run_assist(message))
|
||||
# Schedule assist run and keep task handle (do not wrap in asyncio.create_task; @work returns a Worker)
|
||||
self._current_worker = self._run_assist(message)
|
||||
|
||||
async def _handle_command(self, cmd: str) -> None:
|
||||
"""Handle slash commands"""
|
||||
@@ -2179,7 +2179,8 @@ Be concise. Use the actual data from notes."""
|
||||
|
||||
if self.agent and not self._is_running:
|
||||
# Schedule agent mode and keep task handle
|
||||
self._current_worker = asyncio.create_task(self._run_agent_mode(task))
|
||||
# Schedule agent run and keep task handle (do not wrap in asyncio.create_task; @work returns a Worker)
|
||||
self._current_worker = self._run_agent_mode(task)
|
||||
|
||||
async def _parse_crew_command(self, cmd: str) -> None:
|
||||
"""Parse and execute /crew command"""
|
||||
@@ -2208,7 +2209,8 @@ Be concise. Use the actual data from notes."""
|
||||
self._add_user(f"/crew {target}")
|
||||
self._show_sidebar()
|
||||
# Schedule crew mode and keep handle
|
||||
self._current_worker = asyncio.create_task(self._run_crew_mode(target))
|
||||
# Schedule crew run and keep task handle (do not wrap in asyncio.create_task; @work returns a Worker)
|
||||
self._current_worker = self._run_crew_mode(target)
|
||||
|
||||
def _show_sidebar(self) -> None:
|
||||
"""Show the sidebar for crew mode."""
|
||||
|
||||
Reference in New Issue
Block a user