Skip to content

fix(server): stop listing auto as available because a remote's own auto is available - #473

Merged
GeiserX merged 2 commits into
mainfrom
fix/issue-470-i470
Oct 28, 2026
Merged

GeiserX merged 2 commits into
mainfrom
fix/issue-470-i470

Conversation

@GeiserX

@GeiserX GeiserX commented Oct 28, 2026 •

Copy link
Copy Markdown
Owner

GET /v1/server said auto was available whenever a remote listed its own auto as available. But the remote's auto resolves on the remote. A job that names no model runs what auto resolves to here (server.default_model, or what the hardware picks), and that is what gets forwarded. So the flag and the job route could disagree in both directions:

  • Here auto is best, the remote offers fast and its own auto. auto was listed as available, but a job with no model was refused, since no remote offers best.
  • Here auto is fast, the remote offers fast but its own auto is not available. auto was listed as unavailable, though a job with no model was forwarded and ran.

Fix

In src/main/api/routes/server.ts, auto now counts a remote the way the job route sends it the job:

The remote's own auto flag no longer counts. Other presets are unchanged. An Akou-Forwarded probe still gets only what this server runs itself.

The mirrors already work this way. /healthz models_ready (defaultOnDisk) and the queue's namesOf filter auto out of the names they match. The Wyoming info listing does not look at remotes, and job admission never matched a remote's auto.

Evidence

New tests/server-auto-remote.e2e.test.ts: both cases from the issue, each on a server with an engine and on one without. Every case also checks a job with no model against the flag (refused vs 202 and reaches the remote), and checks that a forwarded probe is not offered auto.

  • With server.ts reverted to main: 0 pass, 4 fail.
  • With the fix: 4 pass.
  • bun run check on the branch (macOS): 3510 pass, 37 skip, 0 fail, floor met. CI green on every leg.

Fixes #470

…by a remote's auto

GET /v1/server marked auto available whenever a remote offered its own
auto, which resolves on the remote. A job that names no model runs what
auto resolves to here, and that is what gets forwarded, so the flag
could say yes to a job the route refuses and no to one it forwards.
auto now counts a remote only the way the job route would send it the
job: by the preset or recognizer it resolves to here.

Fixes #470
@coderabbitai

coderabbitai Bot commented Oct 28, 2026

Copy link
Copy Markdown

Warning

Review limit reached

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

Next included review available in 58 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available.

Learn how review limits work.

Review configuration:

Run configuration
Commits

Reviewing files that changed from the base of the PR and between 5db1812 and d82364f.

Files selected for processing: 2
  • src/main/api/routes/server.ts
  • tests/server-auto-remote.e2e.test.ts
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@GeiserX GeiserX changed the title fix(server): stop listing auto as available because a remote's own auto is fix(server): stop listing auto as available because a remote's own auto is available Oct 28, 2026
@GeiserX
GeiserX merged commit 912f637 into main Oct 28, 2026
29 checks passed
@GeiserX
GeiserX deleted the fix/issue-470-i470 branch October 28, 2026 13:32
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.

GET /v1/server marks auto available from a remote's own auto, not this server's default

1 participant