Skip to content

feat(models): connect Magpie from model settings - #3847

Merged
wgqqqqq merged 2 commits into
openBitFun:mainfrom
wgqqqqq:wgq/magpie-integration
Nov 9, 2026
Merged

wgqqqqq merged 2 commits into
openBitFun:mainfrom
wgqqqqq:wgq/magpie-integration

Conversation

@wgqqqqq

@wgqqqqq wgqqqqq commented Nov 9, 2026 •

Copy link
Copy Markdown
Collaborator

Summary

Adds Magpie as an inline connection in Settings → Models. Detect the gateway, refresh its model catalog, and import selected models into the existing model list; stable model IDs preserve defaults and model-pool references. Existing connections can be edited without dropping models that disappear from the catalog.

Discovery verifies /api/hello before reading /v1/models, distinguishes offline/authentication/catalog failures, and runs on the selected inference host. A negotiated magpie_discovery_v1 capability gates older peers. Loopback discovery and model requests bypass outbound proxies, while remote endpoints retain the configured proxy policy.

Refreshing keeps the current catalog, selection, search and scroll mounted, avoiding the settings-page jump. Includes English, Simplified Chinese and Traditional Chinese copy.

Validation

  • 209 focused model-settings, import and peer capability tests passed.
  • Rust gateway discovery, loopback/proxy transport, persisted DTO compatibility, remote operation registry, CLI dispatch closure and 9 Desktop remote-workspace policy tests passed.
  • Web type checking, Appearance/theme checks, i18n audit, core boundaries and generated capability checks passed. Frontend lint passed with existing warnings.
  • Local native UI exercised with a real Magpie gateway, including repeated catalog refreshes and offline detection.

Physical Peer Device, SSH, Remote Control and Detached Dispatch scenarios were not exercised; peer routing and unsupported-host behavior are covered by fixtures.

@wgqqqqq
wgqqqqq merged commit 0557f79 into openBitFun:main Nov 9, 2026
13 checks passed
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