Skip to content

fix(team): persist confirmed model changes - #3581

Open
Inference1 wants to merge 1 commit into
iOfficeAI:mainfrom
Inference1:fix/team-model-persistence
Open

fix(team): persist confirmed model changes#3581
Inference1 wants to merge 1 commit into
iOfficeAI:mainfrom
Inference1:fix/team-model-persistence

Conversation

@Inference1

@Inference1 Inference1 commented Jul 13, 2026

Copy link
Copy Markdown

Pull Request

Description

Persists a Team member model only after the ACP runtime confirms the requested switch. The Team header now calls the Team model endpoint through a success callback, while rejected or timed-out runtime changes leave the persisted Team roster untouched.

The persisted Team model is also used as the selector fallback during reloads, with regression coverage across the IPC bridge, selector, and model hook.

Closes #3566

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 — no lint errors (skip if no .ts/.tsx changed)
  • bunx tsc --noEmit — no type errors (skip if no .ts/.tsx changed)
  • bunx vitest run — tests pass
  • i18n validated (bun run i18n:types + node scripts/check-i18n.js) — only if src/renderer/, locales/, or src/common/config/i18n/ changed; N/A otherwise
  • New/changed user-facing text uses i18n keys (no hardcoded strings)

Runtime Verification

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

Screenshots

N/A — no visual changes.

Additional Context

Depends on iOfficeAI/AionCore#613 for the Team persistence endpoint and background-message behavior reported in #3566.

@codecov

codecov Bot commented Jul 13, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 87.50000% with 1 line in your changes missing coverage. Please review.

Files with missing lines Patch % Lines
...kages/desktop/src/renderer/pages/team/TeamPage.tsx 50.00% 1 Missing ⚠️

📢 Thoughts on this report? Let us know!

@Inference1

Copy link
Copy Markdown
Author

@yunlzheng Would you please review this pr?

@Inference1

Copy link
Copy Markdown
Author

@geeknees Would you please review this pr?

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.

[Bug]: v2.1.33 Team 模型切换未持久化,且 team_send_message 因 active run 丢失连续失败

1 participant