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

Function appendPromptHistory

internal/tui/history_store.go:64–111  ·  view source on GitHub ↗

appendPromptHistory writes value as one more entry, trimming to historyMaxEntries to bound growth. Empty prompts are skipped so stray ↵ presses don't pollute recall; entries over historyMaxEntryBytes are dropped (recall would fail at the scanner cap anyway). O_APPEND so two codehamr processes in th

(dir, value string)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Calls 3

historyPathFunction · 0.85
countHistoryLinesFunction · 0.85
loadPromptHistoryFunction · 0.85