Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/ChrisFeldmeier/OpenCodeRust
/ get_api_client
Method
get_api_client
crates/opencode-tui/src/context/app_context.rs:300–302 ·
view source on GitHub ↗
(&self)
Source
from the content-addressed store, hash-verified
298
}
299
300
pub fn get_api_client(&self) -> Option<Arc<ApiClient>> {
301
self.api_client.read().clone()
302
}
303
}
304
305
impl Default for AppContext {
Callers
15
handle_event
Method · 0.80
handle_dialog_key
Method · 0.80
handle_share_session
Method · 0.80
handle_unshare_session
Method · 0.80
handle_compact_session
Method · 0.80
handle_undo
Method · 0.80
submit_prompt
Method · 0.80
submit_shell_command
Method · 0.80
refresh_model_dialog
Method · 0.80
refresh_agent_dialog
Method · 0.80
refresh_session_list_dialog
Method · 0.80
refresh_skill_list_dialog
Method · 0.80
Calls
2
read
Method · 0.80
clone
Method · 0.45
Tested by
no test coverage detected