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

Function selected_agent

crates/opencode-tui/src/app/app.rs:3809–3815  ·  view source on GitHub ↗
(context: &Arc<AppContext>)

Source from the content-addressed store, hash-verified

3807}
3808
3809fn selected_agent(context: &Arc<AppContext>) -> Option<String> {
3810 let agent = context.current_agent.read().clone();
3811 if agent.trim().is_empty() {
3812 return None;
3813 }
3814 Some(agent)
3815}
3816
3817fn default_export_filename(title: &str, session_id: &str) -> String {
3818 let mut slug = String::new();

Callers 2

submit_promptMethod · 0.85
submit_shell_commandMethod · 0.85

Calls 3

readMethod · 0.80
is_emptyMethod · 0.80
cloneMethod · 0.45

Tested by

no test coverage detected