Skip to content

fix(acp): apply graph memory config to ACP sessions#1645

Merged
bug-ops merged 1 commit intomainfrom
fix-acp-graph-memory-config-no
Mar 13, 2026
Merged

fix(acp): apply graph memory config to ACP sessions#1645
bug-ops merged 1 commit intomainfrom
fix-acp-graph-memory-config-no

Conversation

@bug-ops
Copy link
Owner

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

Summary

  • Add graph_config: GraphConfig field to SharedAgentDeps in src/acp.rs
  • Populate it from config.memory.graph at startup alongside other config fields
  • Call agent.with_graph_config(graph_config) in spawn_acp_agent after with_memory, matching the existing pattern in src/runner.rs:827 and src/daemon.rs:368

Closes #1633.

Root Cause

spawn_acp_agent was missing the with_graph_config() call, so MemoryState.graph_config always held GraphConfig::default() which has enabled = false. The guard in maybe_spawn_graph_extraction() returned early on every assistant response, silently disabling graph extraction for all ACP sessions (Zed, Helix, VS Code) regardless of [memory.graph] enabled = true in config.

Test plan

  • All 5201 unit tests pass (cargo nextest run --workspace --features full --lib --bins)
  • cargo clippy --workspace --features full -- -D warnings passes
  • cargo +nightly fmt --check passes
  • Live verification: start ACP session with [memory.graph] enabled = true, send prompts with named entities, confirm rows appear in graph_entities table within ~35s

@github-actions github-actions bot added documentation Improvements or additions to documentation bug Something isn't working size/XS Extra small PR (1-10 lines) labels Mar 13, 2026
`spawn_acp_agent` was not calling `agent.with_graph_config()`, so the
`graph_config` field in `MemoryState` always defaulted to
`GraphConfig { enabled: false }`. The guard in
`maybe_spawn_graph_extraction()` returned early on every turn,
silently disabling graph extraction for all ACP-connected clients
(Zed, Helix, VS Code) regardless of `[memory.graph] enabled = true`
in the user's config.

Add `graph_config: GraphConfig` to `SharedAgentDeps`, populate it from
`config.memory.graph` at startup, and apply it in `spawn_acp_agent`
after the `with_memory` call — matching the existing pattern in
`src/runner.rs` and `src/daemon.rs`.

Closes #1633.
@bug-ops bug-ops force-pushed the fix-acp-graph-memory-config-no branch from f013186 to 783bc5f Compare March 13, 2026 16:33
@bug-ops bug-ops enabled auto-merge (squash) March 13, 2026 16:34
@bug-ops bug-ops merged commit 0188c74 into main Mar 13, 2026
15 checks passed
@bug-ops bug-ops deleted the fix-acp-graph-memory-config-no branch March 13, 2026 16:41
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/XS Extra small PR (1-10 lines)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

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

1 participant