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.
()
| 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. |
| 304 | func (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 | } |
no test coverage detected