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

Method render_mode

crates/opencode-tui/src/components/tool_call.rs:26–36  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

24
25impl ToolCall {
26 pub fn render_mode(&self) -> ToolRenderMode {
27 match self.name.as_str() {
28 "glob" | "grep" | "list" | "webfetch" | "websearch" | "skill" | "read" => {
29 ToolRenderMode::Inline
30 }
31 "bash" | "write" | "edit" | "apply_patch" | "task" | "todowrite" | "question" => {
32 ToolRenderMode::Block
33 }
34 _ => ToolRenderMode::Block,
35 }
36 }
37}
38
39#[derive(Clone, Debug, PartialEq)]

Callers

nothing calls this directly

Calls 1

as_strMethod · 0.45

Tested by

no test coverage detected