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

Method new

crates/opencode-tui/src/components/dialogs/subagent.rs:33–39  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

31
32impl SubagentDialog {
33 pub fn new() -> Self {
34 Self {
35 subagent: None,
36 open: false,
37 scroll_offset: 0,
38 }
39 }
40
41 pub fn open(&mut self, subagent: SubagentInfo) {
42 self.subagent = Some(subagent);

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected