MCPcopy Create free account
hub / github.com/codehamr/codehamr / promptEntry

Struct promptEntry

internal/tui/prompt.go:50–54  ·  view source on GitHub ↗

promptEntry is a frozen promptInput snapshot for history replay: displayed text plus the chip metadata needed to restore atomic-chip behaviour on ↑/↓.

Source from the content-addressed store, hash-verified

48// promptEntry is a frozen promptInput snapshot for history replay: displayed
49// text plus the chip metadata needed to restore atomic-chip behaviour on ↑/↓.
50type promptEntry struct {
51 display string
52 store map[int]chipContent
53 spans []chipSpan
54}
55
56// newPromptInput builds the configured textarea and chip bookkeeping. All
57// styling lives here so model.go never touches textarea internals directly.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected