MCPcopy Create free account
hub / github.com/anomalyco/opencode / clearInput

Function clearInput

packages/app/src/components/prompt-input/submit.ts:409–413  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

407 }
408
409 const clearInput = () => {
410 submission.clear()
411 input.setMode("normal")
412 input.setPopover(null)
413 }
414
415 const restoreInput = () => {
416 const restored = submission.restore()

Callers 1

handleSubmitFunction · 0.85

Calls 1

clearMethod · 0.45

Tested by

no test coverage detected