mirror of
https://github.com/GH05TCREW/pentestagent.git
synced 2026-03-07 06:14:08 +00:00
fix(notes): Notes were not properly loading at the beginning.
For correct loading with get_all_notes() function.
This commit is contained in:
@@ -1486,6 +1486,10 @@ class PentestAgentTUI(App):
|
||||
notify("warning", f"TUI: failed to register notifier callback: {e}")
|
||||
except Exception as ne:
|
||||
logging.getLogger(__name__).exception("Failed to notify operator about notifier registration failure: %s", ne)
|
||||
|
||||
#Added, because the _notes variable is not properly loaded at the beginning and the notes.json is recreated unless you do a /notes command explicitely.
|
||||
from ..tools.notes import get_all_notes
|
||||
await get_all_notes()
|
||||
|
||||
# Call the textual worker - decorator returns a Worker, not a coroutine
|
||||
_ = cast(Any, self._initialize_agent())
|
||||
|
||||
Reference in New Issue
Block a user