Skip to content

fix(acp): preserve session provider when switching models#2380

Merged
teknium1 merged 1 commit intomainfrom
hermes/hermes-40b195db
Mar 21, 2026
Merged

fix(acp): preserve session provider when switching models#2380
teknium1 merged 1 commit intomainfrom
hermes/hermes-40b195db

Conversation

@teknium1
Copy link
Copy Markdown
Contributor

Salvage of PR #2213 by @Gutslabs (cherry-picked cleanly).

ACP sessions lost their provider when switching models via /model provider:model or restoring sessions. The agent was recreated with the default config provider instead of the one the session was actually using.

Fix: threads provider/base_url/api_mode through _make_agent(), persists them in session metadata JSON, and restores them on session reload.

4 files, +139/-11. 106 ACP tests pass. Authorship preserved.

@teknium1 teknium1 merged commit 2e143fd into main Mar 21, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

1 participant