Skip to content

Plugin list "Show more" stops adding plugins after 60 because the server caps the limit #238

Closed

Description

@nixfred

What happens

PluginBrowser (web/src/screens/Plugins.tsx, line 160) grows the page with setLimit((l) => l + 30) and requests omarchy.plugins with {q, category, sort, limit}; it never sends an offset. The server (list in omarchyd/omarchy-plugins.mjs, line 101) clamps the limit:

const limit = Math.min(60, Math.max(1, Math.floor(Number(input?.limit) || 30)))

So the first click (30 to 60) works, but the second click asks for 90 and the server still returns the first 60. data.total > data.plugins.length stays true, so the button keeps showing "Show more (N more)" and further clicks do nothing visible. Plugins past the 60th are unreachable except by searching or filtering.

How to reproduce

Needs a registry with more than 60 matching plugins. In the Omarchy plugins view press "Show more" three times. Expected: 30, 60, 90 plugins. Actual: 30, 60, 60 with the button still offering more. (Found by reading the code; I did not run it in a browser.)

Suggested fix

Send an offset and append pages, or raise the server cap to match the client's growth.

Environment

Omarchy Server main (0786ba9, 0.9.50), Node 26.

Activity

  1. calledtoconstruct commented on Nov 22, 2026

    @calledtoconstruct
    Collaborator

    Working to resolve this.

    No open pull request references this issue, and no one has commented that they are working on it.

    #163, #653, #472, #797, #204, #205, #206, #207, #654, #806, #798, #264, #258, and #360 share storage, setup, and new machines with this and will land in one pull request.

    🤖 Generated with Grok 4.7

  2. calledtoconstruct commented on Nov 22, 2026

    @calledtoconstruct
    Collaborator

    Thanks @nixfred. Show more asks for the next page, so the plugin list continues past 60. This ships in #879.

    🤖 Generated with Grok 4.7

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions