feat(coding-agent): supported omitting thinking summaries

- Added `omitThinking` setting to allow instruction of upstream providers to omit thinking summaries.
- Decoupled UI-level thinking block visibility from backend data retrieval.
- Updated session creation to use `omitThinking` for configuring provider-side summaries.
This commit is contained in:
can1357
2026-06-20 08:14:54 +02:00
parent 571eb5c4db
commit 282963ee2f
6 changed files with 21 additions and 8 deletions
@@ -314,9 +314,8 @@ export class SelectorController {
}
}
break;
case "hideThinking":
case "hideThinkingBlock":
this.ctx.hideThinkingBlock = value as boolean;
this.ctx.session.agent.hideThinkingSummary = value as boolean;
for (const child of this.ctx.chatContainer.children) {
if (child instanceof AssistantMessageComponent) {
child.setHideThinkingBlock(value as boolean);
@@ -327,6 +326,9 @@ export class SelectorController {
// InputController.toggleThinkingBlockVisibility).
this.ctx.ui.resetDisplay();
break;
case "omitThinking":
this.ctx.session.agent.hideThinkingSummary = value as boolean;
break;
case "display.cacheMissMarker":
// Rebuild re-runs the usage-based detection under the new setting so
// markers appear/disappear; full reset retires any already committed