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

Function appendHistory

internal/ui/input.go:207–218  ·  view source on GitHub ↗
(line string)

Source from the content-addressed store, hash-verified

205}
206
207func appendHistory(line string) {
208 path := historyPath()
209 if path == "" {
210 return
211 }
212 f, err := os.OpenFile(path, os.O_APPEND|os.O_CREATE|os.O_WRONLY, 0644)
213 if err != nil {
214 return
215 }
216 defer f.Close()
217 fmt.Fprintln(f, line)
218}

Callers 1

ReadChatInputFunction · 0.85

Calls 2

historyPathFunction · 0.85
CloseMethod · 0.45

Tested by

no test coverage detected