MCPcopy Create free account
hub / github.com/DeusData/codebase-memory-mcp / limitNote

Function limitNote

graph-ui/src/browser-ai/BrowserChatDock.tsx:342–343  ·  view source on GitHub ↗
(shortened: boolean | undefined, limit: TokenLimits | undefined, automatic?: boolean)

Source from the content-addressed store, hash-verified

340 }, [settingsOpen]);
341 const openOutputLimit = (): void => { focusOutputLimit.current = true; setSettingsOpen(true); };
342 const limitNote = (shortened: boolean | undefined, limit: TokenLimits | undefined, automatic?: boolean): LimitNote | undefined => shortened
343 ? { limit: limit ?? (automatic ? { inputTokens: autoInput, outputTokens: autoOutput } : limits), automatic, chat: limits, model, onChangeOutput: openOutputLimit } : undefined;
344 useEffect(() => {
345 const run = autoRun.current;
346 if (run && !run.cancelled && (run.key !== selected?.key || !automatic || !proactive)) {

Callers 1

BrowserChatDockFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected