Skip to content

Commit d6ab650

Browse files
committed
docs: add chat thinking and reasoning fields to status line profile
Add support for `chatThinkingEnabled` and `chatReasoningEffort` fields in the status line profile configuration. These fields are used for OpenAI Chat Completions compatible APIs such as DeepSeek. Also update the `thinkingEnabled` logic to recognize both 'enabled' and 'adaptive' thinking types for Anthropic models, and add documentation mapping thinking/reasoning fields to their respective request methods.
1 parent abc78f3 commit d6ab650

4 files changed

Lines changed: 29 additions & 3 deletions

File tree

docs/usage/en/21.Custom StatusLine Guide.md

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -185,6 +185,8 @@ Each render item supports the following fields:
185185
geminiThinkingLevel: 'high',
186186
responsesReasoningEnabled: false,
187187
responsesReasoningEffort: 'medium',
188+
chatThinkingEnabled: false,
189+
chatReasoningEffort: 'high',
188190
responsesFastMode: false,
189191
responsesVerbosity: 'medium',
190192
anthropicSpeed: 'standard',
@@ -224,7 +226,15 @@ Available fields under `system`:
224226
- `system.codebase`: codebase indexing state, including `indexing` and `progress`
225227
- `system.watcher`: file watcher state, including `enabled` and `fileUpdateNotification`
226228
- `system.clipboard`: most recent copy feedback, including `text`, `isError`, `timestamp`
227-
- `system.profile`: current profile full configuration, including `currentName`, `baseUrl`, `requestMethod`, `advancedModel`, `basicModel`, `maxContextTokens`, `maxTokens`, `anthropicBeta`, `anthropicCacheTTL`, `thinkingEnabled`, `thinkingType`, `thinkingBudgetTokens`, `thinkingEffort`, `geminiThinkingEnabled`, `geminiThinkingLevel`, `responsesReasoningEnabled`, `responsesReasoningEffort`, `responsesFastMode`, `responsesVerbosity`, `anthropicSpeed`, `enablePromptOptimization`, `enableAutoCompress`, `autoCompressThreshold`, `showThinking`, `streamIdleTimeoutSec`, `systemPromptId`, `customHeadersSchemeId`, `toolResultTokenLimit`, `streamingDisplay` (excluding `apiKey`)
229+
- `system.profile`: current profile full configuration, including `currentName`, `baseUrl`, `requestMethod`, `advancedModel`, `basicModel`, `maxContextTokens`, `maxTokens`, `anthropicBeta`, `anthropicCacheTTL`, `thinkingEnabled`, `thinkingType`, `thinkingBudgetTokens`, `thinkingEffort`, `geminiThinkingEnabled`, `geminiThinkingLevel`, `responsesReasoningEnabled`, `responsesReasoningEffort`, `chatThinkingEnabled`, `chatReasoningEffort`, `responsesFastMode`, `responsesVerbosity`, `anthropicSpeed`, `enablePromptOptimization`, `enableAutoCompress`, `autoCompressThreshold`, `showThinking`, `streamIdleTimeoutSec`, `systemPromptId`, `customHeadersSchemeId`, `toolResultTokenLimit`, `streamingDisplay` (excluding `apiKey`)
230+
231+
How thinking / reasoning fields map to `requestMethod`:
232+
233+
- `anthropic`: `thinkingEnabled` / `thinkingType` (`'enabled'` or `'adaptive'`) / `thinkingEffort` / `thinkingBudgetTokens`
234+
- `gemini`: `geminiThinkingEnabled` / `geminiThinkingLevel`
235+
- `responses`: `responsesReasoningEnabled` / `responsesReasoningEffort`
236+
- `chat` (OpenAI Chat Completions compatible APIs such as DeepSeek): `chatThinkingEnabled` / `chatReasoningEffort`
237+
228238
- `system.compression`: auto-compression state, including `blockToast`
229239

230240
## Example 1: Real Clock Plugin

docs/usage/zh/21.自定义StatusLine指南.md

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -185,6 +185,8 @@ export default {
185185
geminiThinkingLevel: 'high',
186186
responsesReasoningEnabled: false,
187187
responsesReasoningEffort: 'medium',
188+
chatThinkingEnabled: false,
189+
chatReasoningEffort: 'high',
188190
responsesFastMode: false,
189191
responsesVerbosity: 'medium',
190192
anthropicSpeed: 'standard',
@@ -224,7 +226,15 @@ export default {
224226
- `system.codebase`:代码库索引状态,包含 `indexing``progress`
225227
- `system.watcher`:文件监视器状态,包含 `enabled``fileUpdateNotification`
226228
- `system.clipboard`:最近一次复制提示,包含 `text``isError``timestamp`
227-
- `system.profile`:当前 Profile 完整配置信息,包含 `currentName``baseUrl``requestMethod``advancedModel``basicModel``maxContextTokens``maxTokens``anthropicBeta``anthropicCacheTTL``thinkingEnabled``thinkingType``thinkingBudgetTokens``thinkingEffort``geminiThinkingEnabled``geminiThinkingLevel``responsesReasoningEnabled``responsesReasoningEffort``responsesFastMode``responsesVerbosity``anthropicSpeed``enablePromptOptimization``enableAutoCompress``autoCompressThreshold``showThinking``streamIdleTimeoutSec``systemPromptId``customHeadersSchemeId``toolResultTokenLimit``streamingDisplay`(不含 `apiKey`
229+
- `system.profile`:当前 Profile 完整配置信息,包含 `currentName``baseUrl``requestMethod``advancedModel``basicModel``maxContextTokens``maxTokens``anthropicBeta``anthropicCacheTTL``thinkingEnabled``thinkingType``thinkingBudgetTokens``thinkingEffort``geminiThinkingEnabled``geminiThinkingLevel``responsesReasoningEnabled``responsesReasoningEffort``chatThinkingEnabled``chatReasoningEffort``responsesFastMode``responsesVerbosity``anthropicSpeed``enablePromptOptimization``enableAutoCompress``autoCompressThreshold``showThinking``streamIdleTimeoutSec``systemPromptId``customHeadersSchemeId``toolResultTokenLimit``streamingDisplay`(不含 `apiKey`
230+
231+
其中思考 / 推理相关字段与 `requestMethod` 的对应关系:
232+
233+
- `anthropic``thinkingEnabled` / `thinkingType``'enabled'``'adaptive'`) / `thinkingEffort` / `thinkingBudgetTokens`
234+
- `gemini``geminiThinkingEnabled` / `geminiThinkingLevel`
235+
- `responses``responsesReasoningEnabled` / `responsesReasoningEffort`
236+
- `chat`(DeepSeek 等 OpenAI Chat Completions 兼容接口):`chatThinkingEnabled` / `chatReasoningEffort`
237+
228238
- `system.compression`:自动压缩提示,包含 `blockToast`
229239

230240
## 示例 1:真实可用的时钟插件

source/ui/components/common/StatusLine.tsx

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -370,14 +370,18 @@ export default function StatusLine({
370370
maxTokens: cfg?.maxTokens,
371371
anthropicBeta: cfg?.anthropicBeta,
372372
anthropicCacheTTL: cfg?.anthropicCacheTTL,
373-
thinkingEnabled: cfg?.thinking?.type === 'enabled',
373+
thinkingEnabled:
374+
cfg?.thinking?.type === 'enabled' ||
375+
cfg?.thinking?.type === 'adaptive',
374376
thinkingType: cfg?.thinking?.type,
375377
thinkingBudgetTokens: cfg?.thinking?.budget_tokens,
376378
thinkingEffort: cfg?.thinking?.effort,
377379
geminiThinkingEnabled: cfg?.geminiThinking?.enabled,
378380
geminiThinkingLevel: cfg?.geminiThinking?.thinkingLevel,
379381
responsesReasoningEnabled: cfg?.responsesReasoning?.enabled,
380382
responsesReasoningEffort: cfg?.responsesReasoning?.effort,
383+
chatThinkingEnabled: cfg?.chatThinking?.enabled,
384+
chatReasoningEffort: cfg?.chatThinking?.reasoning_effort,
381385
responsesFastMode: cfg?.responsesFastMode,
382386
responsesVerbosity: cfg?.responsesVerbosity,
383387
anthropicSpeed: cfg?.anthropicSpeed,

source/ui/components/common/statusline/types.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,8 @@ export interface StatusLineSystemState {
118118
geminiThinkingLevel?: string;
119119
responsesReasoningEnabled?: boolean;
120120
responsesReasoningEffort?: string;
121+
chatThinkingEnabled?: boolean;
122+
chatReasoningEffort?: string;
121123
responsesFastMode?: boolean;
122124
responsesVerbosity?: string;
123125
anthropicSpeed?: string;

0 commit comments

Comments
 (0)