Skip to content

Release 2.6.2#1782

Merged
chsami merged 15 commits into
mainfrom
development
May 20, 2026
Merged

Release 2.6.2#1782
chsami merged 15 commits into
mainfrom
development

Conversation

@chsami
Copy link
Copy Markdown
Owner

@chsami chsami commented May 20, 2026

Summary

  • Bump microbot.version to 2.6.2
  • Includes 24 commits from development since the last main cut, spanning walker fixes, agent-server endpoints, splash/mouse UX fixes, macOS Java flags, and questhelper improvements

Test plan

  • Build passes
  • Smoke-test walker, splash window, and agent-server endpoints

abextm and others added 15 commits May 8, 2026 00:40
OSXFullScreenAdapter extends com.apple.eawt.FullScreenAdapter, a sealed
JDK class. On JDK 17+ the module system rejects the subclass at load
time with "IllegalAccessError: superclass access check failed" unless
java.desktop/com.apple.eawt is opened to the unnamed module.

- Add --add-opens/--add-exports for java.desktop/com.apple.eawt(.event)
  to the run, runDebug, and runTest Gradle tasks.
- Add Add-Opens/Add-Exports manifest attributes to the shaded jar so
  packaged launches via \`java -jar\` also work.
The undecorated splash screen had a few small UX rough edges:
- Status/sub-action/error-summary text was rendered with JLabel, so
  users could not select or copy it (useful when reporting a startup
  error).
- The frame has no titlebar, so there was no way to move the splash
  out of the way during long downloads.

Changes:
- Swap the action / subAction JLabels for non-editable JTextFields and
  the error summary JLabel for a JTextArea; keep the same visual style.
- Strip the HTML wrapper from the error summary now that JTextArea
  handles wrapping natively.
- Make the "Did you know?" fact area focusable so its text can also be
  selected.
- Install a mouse press/drag listener on the root panel and logo so the
  splash window can be repositioned. Text components consume their own
  mouse events, so selection still works.
Signed-off-by: Levente Kurusa <lev@xarp.us>
…FocusGrab

dispatchWithoutFocusGrab unconditionally called canvas.setFocusable(false)
around every synthetic mouse dispatch to neuter Jagex's MOUSE_PRESSED
focus-grab. That works when the canvas is NOT the focus owner. But when
the user is typing in the in-game chat, the canvas IS the focus owner,
and setFocusable(false) on a focused component immediately transfers
focus away to the parent container - the opposite of the method's intent.

Result: every bot click stole focus from the chat input mid-keystroke.

Fix: only toggle setFocusable when the canvas is not already the focus
owner. When the canvas already owns focus, requestFocus inside Jagex's
listener is a no-op anyway, so the guard is unnecessary.
…rity

fix(mouse): preserve chat-input focus in VirtualMouse.dispatchWithoutFocusGrab
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@coderabbitai
Copy link
Copy Markdown
Contributor

coderabbitai Bot commented May 20, 2026

Review Change Stack

Caution

Review failed

Pull request was closed or merged during review

Walkthrough

This PR updates Microbot to version 2.6.2 with a coordinated set of changes reflecting game content updates and client enhancements. The update includes bumping the project version, removing legacy dependencies, adding macOS JVM module access flags to the build configuration, extending the game ID constant schema across ItemID, NpcID, ObjectID, DBTableID, InterfaceID, and VarbitID files, adding rune pouch drag-delay support to AntiDragPlugin, updating beginner map clue coordinates, refactoring interface sprite references, improving SplashScreen text selectability, fixing focus handling in VirtualMouse, configuring QuantityFormatter rounding behavior, and adding supporting data and test coverage.

Possibly related PRs

  • chsami/Microbot#1776: Both PRs update runelite-client/build.gradle.kts for macOS JVM module access and modify SplashScreen.java for selectable text UI behavior.
  • chsami/Microbot#1781: Both PRs modify VirtualMouse.java in dispatchWithoutFocusGrab() to conditionally toggle canvas focusability based on focus-owner state.
  • chsami/Microbot#1771: Both PRs update the microbot.version property in gradle.properties as part of a version release cycle.
🚥 Pre-merge checks | ✅ 4 | ❌ 1

❌ Failed checks (1 warning)

Check name Status Explanation Resolution
Docstring Coverage ⚠️ Warning Docstring coverage is 7.14% which is insufficient. The required threshold is 80.00%. Write docstrings for the functions missing them to satisfy the coverage threshold.
✅ Passed checks (4 passed)
Check name Status Explanation
Title check ✅ Passed The title 'Release 2.6.2' accurately reflects the main objective of the changeset, which is to release version 2.6.2 by bumping the microbot.version.
Description check ✅ Passed The description is directly related to the changeset, providing a summary of the version bump, commit count, and key areas of change (walker fixes, agent-server endpoints, splash/mouse UX fixes, macOS flags, questhelper improvements).
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
📝 Generate docstrings
  • Create stacked PR
  • Commit on current branch

Warning

There were issues while running some tools. Please review the errors and either fix the tool's configuration or disable the tool if it's a critical failure.

🔧 ast-grep (0.42.2)
runelite-api/src/main/java/net/runelite/api/ItemID.java
runelite-api/src/main/java/net/runelite/api/NpcID.java
runelite-api/src/main/java/net/runelite/api/NullItemID.java
  • 7 others

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.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@chsami chsami merged commit 3a99867 into main May 20, 2026
2 of 3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

8 participants