Skip to content

fix(acp): apply document RAG and graph memory config to ACP sessions#1653

Merged
bug-ops merged 3 commits intomainfrom
acp-document-rag-config
Mar 13, 2026
Merged

fix(acp): apply document RAG and graph memory config to ACP sessions#1653
bug-ops merged 3 commits intomainfrom
acp-document-rag-config

Conversation

@bug-ops
Copy link
Copy Markdown
Owner

@bug-ops bug-ops commented Mar 13, 2026

Summary

  • Add document_config and graph_config fields to SharedAgentDeps in src/acp.rs
  • Populate them in build_acp_deps from config.memory.documents and config.memory.graph
  • Forward them via with_document_config() / with_graph_config() in spawn_acp_agent, matching the pattern in runner.rs:826-827
  • Add regression test verifying the fields exist on SharedAgentDeps

Fixes #1634 (document RAG config silently disabled for ACP sessions)
Fixes #1633 (graph memory config silently disabled for ACP sessions)

Root cause

DocumentConfig::default() has rag_enabled = false and GraphConfig::default() has enabled = false. Without forwarding user config, all ACP sessions ignored the TOML settings.

Test plan

  • cargo +nightly fmt --check — clean
  • cargo clippy --workspace --features full -- -D warnings — clean
  • cargo nextest run --config-file .github/nextest.toml --workspace --features full --lib --bins — 5228 passed, 0 failed
  • Regression test added: shared_agent_deps_has_document_and_graph_config_fields

ACP sessions were silently using DocumentConfig::default() (rag_enabled=false)
and GraphConfig::default() (enabled=false) regardless of TOML settings because
spawn_acp_agent never called with_document_config() or with_graph_config().

Add document_config and graph_config fields to SharedAgentDeps, populate them
in build_acp_deps from config.memory, and forward them in spawn_acp_agent
following the same pattern as runner.rs:826-827.

Fixes #1634, fixes #1633.
@github-actions github-actions Bot added documentation Improvements or additions to documentation rust Rust code changes bug Something isn't working dependencies Dependency updates size/S Small PR (11-50 lines) labels Mar 13, 2026
@bug-ops bug-ops enabled auto-merge (squash) March 13, 2026 16:53
@github-actions github-actions Bot removed rust Rust code changes dependencies Dependency updates labels Mar 13, 2026
@bug-ops bug-ops merged commit 1cf4c24 into main Mar 13, 2026
15 checks passed
@bug-ops bug-ops deleted the acp-document-rag-config branch March 13, 2026 17:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working documentation Improvements or additions to documentation size/S Small PR (11-50 lines)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

fix(acp): document RAG config not applied to ACP sessions fix(acp): graph memory config not applied to ACP sessions

1 participant