Skip to content

feat(memory): add --compression-guidelines CLI flag#1844

Merged
bug-ops merged 1 commit intomainfrom
add-compression-guidelines-cli
Mar 15, 2026
Merged

feat(memory): add --compression-guidelines CLI flag#1844
bug-ops merged 1 commit intomainfrom
add-compression-guidelines-cli

Conversation

@bug-ops
Copy link
Copy Markdown
Owner

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

Summary

  • Add --compression-guidelines boolean CLI flag to override config.memory.compression_guidelines.enabled = true at startup
  • Follows the --graph-memory pattern: plain clap bool in src/cli.rs, config override in src/runner.rs
  • Feature gate (compression-guidelines) remains only on the spawn block — passing the flag without the feature compiled in is harmless (silent no-op)
  • Add build_config tests for wizard compression_guidelines_enabled path in src/init.rs, parallel to existing graph_memory tests

Closes #1802.

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 — 5832 passed

@github-actions github-actions bot added enhancement New feature or request documentation Improvements or additions to documentation size/S Small PR (11-50 lines) and removed enhancement New feature or request labels Mar 15, 2026
Add `--compression-guidelines` boolean flag to CLI that overrides
`config.memory.compression_guidelines.enabled = true` at startup.

Follows the existing `--graph-memory` pattern: plain clap bool field,
config override in runner.rs, feature gate is on the spawn block only
so the flag is safe to pass without the feature compiled in.

Also add build_config tests for the wizard compression_guidelines path
in src/init.rs, parallel to the existing graph_memory tests.
@bug-ops bug-ops force-pushed the add-compression-guidelines-cli branch from 63c99c1 to 795580f Compare March 15, 2026 16:31
@bug-ops bug-ops enabled auto-merge (squash) March 15, 2026 16:31
@github-actions github-actions bot added the enhancement New feature or request label Mar 15, 2026
@bug-ops bug-ops merged commit 8c174a7 into main Mar 15, 2026
19 checks passed
@bug-ops bug-ops deleted the add-compression-guidelines-cli branch March 15, 2026 16:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation enhancement New feature or request size/S Small PR (11-50 lines)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

feat(memory): add --compression-guidelines CLI flag

1 participant