Skip to content

Python: Fix HIL regression - #2167

Merged
Victor Dibia (victordibia) merged 4 commits into
mainfrom
devui_fix_hil_regression
Nov 13, 2025
Merged

Python: Fix HIL regression#2167
Victor Dibia (victordibia) merged 4 commits into
mainfrom
devui_fix_hil_regression

Conversation

@victordibia

@victordibiaVictor Dibia (victordibia) commented Nov 13, 2025

Copy link
Copy Markdown
Contributor

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.
CopilotAI review requested due to automatic review settings November 13, 2025 04:54
@markwallace-microsoftMark Wallace (markwallace-microsoft) added the python Usage: [Issues, PRs], Target: Python label Nov 13, 2025
@markwallace-microsoft

Mark Wallace (markwallace-microsoft) commented Nov 13, 2025

Copy link
Copy Markdown
Contributor

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

TestsSkippedFailuresErrorsTime
2028129 💤0 ❌0 🔥39.304s ⏱️

CopilotAI left a comment

Copy link
Copy Markdown
Contributor

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

Merged via the queue into main with commit 7e5de8fNov 13, 2025
23 checks passed
@victordibia
Victor Dibia (victordibia) deleted the devui_fix_hil_regression branch November 13, 2025 05:39
Aris Nguyen (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 freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

pythonUsage: [Issues, PRs], Target: Python

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Python: [Python] DevUI HIL not working as expected

5 participants

@victordibia@markwallace-microsoft@dmytrostruk@moonbox3