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

Method take_patches

crates/opencode-session/src/llm.rs:250–252  ·  view source on GitHub ↗

Drain all pending patches computed from snapshot diffs.

(&mut self)

Source from the content-addressed store, hash-verified

248
249 /// Drain all pending patches computed from snapshot diffs.
250 pub fn take_patches(&mut self) -> Vec<SnapshotPatch> {
251 std::mem::take(&mut self.pending_patches)
252 }
253
254 /// Drain processor-side events (e.g. doom-loop detection).
255 pub fn take_events(&mut self) -> Vec<ProcessorEvent> {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected