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

Method loaded_instruction_paths

crates/opencode-session/src/prompt.rs:520–531  ·  view source on GitHub ↗
(msg: &SessionMessage)

Source from the content-addressed store, hash-verified

518 }
519
520 fn loaded_instruction_paths(msg: &SessionMessage) -> HashSet<String> {
521 msg.metadata
522 .get("loaded_instruction_files")
523 .and_then(|value| value.as_array())
524 .map(|items| {
525 items
526 .iter()
527 .filter_map(|item| item.as_str().map(ToString::to_string))
528 .collect()
529 })
530 .unwrap_or_default()
531 }
532
533 fn store_loaded_instruction_paths(msg: &mut SessionMessage, loaded: HashSet<String>) {
534 if loaded.is_empty() {

Callers

nothing calls this directly

Calls 2

getMethod · 0.45
as_strMethod · 0.45

Tested by

no test coverage detected