feat(conversation): Auto phase routing with aionrs model hot-swap - #4146
feat(conversation): Auto phase routing with aionrs model hot-swap#4146JeffC0628 wants to merge 7 commits into
Conversation
|
Thanks for this — the direction is right and the engineering hygiene is good (self-contained I ran the full gate locally on
Note for reviewers: the Below are the blocking and should-fix items before merge. 🔴 Blocking: unmerged AionCore dependency + a regression on the existing model-switch pathThis PR depends on AionCore#923, which is still open. The Auto path itself degrades gracefully ( The problem is const sameProvider = conversation.model?.id === selected.id;
if (runtimeView.activeTurnId && !sameProvider) { /* stop */ }This changes behaviour for all manual model switches, not just Auto. Without Core#923, Core does not hot-swap either, so a user switching models mid-turn within the same provider gets a UI that says the model changed while the turn keeps running on the old one — a silent no-op regression on a path everyone uses. Please either land and release Core#923 first, or split this 🟠 Vision filtering is dead code — image sends can pick a text-only model
🟠 The tier heuristics rank the wrong models, and the preference switch is a no-opI ran Four concrete problems:
Also, 🟠
|
Closes iOfficeAI#4143 Co-authored-by: Cursor <cursoragent@cursor.com>
Closes iOfficeAI#4143 Co-authored-by: Cursor <cursoragent@cursor.com>
Phase 2 for iOfficeAI#4143: decide planner/worker before each send, hot-swap via config-options when provider matches, show Auto · phase/model. Depends on AionCore aionrs model hot-swap. Co-authored-by: Cursor <cursoragent@cursor.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
Restore stop-on-model-change during active turns, pass requireVision when attachments include images, fix tier heuristics/preference scoring, and hide Auto settings when no providers are configured. Co-authored-by: Cursor <cursoragent@cursor.com>
2ed4140 to
6ca8e31
Compare
|
Addressed @IceyLiu review feedback in latest push (rebased on main):
Superseded #4144 (closed). Auto hot-swap at send time still depends on AionCore #923. |
2 similar comments
|
Addressed @IceyLiu review feedback in latest push (rebased on main):
Superseded #4144 (closed). Auto hot-swap at send time still depends on AionCore #923. |
|
Addressed @IceyLiu review feedback in latest push (rebased on main):
Superseded #4144 (closed). Auto hot-swap at send time still depends on AionCore #923. |
|
Addressed @IceyLiu review feedback (rebased on main, CI green):
#4144 closed (superseded). Auto per-turn hot-swap still depends on AionCore #923. |
Use loaded user turns instead of session-local counter so reopened Auto conversations route to worker correctly. Add applyAutoModelForTurn and vision/history helper tests. Co-authored-by: Cursor <cursoragent@cursor.com>
|
Additional hardening after self-review:
|
Co-authored-by: Cursor <cursoragent@cursor.com>
Summary
config-options/modelwhen the provider matches.Auto · {phase}/{model}; Guid first create seeds planner.Test plan
bun run test -- tests/unit/renderer/autoModelRelated: Phase 1 PR #4144