Skip to content

[Bug]: /model TUI picker hard-caps results at 50 entries, blocking NVIDIA (and other) providers with 100+ #40601

Closed as not planned

Description

@italianmob71

Bug Description

models/endpoints

Labels:
bug, tui, model-picker, nvidia, usability

Description:

Problem
The interactive /model (or hermes model) picker in the Hermes TUI is hard-coded to a maximum of 50 results. This prevents users from seeing the full list of available models when using providers that return a large number of endpoints — most notably NVIDIA NIM / integrate.api.nvidia.com, which currently exposes ~120 free/public models.

As a result, many valid models (including the recently expanded NVIDIA catalog) are silently truncated and never appear in the picker, forcing users to manually type full model IDs.

These changes are not persistent across updates and are not suitable for a production workflow.

This is a usability blocker for anyone using NVIDIA, OpenRouter (large catalogs), or custom providers that return many models.

Just updated literally 30 minutes ago to the latest pull.

Steps to Reproduce

  1. Run hermes model (or type /model in an active session).
  2. Select NVIDIA as the provider (or any provider returning >50 models).
  3. Observe that the interactive list stops at 50 entries even when more models are available from the provider API.

Expected Behavior

Expected Behavior

  • The picker should either:
    • Show all available models (or a reasonably high default such as 200), or
    • Make the limit configurable via config.yaml (e.g. model_picker.max_results or ui.model_picker.limit).

Actual Behavior

Hard-coded limit of 50 in the internal Python code forces truncation.

Affected Component

Other

Messaging Platform (if gateway-related)

No response

Debug Report

no bug output necessary for this issue

Operating System

macOS 26.3

Python Version

3.11.15

Hermes Version

0.16.0

Additional Logs / Traceback (optional)

Root Cause Analysis (optional)

Workaround Applied
Directly edited the relevant Python source files inside the Hermes installation to raise the limit from 50 to 200. This allowed the full NVIDIA catalog (and other large providers) to appear in the picker.

Files modified (direct source edits):

  • The core model picker / TUI result-limiting logic (exact file paths depend on installation method, typically under ~/.hermes/hermes-agent/ or the installed package location).

Proposed Fix (optional)

Requested Fix

  1. Remove or significantly raise the hard-coded 50-entry cap.
  2. Add a proper configuration option (preferred) so users can control the limit without editing Python files.
  3. Ideally expose the full result set with pagination or fuzzy filtering when the list is very long.

Are you willing to submit a PR for this?

  • I'd like to fix this myself and submit a PR

Activity

  1. added
    type/bugSomething isn't working
    P3Low — cosmetic, nice to have
    comp/tuiTerminal UI (ui-tui/ + tui_gateway/)
    comp/cliCLI entry point, hermes_cli/, setup wizard
    on Jun 6, 2026
  2. galvn commented on Jun 12, 2026

    @galvn

    I can confirm this also affects Hermes Desktop, not only the TUI /model flow.

    Tested on Windows Hermes Desktop with NVIDIA provider.

    Affected Desktop surfaces:

    • Settings / Edit Model picker
    • Session bottom-right model menu

    Both surfaces eventually share the same backend path:

    Desktop Settings:
      /api/model/options
      -> hermes_cli.inventory.build_models_payload(...)
      -> hermes_cli.model_switch.list_authenticated_providers(...)
    
    Session bottom-right model menu:
      gateway.request("model.options", { session_id })
      -> tui_gateway/server.py model.options
      -> hermes_cli.inventory.build_models_payload(...)
      -> hermes_cli.model_switch.list_authenticated_providers(...)
    

    So the issue is not specific to one UI entry point. The truncation happens inside list_authenticated_providers() after the provider catalog has already been discovered.

    I locally tested a minimal workaround that only changes hermes_cli/model_switch.py:

    def _limit_models_for_picker(provider_slug: str, model_ids: list[str]) -> list[str]:
        if str(provider_slug or "").strip().lower() == "nvidia":
            return list(model_ids)
        return list(model_ids[:max_models])

    Then replace the picker truncation sites like:

    top = model_ids[:max_models]

    with:

    top = _limit_models_for_picker(hermes_id, model_ids)

    and equivalent calls for the other provider-section variables.

    Validation:

    • python -m py_compile hermes_cli/model_switch.py passed
    • With a mocked NVIDIA catalog of 120 models and max_models=50, the NVIDIA row returned models=120 and total_models=120
    • Manual Hermes Desktop testing confirmed both Settings/Edit Model and the session bottom-right model picker displayed the expanded NVIDIA catalog correctly

    This workaround intentionally does not require a local nvidia-models.json; it keeps the live NVIDIA /v1/models catalog as the data source and only avoids truncating NVIDIA after discovery.

  3. konsisumer commented on Jul 1, 2026

    @konsisumer

    These issues look like facets of one underlying problem: #40601, #43052, #43409, #43528.

    They were grouped by a semantic pass as different symptoms of one underlying problem in comp/cli. A single coordinated fix may resolve them together — flagging for visibility; no action has been taken on the individual issues.

    Automated root-cause grouping. Reply to correct if these are unrelated.

  4. teknium1 commented on Jul 14, 2026

    @teknium1
    Collaborator

    This is an automated hermes-sweeper review. The reported interactive-picker cap is already fixed on current main.

    • Commit 9705e7944ae46401ab9cb011ebd9fbcd5667b981 (fix(picker): remove max_models=50 cap in interactive model pickers) removed explicit max_models=50 calls from the CLI picker, TUI model.options RPC, and Desktop REST model-options path.
    • hermes_cli/inventory.py:111 now defaults max_models to None, preserving full picker lists through the shared inventory path.
    • tui_gateway/server.py:12902 and hermes_cli/web_server.py:5370 build their picker payloads without a cap.
    • tests/hermes_cli/test_inventory.py:934 covers a 100-model provider payload and asserts all 100 are returned.
    • The fix is contained in release v2026.6.19.

    This also addresses the shared Desktop backend route identified in @galvn's comment.

  5. added
    provider/otherCalling models through a small provider without its own label (for example Kilo Code, Hugging Face I
    and removed on Oct 17, 2026
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

    P3Low — cosmetic, nice to havecomp/cliCLI entry point, hermes_cli/, setup wizardcomp/tuiTerminal UI (ui-tui/ + tui_gateway/)provider/otherCalling models through a small provider without its own label (for example Kilo Code, Hugging Face Isweeper:implemented-on-mainSweeper: behavior already present on current maintype/bugSomething isn't working

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions