Clear the tool card render cache (call on session switch or /clear)
()
| 45 | |
| 46 | /// Clear the tool card render cache (call on session switch or /clear) |
| 47 | pub 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 |
| 52 | fn is_terminal_status(status: &ToolDisplayStatus) -> bool { |