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

Method unqueuePrompt

internal/tui/keys.go:303–308  ·  view source on GitHub ↗

unqueuePrompt pulls the queued prompt back into the textarea and clears the slot, so a queued follow-up can be edited or dropped with one Backspace. Reversible counterpart to queuePrompt; Ctrl+C still cancels the turn, a separate concern. The expanded text returns (no chip), content intact.

()

Source from the content-addressed store, hash-verified

301// slot, so a queued follow-up can be edited or dropped with one Backspace.
302// Reversible counterpart to queuePrompt; Ctrl+C still cancels the turn, a
303// separate concern. The expanded text returns (no chip), content intact.
304func (m Model) unqueuePrompt() (tea.Model, tea.Cmd) {
305 send := m.queued.send
306 m.queued = nil
307 m.setPromptText(send)
308 return m, nil
309}

Callers 1

handleKeyMethod · 0.95

Calls 1

setPromptTextMethod · 0.95

Tested by

no test coverage detected