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

Method new

crates/opencode-tui/src/components/permission.rs:96–104  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

94
95impl PermissionPrompt {
96 pub fn new() -> Self {
97 Self {
98 requests: Vec::new(),
99 current_index: 0,
100 is_open: false,
101 last_rendered_area: Cell::new(None),
102 pending_action: None,
103 }
104 }
105
106 pub fn add_request(&mut self, request: PermissionRequest) {
107 self.requests.push(request);

Callers

nothing calls this directly

Calls 1

newFunction · 0.85

Tested by

no test coverage detected