Skip to content

Convert timeout template to use Jinja2 for consistency#82

Open
sarvanithin wants to merge 1 commit intowithmartian:mainfrom
sarvanithin:feat/jinja2-timeout-template
Open

Convert timeout template to use Jinja2 for consistency#82
sarvanithin wants to merge 1 commit intowithmartian:mainfrom
sarvanithin:feat/jinja2-timeout-template

Conversation

@sarvanithin
Copy link
Copy Markdown
Contributor

Converts the timeout template in MiniSWECodeAgent to use Jinja2 instead of Python string formatting for consistency with other template rendering functions. Updates template syntax from {variable} to {{ variable }}. Improves code consistency and maintainability. Tested and verified correct rendering. Resolves TODO in mini_swe_agent.py line 109.

Copy link
Copy Markdown
Contributor

@joshgreaves joshgreaves left a comment

Choose a reason for hiding this comment

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

This builds on your other PR, so it's hard to separate the changes. Please LMK once it only contains the changes described in the description and I'll take another look.

- Update _render_timeout_template to use Jinja2.Template instead of str.format()
- Convert _TIMEOUT_TEMPLATE to use Jinja2 syntax ({{ variable }} instead of {variable})
- Add docstring to _render_timeout_template function
- Improves consistency with other template rendering functions
- Tested and verified correct rendering

Resolves TODO in mini_swe_agent.py:109
@sarvanithin sarvanithin force-pushed the feat/jinja2-timeout-template branch from 323c6f6 to 4c7fa55 Compare February 18, 2026 23:16
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