MCPcopy Index your code
hub / github.com/codeaashu/claude-code / onSetMaxThinkingTokens

Function onSetMaxThinkingTokens

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

Source from the content-addressed store, hash-verified

3944 setMainLoopModelOverride(resolved)
3945 },
3946 onSetMaxThinkingTokens(maxTokens) {
3947 if (maxTokens === null) {
3948 options.thinkingConfig = undefined
3949 } else if (maxTokens === 0) {
3950 options.thinkingConfig = { type: 'disabled' }
3951 } else {
3952 options.thinkingConfig = {
3953 type: 'enabled',
3954 budgetTokens: maxTokens,
3955 }
3956 }
3957 },
3958 onStateChange(state, detail) {
3959 if (state === 'failed') {
3960 bridgeFailureDetail = detail

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected