Skip to content

feat(aionrs): hot-swap model without agent rebuild - #923

Open
JeffC0628 wants to merge 1 commit into
iOfficeAI:mainfrom
JeffC0628:feat/aionrs-hot-swap-model
Open

feat(aionrs): hot-swap model without agent rebuild#923
JeffC0628 wants to merge 1 commit into
iOfficeAI:mainfrom
JeffC0628:feat/aionrs-hot-swap-model

Conversation

@JeffC0628

Copy link
Copy Markdown

Summary

  • Expose aionrs config-options/model and apply via AgentEngine::apply_config_update (no kill/rebuild).
  • Mid-turn switches queue as pending_next_turn and apply before the next send.
  • Same-provider_id PATCH conversation.model hot-swaps; cross-provider still kills and rebuilds.

Enables AionUi Auto planner/worker Phase 2 (iOfficeAI/AionUi#4143).

Test plan

  • cargo test -p aionui-ai-agent --lib aionrs_set_config_option
  • Same-provider model PATCH while session warm → no task kill
  • Cross-provider model PATCH → kill + rebuild on next ensure
  • PUT .../config-options/model idle → Observed; during turn → PendingNextTurn

Same-provider model changes via config-options/model and PATCH now call AgentEngine::apply_config_update instead of killing the task. Enables Auto planner/worker routing (AionUi #4143 Phase 2).

Co-authored-by: Cursor <cursoragent@cursor.com>
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