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

Method apply_config

crates/opencode-agent/src/agent.rs:492–499  ·  view source on GitHub ↗
(&mut self, config: &LoadedConfig)

Source from the content-addressed store, hash-verified

490 }
491
492 fn apply_config(&mut self, config: &LoadedConfig) {
493 if let Some(mode_configs) = &config.mode {
494 self.apply_agent_configs(mode_configs, Some(AgentMode::Primary));
495 }
496 if let Some(agent_configs) = &config.agent {
497 self.apply_agent_configs(agent_configs, None);
498 }
499 }
500
501 fn apply_agent_configs(
502 &mut self,

Callers 1

from_configMethod · 0.80

Calls 1

apply_agent_configsMethod · 0.80

Tested by

no test coverage detected