Skip to content

fix(web): Stop the catalog refresh from always timing out - #120

Merged
4ndreello merged 2 commits into
mainfrom
fix/catalog-refresh-timeout
Sep 25, 2026
Merged

4ndreello merged 2 commits into
mainfrom
fix/catalog-refresh-timeout

Conversation

@4ndreello

Copy link
Copy Markdown
Owner

The setup page's catalog refresh timed out on nearly every click. Two independent problems:

  • The batch discovery cap was 12 s, but the omp driver budgets up to 10 s for models refresh plus 12 s for models --json. Discovery is all-or-nothing by design (WEB-59), so one slow omp run failed the whole refresh. The cap is now 25 s. It is an upper bound only: a real refresh on my machine finishes in about 3.5 s once every harness answers.
  • OpenCode v2 removed models --refresh (it exits 1 and prints usage). The driver caught the error and returned [], so every refresh cached zero opencode models. It now retries with the plain models listing, which returns 695 models in about 250 ms on opencode v2.0.15.

I considered returning partial results when one harness is slow, but that contradicts WEB-59 (a refresh replaces the cache atomically) and would need its own spec change. Raising the cap fixes the observed failure without changing that contract.

4ndreello and others added 2 commits September 24, 2026 22:06
The omp driver can spend 10 s on `models refresh` plus 12 s on
`models --json`, so the 12 s batch cap failed the whole refresh
whenever omp was slow. Discovery is all-or-nothing (WEB-59), so one
slow harness meant a timeout every time. Raise the cap to 25 s; the
call still returns as soon as every harness answers.

Co-Authored-By: Claude <noreply@anthropic.com>
OpenCode v2 removed `models --refresh` and exits 1 with its usage
text. The driver swallowed the error, so every catalog refresh cached
zero opencode models. Retry with the plain `models` listing.

Co-Authored-By: Claude <noreply@anthropic.com>
@sonarqubecloud

Copy link
Copy Markdown

@4ndreello
4ndreello merged commit 591d316 into main Sep 25, 2026
4 checks passed
@4ndreello
4ndreello deleted the fix/catalog-refresh-timeout branch September 25, 2026 01:08
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