MCPcopy Index your code
hub / github.com/ChrisFeldmeier/OpenCodeRust / remove_stash

Method remove_stash

crates/opencode-tui/src/components/prompt.rs:627–634  ·  view source on GitHub ↗
(&mut self, index: usize)

Source from the content-addressed store, hash-verified

625 }
626
627 pub fn remove_stash(&mut self, index: usize) -> bool {
628 if index >= self.stash.len() {
629 return false;
630 }
631 self.stash.remove(index);
632 store_stash(&self.stash_path, &self.stash);
633 true
634 }
635
636 pub fn load_stash(&mut self, index: usize) -> bool {
637 let Some(entry) = self.stash.get(index) else {

Callers 1

handle_dialog_keyMethod · 0.80

Calls 2

store_stashFunction · 0.85
removeMethod · 0.45

Tested by

no test coverage detected