MCPcopy
hub / github.com/claude-code-best/claude-code / shouldEnableThinkingByDefault

Function shouldEnableThinkingByDefault

src/utils/thinking.ts:151–167  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

149}
150
151export function shouldEnableThinkingByDefault(): boolean {
152 if (process.env.MAX_THINKING_TOKENS) {
153 return parseInt(process.env.MAX_THINKING_TOKENS, 10) > 0
154 }
155
156 const { settings } = getSettingsWithErrors()
157 if (settings.alwaysThinkingEnabled === false) {
158 return false
159 }
160
161 // IMPORTANT: Do not change default thinking enabled value without notifying
162 // the model launch DRI and research. This can greatly affect model quality and
163 // bashing.
164
165 // Enable thinking by default unless explicitly disabled.
166 return true
167}

Callers 4

submitMessageMethod · 0.85
runFunction · 0.85
getDefaultAppStateFunction · 0.85

Calls 1

getSettingsWithErrorsFunction · 0.85

Tested by

no test coverage detected