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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user