Skip to content

fix: honour --model flag when repl agent already exists#35

Merged
ankrgyl merged 1 commit into
ankrgyl:mainfrom
Shubhf:fix/30-repl-model-flag
May 30, 2026
Merged

fix: honour --model flag when repl agent already exists#35
ankrgyl merged 1 commit into
ankrgyl:mainfrom
Shubhf:fix/30-repl-model-flag

Conversation

@Shubhf

@Shubhf Shubhf commented May 29, 2026

Copy link
Copy Markdown
Contributor

Fixes #30

What changed

When exo repl --model X is passed and the named agent already exists,
the --model flag was silently dropped — no warning, no override.

Fix

  • If --model differs from the agent's stored model, print a warning so
    the user knows what's happening
  • Apply --model as a put_model_override on the conversation before
    starting the REPL, so it takes effect for that session only without
    permanently mutating the agent

Testing

Verified manually: warning appears and model override is applied for
the session.

When exo repl --model X is passed and the agent already exists,
the flag was silently ignored. Now:
- warns the user if --model differs from the agent's stored model
- applies --model as a per-session conversation override

Fixes ankrgyl#30

@ankrgyl ankrgyl left a comment

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for contributing!

@ankrgyl ankrgyl merged commit 71998b6 into ankrgyl:main May 30, 2026
3 checks passed
@ankrgyl

ankrgyl commented May 30, 2026

Copy link
Copy Markdown
Owner

wait actually i think this is solved in #31 which was sent first. so we will prefer that one.

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.

exo repl --model X is silently ignored when the agent already exists

2 participants