Skip to content

Models list is completely empty on BOTH 2.2.5 and 2.2.4 (Windows 11) #61481

Closed as not planned

Description

@vana30421-cpu

Description

I am still experiencing a critical bug where the models list is completely empty on OpenCode Desktop (Windows 11).

Current status:

In the settings menu, models are toggled ON (e.g., OpenCode Free).

But in the chat interface, the search window says "No models found" (Модели не найдены).

I have tried OPENCODE_DISABLE_MODELS_FETCH=1, cleared the cache, and fully reinstalled the app 7 times. Nothing works.

CRITICAL UPDATE: I downgraded to version 2.2.4, and the problem is exactly the same. The models list is still completely empty. This means the issue is not just the 10-second lock in 2.2.5. The fallback to the bundled/cached model catalog is fundamentally broken in my environment on both versions.

Attached:

Image

opencode.log

Screenshot showing "No models found".

Full server log (message.txt).

What is the exact fix for this? If downgrading doesn't help, how can I force OpenCode to load the built-in model catalog locally without network access?

Plugins

No response

OpenCode version

No response

Steps to reproduce

No response

Screenshot

No response

Operating System

No response

Terminal

No response

Activity

  1. opencodejr commented on Nov 3, 2026

    @opencodejr
    Contributor

    Thanks for the extra detail, and sorry this is still blocking you.

    I think this is a duplicate of #61477, your earlier report, where this was reproduced. Your log there showed no models.dev fetch at all. Every 503 took exactly 5 seconds, which is how long the server waits for plugins to start. The opencode-token-tracker@latest plugin took about 140 seconds to download, and until a plugin finishes loading, /api/model, /api/provider and /api/agent return 503, so the model list stays empty. That explains what you're seeing:

    • 2.2.4 behaves the same: the plugin wait isn't specific to 2.2.5.
    • OPENCODE_DISABLE_MODELS_FETCH=1 doesn't help: it only affects models.dev, which isn't involved here.
    • Reinstalling and clearing the cache doesn't help either: each clean install downloads the plugin again.

    The built-in model catalog is still there. The app just can't serve it while a plugin is loading. Until this is fixed, the workaround from #61477 is to remove opencode-token-tracker@latest from the plugin list in your opencode.json, then restart the app. Pinning a specific version, or making sure npm can be reached quickly, may also help.

    Possible duplicates and related issues, ordered from most to least likely:

    If the list is still empty after you remove the plugin, please say so on #61477 and add the opencode.log from this issue there. Keeping everything in one issue helps more than opening new ones.

    The bot will close this issue as a duplicate in 1 day unless you reply explaining how your problem is different.

  2. vana30421-cpu commented on Nov 3, 2026

    @vana30421-cpu
    Author

    I followed your instructions to remove opencode-token-tracker. I edited opencode.json (removed the plugin entry), killed all processes, and renamed opencode.db to force a fresh database.

    However, the models list is now completely empty (not just 503, but no models at all).

    I attached my current opencode.json and a fresh opencode.log.
    Please advise: is this a network block to models.dev, a broken cache, or is the plugin still loading from the global cache despite the config change?

    Что прикрепить к сообщению:

    Твой текущий файл opencode.json.

    Свежий лог из папки %USERPROFILE%.local\share\opencode\log (самый новый файл).

    opencode.log

  3. opencodejr commented on Nov 3, 2026

    @opencodejr
    Contributor

    Thanks for trying that and for the new log. To answer your question: it isn't a block on models.dev or a broken cache. The log has no models.dev request and no catalog error. It's the same plugin wait as in #61477, but now the other plugins are causing it.

    What the log shows (it says version 2.2.4):

    • The token tracker is gone. After your config change at 20:53, opencode-token-tracker no longer loads.
    • Three more npm plugins are still configured: @ramtinj95/opencode-tokenscope@latest, opencode-rag-plugin@latest and @bandonker/opencode-context-pruner. After startup they took about 2 to 13 minutes to load. Until every plugin has loaded, /api/model, /api/provider and /api/agent return 503 after 5 seconds, so the model list is empty.
    • After a config change, the plugins are downloaded again. After your change at 21:00, opencode-tokenscope went into a new cache folder. opencode-context-pruner still hadn't loaded when the log ended at 21:05, so the 503s continued.
    • @ramtinj95/opencode-tokenscope never works. It fails every time with Plugin must export a default definition with an id and an effect or setup function, so it isn't compatible with this version and only adds to the wait.
    • The server was never actually restarted. The log has a single cli starting line, and the same run covers 20:29 to 21:05. Renaming opencode.db doesn't affect this.

    To get the models back:

    1. Remove all the npm plugins from the plugin list (or comment them out) in both config files:
      • C:\Users\vana3\.config\opencode\opencode.json
      • C:\Users\vana3\OneDrive\Документы\Проект по умолчанию\.opencode\opencode.json
    2. Quit OpenCode Desktop completely, including the background opencode service process (check Task Manager), then start it again.
    3. Once models show up, you can add plugins back one at a time. Pinning exact versions (for example [email protected]) instead of @latest may also help.

    Unrelated to the empty list, the log shows two problems in your project's .opencode\opencode.json. {file:...} paths are resolved from the folder the config file is in, so ./.opencode/prompts/build.txt points to .opencode\.opencode\prompts\build.txt. Use ./prompts/build.txt and ./prompts/plan.txt instead. The log also says permissions is malformed, so it is skipped, and compaction.prune is no longer supported.

    The opencode.json you mentioned didn't come through, only the log. If models are still missing after you remove all the plugins and fully restart, please post that config and the new log on #61477. This is the same problem, so I'm still treating this issue as a duplicate of #61477.

  4. vana30421-cpu commented on Nov 3, 2026

    @vana30421-cpu
    Author

    I followed your instructions and removed all plugins from both the global and project configs. I also killed all background processes.

    Result: The 503 errors on the main screen are gone, and the model selection button is now visible. However, when I click it, the list is completely empty ("No models found").

    Since the plugins are no longer blocking the server, it seems the model catalog itself is not loading. Could the cache in opencode.db be corrupted, or is the fallback to the bundled catalog failing?

    (Attached: fresh opencode.log and my current opencode.json)

    opencode.log

  5. opencodejr commented on Nov 3, 2026

    @opencodejr
    Contributor

    Thanks, it's good to hear the 503s are gone. Removing the plugins fixed the part from #61477.

    The log doesn't show a broken catalog or a corrupted opencode.db. It has no models.dev request and no catalog or provider error. But it also doesn't show a fresh start. The log has only one cli starting line (20:29, version 2.2.4), and the same server process keeps running until 21:12. So the background service (opencode serve --service) was never restarted. Until 21:08 that same process was still loading opencode-tokenscope, opencode-rag-plugin and opencode-context-pruner. Successful responses don't seem to appear in this log, so it can't tell us what the model list request actually returned.

    Could you try this and send what you get?

    1. Quit OpenCode Desktop, then in Task Manager end every opencode process that's left. The easiest way to be sure is to restart Windows.

    2. Start the app, open the model picker, and check whether it's still empty.

    3. Attach the newest log from %USERPROFILE%\.local\share\opencode\log. Its first line should be a new cli starting with the time you started the app.

    4. Paste the contents of both config files into a comment, inside a code block, with any API keys removed. The attached opencode.json didn't come through again:

      • C:\Users\vana3\.config\opencode\opencode.json
      • C:\Users\vana3\OneDrive\Документы\Проект по умолчанию\.opencode\opencode.json

      Please check in particular for enabled_providers, disabled_providers or provider entries. These can hide all models.

    5. Does the list stay empty when you open a different folder than Проект по умолчанию?

    If the list is still empty after a real restart with no plugins, this is a different problem from #61477, and these details will let us look into it.

  6. marked b #61495 as a duplicate of this issue on Nov 4, 2026
  7. opencodejr commented on Nov 6, 2026

    @opencodejr
    Contributor

    We haven't heard back since we asked for the details below, so I'm closing this for now.

    Removing the plugins fixed the 503s (the plugin problem from #61477). Your last log didn't show why the model list then stayed empty. It came from the same server process that had been running since 20:29, so we couldn't see what happens after a real restart. The opencode.json files also didn't come through.

    If the list is still empty, please reply here with:

    • a log from a real restart (quit the app, end all opencode processes or restart Windows; the log should begin with a new cli starting line)
    • the contents of both config files, with any API keys removed, especially any enabled_providers, disabled_providers or provider entries
    • whether the list is also empty when you open a different folder

    We can reopen the issue and look into it then.

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

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions