Summary
ACP sessions never receive document RAG configuration because with_document_config() is not called in src/acp.rs.
Root Cause
DocumentConfig::default() has rag_enabled = false. Since src/acp.rs omits agent.with_document_config(config.memory.documents.clone()), document RAG injection is silently disabled for all ACP sessions regardless of TOML settings.
Comparison:
src/runner.rs:826 — agent.with_document_config(config.memory.documents.clone()) ✓
src/acp.rs — missing ✗
Related: #1633 (graph config also missing in ACP).
Fix
Add after the memory-related with_* calls in the ACP factory function:
agent = agent.with_document_config(app.config().memory.documents.clone());
Severity
Medium — RAG injection into agent context is user-visible if rag_enabled = true in config.
Summary
ACP sessions never receive document RAG configuration because
with_document_config()is not called insrc/acp.rs.Root Cause
DocumentConfig::default()hasrag_enabled = false. Sincesrc/acp.rsomitsagent.with_document_config(config.memory.documents.clone()), document RAG injection is silently disabled for all ACP sessions regardless of TOML settings.Comparison:
src/runner.rs:826—agent.with_document_config(config.memory.documents.clone())✓src/acp.rs— missing ✗Related: #1633 (graph config also missing in ACP).
Fix
Add after the memory-related
with_*calls in the ACP factory function:Severity
Medium — RAG injection into agent context is user-visible if
rag_enabled = truein config.