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

Method new

crates/opencode-tui/src/components/sidebar.rs:153–158  ·  view source on GitHub ↗
(context: Arc<AppContext>, session_id: String)

Source from the content-addressed store, hash-verified

151
152impl Sidebar {
153 pub fn new(context: Arc<AppContext>, session_id: String) -> Self {
154 Self {
155 context,
156 session_id,
157 }
158 }
159
160 pub fn render(&self, frame: &mut Frame, area: Rect, state: &mut SidebarState, floating: bool) {
161 if area.width == 0 || area.height == 0 {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected