Skip to content

fix(acp): document RAG config not applied to ACP sessions #1634

@bug-ops

Description

@bug-ops

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:826agent.with_document_config(config.memory.documents.clone())
  • src/acp.rsmissing

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingmemoryzeph-memory crate (SQLite)

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions