Skip to content

Add an option to disable automatic compaction - #7

Merged
olegus8 merged 3 commits into
mainfrom
native-no-auto-compaction
Sep 14, 2026
Merged

olegus8 merged 3 commits into
mainfrom
native-no-auto-compaction

Conversation

@olegus8

@olegus8 olegus8 commented Sep 14, 2026 •

Copy link
Copy Markdown
Owner

model_auto_compact_enabled = false disables automatic compaction and new_context resets. Requests continue until the usable limit; exhaustion returns ContextWindowExceeded and retains input and tool results. Defaults to true; manual compaction and safety reviews ignore the setting.

Closes #3.

AWS validation: 13 regression tests and 318 configuration tests passed. Core: 4,332 passed, 4 failed, 8 skipped. The failures also occur on unmodified 36f0dbe:

  • async_hook_finishing_while_idle_waits_for_the_next_turn::user_turn
  • network_rejection_preserves_execution_and_review_outcomes (all three variants)

Schema, formatting and scoped Clippy passed. Not tested: full workspace, macOS, Windows.

Builder setup: family PR #390. Deployment: #362.

@olegus8
olegus8 marked this pull request as ready for review September 14, 2026 14:43
@olegus8 olegus8 changed the title Allow disabling automatic compaction until context exhaustion Add an option to disable automatic compaction Sep 14, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Disable automatic compaction and stop at the usable context limit

1 participant