MCPcopy Create free account
hub / github.com/QodeXcli/QodeX / clearAll

Function clearAll

src/cli/components/chat-input.tsx:71–77  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

69
70 // Selection = the half-open range [min(anchor,cursor), max(anchor,cursor)).
71 const hasSelection = anchor !== null && anchor !== cursor;
72 const selFrom = anchor === null ? cursor : Math.min(anchor, cursor);
73 const selTo = anchor === null ? cursor : Math.max(anchor, cursor);
74
75 const clearAll = () => {
76 onChange('');
77 setCursor(0);
78 setAnchor(null);
79 setAttachments([]);
80 histIdx.current = null;

Callers 1

ChatInputFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected