── main message input ────────────────────────────────────────────────────
| 26 | // ── main message input ──────────────────────────────────────────────────── |
| 27 | |
| 28 | type chatInputModel struct { |
| 29 | ti textinput.Model |
| 30 | history []string |
| 31 | histIdx int // -1 = not navigating; otherwise index from end (0 = most recent) |
| 32 | bufferText string // text typed before the user started navigating history |
| 33 | width int |
| 34 | submitted string |
| 35 | done bool |
| 36 | } |
| 37 | |
| 38 | func newChatInput(width int, history []string) chatInputModel { |
| 39 | ti := textinput.New() |
nothing calls this directly
no outgoing calls
no test coverage detected