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

Method Entry

internal/tui/prompt.go:503–509  ·  view source on GitHub ↗

Entry snapshots state for the history buffer, cloning store and spans so later edits to the live promptInput don't mutate the recorded entry.

()

Source from the content-addressed store, hash-verified

501// Entry snapshots state for the history buffer, cloning store and spans so
502// later edits to the live promptInput don't mutate the recorded entry.
503func (p promptInput) Entry() promptEntry {
504 return promptEntry{
505 display: p.ta.Value(),
506 store: maps.Clone(p.store),
507 spans: slices.Clone(p.spans),
508 }
509}
510
511// Restore replays a history entry: sets the display text, installs the
512// snapshot's chip state, drops the cursor at the end.

Callers 3

historyUpMethod · 0.80
handleEnterMethod · 0.80

Calls 1

ValueMethod · 0.80

Tested by 1