Skip to content

fix(builder): remove duplicate with_graph_config call in runner and daemon#3354

Merged
bug-ops merged 1 commit intomainfrom
3351-duplicate-pii-warn
Apr 24, 2026
Merged

fix(builder): remove duplicate with_graph_config call in runner and daemon#3354
bug-ops merged 1 commit intomainfrom
3351-duplicate-pii-warn

Conversation

@bug-ops
Copy link
Copy Markdown
Owner

@bug-ops bug-ops commented Apr 24, 2026

Summary

  • apply_session_config already calls apply_graph_config internally (builder.rs:1724), so the subsequent with_graph_config call in runner.rs and daemon.rs was redundant
  • This caused the PII redaction WARN to fire twice and RpeRouter to be initialized twice on every startup when memory.graph.enabled = true
  • Removed the redundant with_graph_config call from both files; updated a stale test doc-comment that referenced the removed guard

Test plan

  • cargo +nightly fmt --check — clean
  • cargo clippy --workspace -- -D warnings — clean
  • cargo nextest run --workspace --lib --bins — 8328 passed, 0 failed
  • Manual: run with [memory.graph] enabled = true and confirm WARN appears exactly once in startup log

Fixes #3351

…aemon

apply_session_config already invokes apply_graph_config internally, so the
subsequent with_graph_config call in the builder chain was redundant. This
caused the PII redaction WARN to fire twice and RpeRouter to be initialized
twice on every startup when memory.graph.enabled = true.

Remove the redundant with_graph_config call from runner.rs and daemon.rs.
Update the stale bare_flag test doc-comment that referenced the removed guard.

Fixes #3351
@github-actions github-actions Bot added bug Something isn't working size/S Small PR (11-50 lines) labels Apr 24, 2026
@bug-ops bug-ops enabled auto-merge (squash) April 24, 2026 16:53
@bug-ops bug-ops merged commit f0621b7 into main Apr 24, 2026
32 checks passed
@bug-ops bug-ops deleted the 3351-duplicate-pii-warn branch April 24, 2026 16:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working size/S Small PR (11-50 lines)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

fix(builder): duplicate PII redaction WARN emitted twice when graph memory enabled

1 participant