Skip to content

Conversation

@TheR1D
Copy link
Owner

@TheR1D TheR1D commented Oct 29, 2025

No description provided.

@TheR1D TheR1D requested a review from Copilot October 29, 2025 01:15
@TheR1D TheR1D self-assigned this Oct 29, 2025
@TheR1D TheR1D added the bug Something isn't working label Oct 29, 2025
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR fixes a bug where the global additional_kwargs dictionary was being modified when functions are used, causing unintended side effects across multiple API calls. The fix creates a local copy of the dictionary before modifying it.

  • Creates a local copy of additional_kwargs before modification to prevent mutation of the global variable
  • Updates the completion call to use the local copy instead of the global dictionary

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@TheR1D TheR1D force-pushed the ut-fix branch 3 times, most recently from 2cc0898 to d6f1e81 Compare October 29, 2025 02:01
@TheR1D TheR1D marked this pull request as draft October 29, 2025 02:01
@TheR1D TheR1D force-pushed the ut-fix branch 11 times, most recently from ff39f0a to 036b410 Compare October 30, 2025 03:26
@TheR1D
Copy link
Owner Author

TheR1D commented Oct 30, 2025

TODO: some of the assert result.exit_code == 0 were removed from shell tests.

@TheR1D TheR1D marked this pull request as ready for review October 30, 2025 03:33
@TheR1D TheR1D merged commit a04167c into main Oct 30, 2025
4 checks passed
@TheR1D TheR1D deleted the ut-fix branch October 30, 2025 03:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants