MCPcopy Index your code
hub / github.com/codehamr/codehamr / Reset

Method Reset

internal/tui/prompt.go:525–529  ·  view source on GitHub ↗

Reset clears the typed text and all chip state. nextID is preserved so ids stay monotonic within a session.

()

Source from the content-addressed store, hash-verified

523// Reset clears the typed text and all chip state. nextID is preserved so ids
524// stay monotonic within a session.
525func (p *promptInput) Reset() {
526 p.ta.Reset()
527 p.store = map[int]chipContent{}
528 p.spans = nil
529}
530
531// SetValue installs a plain-text value, dropping any chip state. Used by the
532// slash popover's Tab-completion path, where no chip can be injected.

Callers 10

runMethod · 0.80
applyDoneMethod · 0.80
abortTurnMethod · 0.80
handleKeyMethod · 0.80
handleEscInPopoverMethod · 0.80
handleEnterMethod · 0.80
queuePromptMethod · 0.80
TestResetClearsChipsFunction · 0.80
cmdClearMethod · 0.80
flushStreamingMethod · 0.80

Calls

no outgoing calls

Tested by 1

TestResetClearsChipsFunction · 0.64