docs(coding-agent): corrected context promotion docs

Aligned the context promotion documentation with the explicit contextPromotionTarget runtime behavior and the false default in settings-schema.

Fixes #5163
This commit is contained in:
roboomp
2026-07-11 07:30:43 +00:00
parent 6328671d1d
commit cbe0832246
3 changed files with 8 additions and 5 deletions
+2 -3
View File
@@ -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
+2 -2
View File
@@ -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`. |
+4
View File
@@ -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