MCPcopy Create free account
hub / github.com/ChrisFeldmeier/OpenCodeRust / store_history

Function store_history

crates/opencode-tui/src/components/prompt.rs:1413–1420  ·  view source on GitHub ↗
(path: &PathBuf, entries: &[String])

Source from the content-addressed store, hash-verified

1411}
1412
1413fn store_history(path: &PathBuf, entries: &[String]) {
1414 let payload = HistoryStore {
1415 entries: entries.to_vec(),
1416 };
1417 if let Ok(json) = serde_json::to_string(&payload) {
1418 let _ = std::fs::write(path, json);
1419 }
1420}
1421
1422fn store_frecency(path: &PathBuf, entries: &HashMap<String, FrecencyEntry>) {
1423 let payload = FrecencyStore {

Callers 1

take_inputMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected