mirror of
https://github.com/compiler-explorer/compiler-explorer.git
synced 2026-12-01 23:59:22 -06:00
This change converts Claude Explain from a backend "Tool" to a proper frontend "Pane", providing a cleaner architecture and better user experience. Major changes: - Add Claude Explain as a pane in the "Add new..." dropdown for all languages - Remove server-side ExplainTool and all tool configurations from property files - Move API endpoint configuration to global options (explainApiEndpoint) - Update event handling from tool events to pane-specific events (explainViewOpened/Closed) - Make button visibility conditional on API endpoint configuration - Trigger recompilation when Claude Explain pane is opened Benefits: - Universal availability across all languages without per-language configuration - No need for fake binaries (/bin/true) or server-side stubs - Cleaner architecture with all logic in the frontend - Better UX with Claude Explain appearing alongside other analysis panes - Automatic recompilation when opened, matching behavior of AST/Opt viewers Technical details: - Register EXPLAIN_VIEW_COMPONENT_NAME and factory in hub.ts - Add button to compiler.pug with conditional visibility - Update ExplainHtmlView to emit pane events and use global API endpoint - Remove redundant getCurrentState() override - Clean up all references to the old tool implementation 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>