Skip to content

Comments

info oaitools fix#821

Merged
willccbb merged 1 commit intomainfrom
will/info-oaitools-fix
Feb 4, 2026
Merged

info oaitools fix#821
willccbb merged 1 commit intomainfrom
will/info-oaitools-fix

Conversation

@willccbb
Copy link
Member

@willccbb willccbb commented Feb 4, 2026

Description

Type of Change

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • Documentation update
  • Test improvement

Testing

  • All existing tests pass when running uv run pytest locally.
  • New tests have been added to cover the changes

Checklist

  • My code follows the style guidelines of this project as outlined in AGENTS.md
  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation
  • My changes generate no new warnings
  • Any dependent changes have been merged and published

Additional Notes


Note

Low Risk
Small, localized change to state initialization that only affects how oai_tools is sourced; low risk aside from potentially changing tool configuration precedence for some callers.

Overview
Fixes Environment.init_state tool discovery by robustly pulling oai_tools from input.info regardless of whether info is a dict (key lookup) or an object (attribute access), instead of incorrectly mixing hasattr with dict indexing.

This reduces crashes/incorrect defaults when initializing rollout state with tool configuration embedded in info, while preserving the existing fallback to self.oai_tools or an empty list.

Written by Cursor Bugbot for commit 7ec5247. This will update automatically on new commits. Configure here.

@willccbb willccbb merged commit e1f8a0b into main Feb 4, 2026
6 checks passed
@willccbb willccbb deleted the will/info-oaitools-fix branch February 4, 2026 09:29
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.

1 participant