[codex] expose context compaction gates (#3765)#3780
Conversation
Add config.toml switches for the two context-maintenance mechanisms from Hmbown#3765: [compaction].enabled controls replacement compaction at the engine layer, and [seam_manager].enabled is an explicit alias for the Flash seam manager master switch. The default path stays compatible: if [compaction].enabled is unset, runtime compaction still follows the existing auto_compact settings/default behavior. Credit: thanks @Mr-Moon121 for the concrete Hmbown#3765 report and config-surface request. Verification: - cargo fmt --all --check - cargo test -p codewhale-tui --bin codewhale-tui --locked compaction - cargo test -p codewhale-tui --bin codewhale-tui --locked seam_manager_enabled - cargo test -p codewhale-tui --bin codewhale-tui --locked profile_without_context_gates - cargo test -p codewhale-tui --bin codewhale-tui --locked config - cargo test --workspace --locked - cargo build --release -p codewhale-cli -p codewhale-tui --locked Signed-off-by: Nightt <87569709+nightt5879@users.noreply.github.com>
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: e80e111713
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
Address Codex review feedback on PR Hmbown#3780.\n\nKeep the runtime [compaction].enabled override in sync when config.toml is reloaded or a profile switch loads a new Config, and use the effective automatic compaction gate for the pre-send trigger and context-pressure guidance.\n\nVerification:\n- cargo fmt --all --check\n- cargo test -p codewhale-tui --bin codewhale-tui --locked compaction\n- cargo test --workspace --locked\n- cargo build --release -p codewhale-cli -p codewhale-tui --locked\n\nSigned-off-by: Nightt <nightt5879@users.noreply.github.com>
|
Thanks @nightt5879. This context-compaction gate work is promising, but it conflicts with current |
Summary
Closes #3765.
[compaction].enabledas an engine-level config.toml switch for replacement compaction.[seam_manager].enabledas an explicit alias for the Flash seam manager master switch while keeping thresholds/model under[context].[compaction].enabledis unset: runtime compaction still follows the savedauto_compactsettings/default path.config.example.tomlanddocs/CONFIGURATION.mdso power users can discover the hard gates.Credit: thanks @Mr-Moon121 for the concrete report and config-surface request in #3765.
Verification
cargo fmt --all --checkcargo test -p codewhale-tui --bin codewhale-tui --locked compactioncargo test -p codewhale-tui --bin codewhale-tui --locked seam_manager_enabledcargo test -p codewhale-tui --bin codewhale-tui --locked profile_without_context_gatescargo test -p codewhale-tui --bin codewhale-tui --locked configcargo test --workspace --lockedcargo build --release -p codewhale-cli -p codewhale-tui --locked