Skip to content

fix(team): resolve aionrs auto model fallback#3569

Open
DigitalNomad-Chat wants to merge 2 commits into
iOfficeAI:mainfrom
DigitalNomad-Chat:fix/aionrs-auto-model
Open

fix(team): resolve aionrs auto model fallback#3569
DigitalNomad-Chat wants to merge 2 commits into
iOfficeAI:mainfrom
DigitalNomad-Chat:fix/aionrs-auto-model

Conversation

@DigitalNomad-Chat

Copy link
Copy Markdown

Description

Fix team creation for custom Aionrs assistants whose model setting is
“remember last model” but has no remembered model yet.

Previously, the team model resolver returned default. The backend then
persisted aionrs as the provider ID, causing:

Provider 'aionrs' not found

The resolver now loads configured providers and selects the first enabled
model when no remembered model exists. It skips disabled providers and
providers without available models.

Related Issues

Type of Change

  • fix — Bug fix (non-breaking change which fixes an issue)
  • feat — New feature (non-breaking change which adds functionality)
  • perf — Performance improvement
  • refactor — Code restructuring (no behavior change)
  • Breaking change (fix or feature that would break existing functionality)
  • docs — Documentation update

Atomic PR Checklist (Rule 1)

  • This PR contains exactly one feature or bug fix that cannot be further decomposed
  • The PR title follows Conventional Commit format: <type>(<scope>): <subject> (English)

Local Checks (Rule 3)

  • bun run format — formatting passes
  • bun run lint — blocked by an existing invalid oxlint rule: no-await-thenable
  • bunx tsc --noEmit — blocked by an existing builder-util-runtime version conflict
  • Focused resolver tests pass: 5/5
  • bunx vitest run — full suite not run
  • i18n validated — no i18n files changed
  • No new user-facing UI text was added

Runtime Verification

  • I have performed a self-review of my own code
  • Verified on macOS
  • Verified on Windows
  • Verified on Linux

Screenshots

Not applicable. This is a backend/model-resolution behavior fix.

Additional Context

Focused test command:

pnpm exec vitest run tests/unit/renderer/teamCreateModelResolver.test.ts

@codecov

codecov Bot commented Jul 13, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 50.00000% with 3 lines in your changes missing coverage. Please review.

Files with missing lines Patch % Lines
...r/pages/team/components/teamCreateModelResolver.ts 50.00% 1 Missing and 2 partials ⚠️

📢 Thoughts on this report? Let us know!

@DigitalNomad-Chat

Copy link
Copy Markdown
Author

The formatting issue has been fixed in commit 758815f62.

The PR checks now pass for TypeScript, Oxlint, and Oxfmt. CodeQL is still pending, while the “Cancel if PR closed” workflow is skipped as expected.

Please let me know if any additional changes are needed.

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