MCPcopy Create free account
hub / github.com/betta-tech/byo-coding-agent / chatInputModel

Struct chatInputModel

internal/ui/input.go:28–36  ·  view source on GitHub ↗

── main message input ────────────────────────────────────────────────────

Source from the content-addressed store, hash-verified

26// ── main message input ────────────────────────────────────────────────────
27
28type 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
38func newChatInput(width int, history []string) chatInputModel {
39 ti := textinput.New()

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected