Skip to content

fix(config): remove default.yaml, which paired text prompts with the tool-call model - #904

Open
EnesYilmazcode wants to merge 1 commit into
SWE-agent:mainfrom
EnesYilmazcode:fix/899-remove-default-yaml
Open

fix(config): remove default.yaml, which paired text prompts with the tool-call model#904
EnesYilmazcode wants to merge 1 commit into
SWE-agent:mainfrom
EnesYilmazcode:fix/899-remove-default-yaml

Conversation

@EnesYilmazcode

Copy link
Copy Markdown
Contributor

Summary

default.yaml told the model to answer in mswea_bash_command text blocks and repeated that guidance in its format_error_template, but hello_world.py paired it with the default model class, which only parses native tool calls. A model that followed the prompts could only loop through format errors into RepeatedFormatError.

Rather than fixing the template, this deletes the config, as suggested in #899 ("might actually just get rid of default.yaml? I guess it's only used in hello_world.py right now") and on #900 ("it's also not really used by anything but demos, so might actually just remove the whole config").

Changes:

  • hello_world.py (the only runtime consumer) now loads mini.yaml
  • the four test files that used default.yaml as their text-format agent config (tests/agents/test_default.py, tests/agents/test_interactive.py, tests/run/test_cli_integration.py, tests/run/test_save.py) now load mini_textbased.yaml, which has the same text templates
  • dropped the default.yaml line from the config README

No references to default.yaml remain after this.

Test

The four updated test files give identical results on this branch and on main. DefaultAgent instantiates cleanly with mini.yaml's agent config, so hello_world.py still works.

Fixes #899

…tool-call model

default.yaml told the model to answer in mswea_bash_command text blocks
and repeated that guidance in its format_error_template, but the default
model class only parses native tool calls, so a model that followed the
prompts could only loop through format errors into RepeatedFormatError.
hello_world.py (the only runtime consumer) now loads mini.yaml; tests
that used default.yaml as their text-format agent config now load
mini_textbased.yaml.
@codecov

codecov Bot commented Jul 11, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

Files with missing lines Coverage Δ
src/minisweagent/run/hello_world.py 88.88% <ø> (ø)

... and 1 file with indirect coverage changes

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

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.

The default model class uses the wrong format_error_template

1 participant