Skip to content

Commit 8431dad

Browse files
committed
docs(behavior): describe template preset precedence
1 parent c4d1fca commit 8431dad

1 file changed

Lines changed: 11 additions & 0 deletions

File tree

CONTEXT.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -144,6 +144,17 @@ The config file's top-level `reasoning_effort`, and a preset's `reasoning_effort
144144
- **WHEN** the operator passes `--reasoning-effort` and the config file or preset also sets one
145145
- **THEN** the flag's value is used
146146

147+
### Requirement: Template and preset system precedence
148+
An explicitly selected template's rendered system text overrides a selected preset's system text. An explicit `--system` argument overrides both.
149+
150+
#### Scenario: Template and preset both set a system message
151+
- **WHEN** the operator selects a template with a `system` value and a preset with a `system` value
152+
- **THEN** the rendered template system message is used
153+
154+
#### Scenario: Explicit system argument
155+
- **WHEN** the operator passes `--system` while selecting a template and a preset
156+
- **THEN** the explicit system argument is used
157+
147158
### Requirement: Reasoning stream separator
148159
Any provider whose stream can carry both a reasoning summary and answer text (`chatgpt --reasoning-summary`, and `--api deepseek`, which always streams reasoning) prints a `---` rule between the two, and only when reasoning text actually arrived — never when the stream carried no reasoning. The rule travels on the same stream as the summary it separates: stdout on a terminal, stderr when stdout is piped, so a pipe never receives a stray rule.
149160

0 commit comments

Comments
 (0)