context: task-note messages survive build()'s system filter
E2E caught a real delivery bug: the completion note was drained and
persisted (agent.task_notes_drained logged) but build() filtered out all
system-role history from session.context, so the LLM never saw it — the
agent could only get detached results via tasks check. Notes now carry
metadata source=task_note (kept by build) and is_display=False (clients
already show live task_update events). Verified live: agent reads the
note verbatim without calling any tool.
1 parent ab883b9 commit 921cd33409763d5c63ea285a5b0e9eefbc7870f5
@Eugene Sukhodolskiy Eugene Sukhodolskiy authored 6 hours ago
Showing 3 changed files
View
navi/core/agent.py
View
navi/core/context_builder.py
View
tests/unit/core/test_task_notes_injection.py