MCPcopy Create free account
hub / github.com/GCWing/BitFun / clear_tool_card_cache

Function clear_tool_card_cache

src/apps/cli/src/ui/tool_cards.rs:47–49  ·  view source on GitHub ↗

Clear the tool card render cache (call on session switch or /clear)

()

Source from the content-addressed store, hash-verified

45
46/// Clear the tool card render cache (call on session switch or /clear)
47pub fn clear_tool_card_cache() {
48 TOOL_CARD_CACHE.with(|cache| cache.borrow_mut().clear());
49}
50
51/// Check if a tool is in a terminal (cacheable) state
52fn is_terminal_status(status: &ToolDisplayStatus) -> bool {

Callers 1

clear_screenMethod · 0.85

Calls 1

clearMethod · 0.45

Tested by

no test coverage detected