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

Function onSetMaxThinkingTokens

src/hooks/useReplBridge.tsx:406–415  ·  view source on GitHub ↗
(maxTokens)

Source from the content-addressed store, hash-verified

404 });
405 },
406 onSetMaxThinkingTokens(maxTokens) {
407 const enabled = maxTokens !== null;
408 setAppState(prev_11 => {
409 if (prev_11.thinkingEnabled === enabled) return prev_11;
410 return {
411 ...prev_11,
412 thinkingEnabled: enabled
413 };
414 });
415 },
416 onSetPermissionMode(mode) {
417 // Policy guards MUST fire before transitionPermissionMode —
418 // its internal auto-gate check is a defensive throw (with a

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected