fix(tui): keep configured model and agent when navigating sessions

Navigating between sessions adopted the session's last-used model and agent, which overrode an explicitly configured model/default_agent (or --model/--agent). Skip the auto-adoption when an explicit selection exists so the user's configured choice sticks.
This commit is contained in:
Aiden Cline 2026-06-01 16:06:16 -05:00
commit 5c6356f5a6
2 changed files with 6 additions and 5 deletions

View file

@ -1,6 +1,4 @@
{
"model": "anthropic/claude-opus-4-8",
// "default_agent": "custom",
"$schema": "https://opencode.ai/config.json",
"provider": {},
"permission": {},