Skip to content

Fix Library crash when an addon adds folders after install - #119

Merged
Gulliby merged 1 commit into
mainfrom
bugfix/library-duplicate-rows
Nov 29, 2026
Merged

Gulliby merged 1 commit into
mainfrom
bugfix/library-duplicate-rows

Conversation

@Gulliby

@Gulliby Gulliby commented Nov 29, 2026

Copy link
Copy Markdown
Contributor

Requested by gulliby · project thread

Bug

Runeloader Desktop crashed on the Library tab: Key "r:github:fitzforge/polestar" was already used.

Cause

Polestar added folders after it was installed (the index lists 22 now, such as Polestar_Arcade). Library.rows gave the managed entry its own folders, and every folder it did not list matched the index item of the same repo, which made a second row with the same key. Android showed Polestar twice; the desktop LazyColumn crashed on the repeated key.

Fix

  • Library.rows: a folder whose catalog or index match is a managed entry joins that entry's row (main folder kept first). Case in core/test/LibraryTest.java (fails without the fix).
  • Desktop: Library lines and Browse items are made distinct by their key before the lazy lists, so a repeated key can never crash the app again.
  • Versions: desktop 0.2.7, Android 0.0.16 (both build files).

Sweep

Every items(..., key = ...) in desktop/: Library (fixed), Browse (fixed), Categories (fixed list, no key). Android builds its rows without keys, so it only showed the duplicate; the core fix covers it.

README checked: nothing user-visible changed.

Bugfix, refs the user's screenshot (no issue).


Generated by Claude Code

…second row

Polestar shipped new folders after it was installed. They matched the index
entry of the same repo and made a second Library row with the same key, and
the desktop list crashed on the repeated key. Both list keys are distinct now
too. Desktop 0.2.7, Android 0.0.16.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01HDZ3Vam2odMBr8q97WJtos
@Gulliby Gulliby self-assigned this Nov 29, 2026
@Gulliby
Gulliby merged commit d031001 into main Nov 29, 2026
4 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.

1 participant