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

Function commit

graph-ui/src/browser-ai/BrowserChatDock.tsx:176–181  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

174 const [text, setText] = useState(String(value));
175 useEffect(() => { setText(String(value)); }, [value]);
176 const commit = (): void => {
177 const typed = Number.parseInt(text, 10);
178 const next = Number.isFinite(typed) ? Math.min(max, Math.max(min, typed)) : value;
179 setText(String(next));
180 if (next !== value) onCommit(next);
181 };
182 return <div className="cbm-chat-token-limit">
183 <label htmlFor={id}>{label}</label>
184 <input id={id} type="number" inputMode="numeric" min={min} max={max} step={step} value={text} aria-describedby={`${id}-range`}

Callers 4

aroundFunction · 0.85
ProjectWindowsFunction · 0.85
switchKeepingAgentFunction · 0.85
TokenLimitFieldFunction · 0.85

Calls

no outgoing calls

Tested by 1

aroundFunction · 0.68