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

Function onSetMaxThinkingTokens

source code/cli/print.ts:3948–3959  ·  view source on GitHub ↗
(maxTokens)

Source from the content-addressed store, hash-verified

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

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected