Skip to content

fix(models): match relay IDs to official metadata - #1262

Merged
vastsa merged 2 commits into
mainfrom
fix/relay-official-id-match
Sep 30, 2026
Merged

vastsa merged 2 commits into
mainfrom
fix/relay-official-id-match

Conversation

@vastsa

@vastsa vastsa commented Sep 30, 2026 •

Copy link
Copy Markdown
Owner

Summary

  • Resolve relay model IDs by exact route leaf, preferring the official publisher's Pi record for supported model families.
  • Fall back only for whitelisted deployment/context suffixes such as -test and -1m; preserve the served wire ID and user-pinned limits.
  • Define __dirname for the ESM Electron main bundle so the required boot E2E runs.

Validation

  • Desktop tests: 3309 passed
  • Desktop typecheck, Biome lint, style-token check: passed
  • Electron build: passed
  • E2E smoke: 23 passed; 2 live-provider cases skipped (no API key)
  • Electron boot E2E: passed, including 800-session responsiveness probe

Resolve unidentified relay models from an exact route leaf and prefer the published record for their owning ID family. Fall back only for whitelisted deployment/context suffixes while preserving the served ID and stored limit pins.

Add relay matching and binding regression coverage, and document the conservative suffix rules.
Electron Main is emitted as an ES module, so Node does not provide the CommonJS __dirname global used for preload and asset paths. Define it from import.meta.dirname in the main bundle to keep Electron booting under the production module format.

Add a build-contract regression test for the ESM path mapping.
Copilot AI balanced review requested due to automatic review settings September 30, 2026 16:02

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

@vastsa
vastsa merged commit 0b557ec into main Sep 30, 2026
3 of 4 checks passed
@vastsa
vastsa deleted the fix/relay-official-id-match branch September 30, 2026 16:19
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.

2 participants