|
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. |
|---|
|
|
| navi/core/agent.py |
|---|
| navi/core/context_builder.py |
|---|
| tests/unit/core/test_task_notes_injection.py |
|---|