diff --git a/docs/models.md b/docs/models.md index 5ca430d03..b6d3cc70d 100644 --- a/docs/models.md +++ b/docs/models.md @@ -513,12 +513,11 @@ When a turn fails with a context overflow error (e.g. `context_length_exceeded`) ### Target selection -Selection is model-driven, not role-driven: +Selection is explicit and model-driven: 1. `currentModel.contextPromotionTarget` (if configured) -2. smallest larger-context model on the same provider + API -Candidates are ignored unless credentials resolve (`ModelRegistry.getApiKey(...)`). +Only the configured target is considered; context promotion does not automatically choose a larger same-provider/API sibling. Configured targets are ignored unless credentials resolve (`ModelRegistry.getApiKey(...)`). ### OpenAI Codex websocket handoff diff --git a/docs/settings.md b/docs/settings.md index 5db977693..a60a56daf 100644 --- a/docs/settings.md +++ b/docs/settings.md @@ -504,7 +504,7 @@ read: ```yaml contextPromotion: - enabled: true + enabled: false compaction: enabled: true @@ -520,7 +520,7 @@ memory: | Key | Type | Default | Notes | |---|---|---|---| -| `contextPromotion.enabled` | boolean | `true` | Promote relevant earlier context. | +| `contextPromotion.enabled` | boolean | `false` | Promote to the active model's explicit `contextPromotionTarget` on context overflow. | | `compaction.enabled` | boolean | `true` | Automatic conversation compaction. | | `compaction.midTurnEnabled` | boolean | `true` | Check thresholds at safe mid-turn tool-loop boundaries before the next provider request. | | `compaction.strategy` | enum | `snapcompact` | `context-full`, `handoff`, `shake`, `snapcompact`, `off`. | diff --git a/packages/coding-agent/CHANGELOG.md b/packages/coding-agent/CHANGELOG.md index 442d2c126..cad492bef 100644 --- a/packages/coding-agent/CHANGELOG.md +++ b/packages/coding-agent/CHANGELOG.md @@ -2,6 +2,10 @@ ## [Unreleased] +### Fixed + +- Fixed context promotion docs to match the explicit `contextPromotionTarget` runtime behavior and `contextPromotion.enabled` default. ([#5163](https://github.com/can1357/oh-my-pi/issues/5163)) + ## [16.4.3] - 2026-07-11 ### Added