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

Function shouldEnableThinkingByDefault

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

Source from the content-addressed store, hash-verified

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

Callers 4

submitMessageMethod · 0.85
runFunction · 0.85
getDefaultAppStateFunction · 0.85

Calls 1

getSettingsWithErrorsFunction · 0.85

Tested by

no test coverage detected