Add right-click Clear option to debug console#1682
Add right-click Clear option to debug console#1682aussio wants to merge 2 commits intochsami:developmentfrom
Conversation
Development to main
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
WalkthroughThe changes add a console clearing feature to the RuneLite client. A "Clear" action is introduced to the console toggle button's popup menu in ClientUI.java. This action invokes a newly added clear() method in LogConsolePanel.java that clears the console text area. The clear() method uses SwingUtilities.invokeLater to ensure thread-safe execution on the Event Dispatch Thread. Possibly related PRs
🚥 Pre-merge checks | ✅ 3 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (3 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing touches
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
| .tooltip("Show console") | ||
| .onClick(this::toggleConsole) | ||
| .popup(Map.of("Clear", () -> consolePanel.clear())) | ||
| .build(), false); |
There was a problem hiding this comment.
I'll admit this UI a tad bit ugly. It felt like an intuitive place to put the button though.
Summary
A small quality of life change to allow clearing the console. I like to add conditional debug logs and they get a tad bit spammy. So this is nice when troubleshooting changes.
Screen.Recording.2026-02-16.at.7.43.18.PM.mov
Test plan