MCPcopy Create free account
hub / github.com/claude-code-best/claude-code / onSetMaxThinkingTokens

Function onSetMaxThinkingTokens

src/cli/print.ts:4160–4171  ·  view source on GitHub ↗
(maxTokens)

Source from the content-addressed store, hash-verified

4158 setMainLoopModelOverride(resolved)
4159 },
4160 onSetMaxThinkingTokens(maxTokens) {
4161 if (maxTokens === null) {
4162 options.thinkingConfig = undefined
4163 } else if (maxTokens === 0) {
4164 options.thinkingConfig = { type: 'disabled' }
4165 } else {
4166 options.thinkingConfig = {
4167 type: 'enabled',
4168 budgetTokens: maxTokens,
4169 }
4170 }
4171 },
4172 onStateChange(state, detail) {
4173 if (state === 'failed') {
4174 bridgeFailureDetail = detail

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected