Skip to content

fix: preserve model field on agent resume - #1000

Merged
namastex888 merged 1 commit into
devfrom
fix/resume-model-field
Apr 2, 2026
Merged

namastex888 merged 1 commit into
devfrom
fix/resume-model-field

Conversation

@namastex888

Copy link
Copy Markdown
Contributor

Summary

  • Add model: dirEntry?.model to buildResumeParams() — agents were losing their configured model on resume, falling back to default

One-liner. Found by Vegapunk/Lilith + Shaka analysis.

buildResumeParams was missing the model field, causing agents to
fall back to the default model on resume instead of keeping their
configured model from the agent directory.
@coderabbitai

coderabbitai Bot commented Apr 2, 2026

Copy link
Copy Markdown

Important

Review skipped

Auto reviews are disabled on base/target branches other than the default branch.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: ASSERTIVE

Plan: Pro

Run ID: e68d5349-86f6-4b76-ae90-993b11523fc2

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch fix/resume-model-field

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Code Review

This pull request updates the buildResumeParams function in src/term-commands/agents.ts to include the model property from dirEntry when resuming an agent session. As there are no review comments provided, I have no feedback to offer.

@namastex888
namastex888 merged commit 49d5027 into dev Apr 2, 2026
6 checks passed
@namastex888
namastex888 deleted the fix/resume-model-field branch April 10, 2026 16:18
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.

2 participants