Skip to content

Python: Fix HIL regression#2167

Merged
victordibia merged 4 commits intomainfrom
devui_fix_hil_regression
Nov 13, 2025
Merged

Python: Fix HIL regression#2167
victordibia merged 4 commits intomainfrom
devui_fix_hil_regression

Conversation

@victordibia
Copy link
Contributor

@victordibia victordibia commented Nov 13, 2025

Motivation and Context

fix devui regression from #2021 where all input is stringified but devui HIL input does not handle stringified json strings correctly.

closes #2158

Description

Contribution Checklist

  • The code builds clean without any errors or warnings
  • The PR follows the Contribution Guidelines
  • All unit tests pass, and I have added new tests where possible
  • I didn't break anyone 😄

…vui HIL input does not handle stringified json strings correctly.
Copilot AI review requested due to automatic review settings November 13, 2025 04:54
@markwallace-microsoft
Copy link
Member

markwallace-microsoft commented Nov 13, 2025

Python Test Coverage

Python Test Coverage Report •
FileStmtsMissCoverMissing
TOTAL14665212385% 
report-only-changed-files is enabled. No files were changed during this commit :)

Python Unit Test Overview

Tests Skipped Failures Errors Time
2028 129 💤 0 ❌ 0 🔥 39.304s ⏱️

Copy link
Contributor

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 DevUI regression from #2021 where all input was stringified, but the HIL (Human-in-Loop) response extraction logic didn't handle stringified JSON correctly.

Key Changes:

  • Added JSON string parsing logic to _extract_workflow_hil_responses method to handle stringified list inputs
  • The fix properly validates that parsed JSON is in the expected list format (ResponseInputParam) for HIL responses
  • Returns None for invalid JSON, non-list parsed values, or plain text strings

@victordibia victordibia added the devui DevUI-related items label Nov 13, 2025
@victordibia victordibia added this pull request to the merge queue Nov 13, 2025
Merged via the queue into main with commit 7e5de8f Nov 13, 2025
23 checks passed
@victordibia victordibia deleted the devui_fix_hil_regression branch November 13, 2025 05:39
arisng pushed a commit to arisng/agent-framework that referenced this pull request Feb 2, 2026
* fix devui regression from microsoft#2021 where all input is stringified but devui HIL input does not handle stringified json strings correctly.

* update incorrect test

* add devui hil input tests
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

devui DevUI-related items python

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Python: [Python] DevUI HIL not working as expected

4 participants