Skip to content

fix(cli): Keep per-turn model when using --style - #915

Merged
JeanMertz merged 1 commit into
mainfrom
bug-869
Jul 31, 2026
Merged

fix(cli): Keep per-turn model when using --style#915
JeanMertz merged 1 commit into
mainfrom
bug-869

Conversation

@JeanMertz

Copy link
Copy Markdown
Collaborator

jp conversation print --style applied its preset by rewriting the shared render config before building each turn's renderer, which forced every turn to rebuild from the current per-turn config instead of the config that turn actually ran with. In a conversation where the model changed mid-way, --style full (and other presets) mislabeled every turn with whichever model was configured when the preset was applied, hiding the fact that earlier turns ran on a different model.

Style presets are now expressed as a StyleOverlay (reasoning display, tool call visibility, tool style) that the TurnRenderer re-applies on top of each turn's own rebuilt config, rather than mutating the config used to select that turn's identity. --style therefore only changes presentation, and --current-config remains the explicit way to render every turn under the workspace's current config, including its model.

Closes: #869

`jp conversation print --style` applied its preset by rewriting the
shared render config before building each turn's renderer, which
forced every turn to rebuild from the *current* per-turn config
instead of the config that turn actually ran with. In a conversation
where the model changed mid-way, `--style full` (and other presets)
mislabeled every turn with whichever model was configured when the
preset was applied, hiding the fact that earlier turns ran on a
different model.

Style presets are now expressed as a `StyleOverlay` (reasoning
display, tool call visibility, tool style) that the `TurnRenderer`
re-applies on top of each turn's own rebuilt config, rather than
mutating the config used to select that turn's identity. `--style`
therefore only changes presentation, and `--current-config` remains
the explicit way to render every turn under the workspace's current
config, including its model.

Closes: #869
Signed-off-by: Jean Mertz <git@jeanmertz.com>
@JeanMertz
JeanMertz merged commit 8934a29 into main Jul 31, 2026
16 checks passed
@JeanMertz
JeanMertz deleted the bug-869 branch July 31, 2026 14:33
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.

jp conversation print reports wrong model

1 participant