Wire archive trigger into agent after compression
After _do_compress_and_save finishes, if the total persisted message count
(db_next_sequence) exceeds session_messages_window (default 1000), the agent
now calls archive_old_messages() to move older rows into
session_messages_archive.

Adds session_messages_window config and unit tests for archive SQL.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
1 parent c7c0479 commit 6cea761ae6c2debfc154e54341bd6fceb045e6fa
@Eugene Sukhodolskiy Eugene Sukhodolskiy authored on 25 May
Showing 3 changed files
View
navi/config.py
View
navi/core/agent.py
View
tests/unit/core/test_pg_session_store.py 0 → 100644