Skip to content

fix: fail malformed model actions#402

Open
binichallein wants to merge 1 commit into
zai-org:mainfrom
binichallein:fix/malformed-action-failure-316
Open

fix: fail malformed model actions#402
binichallein wants to merge 1 commit into
zai-org:mainfrom
binichallein:fix/malformed-action-failure-316

Conversation

@binichallein
Copy link
Copy Markdown

Summary

  • Fixes 工程bug #316 by treating unparseable model actions as explicit failures instead of wrapping them as successful finish(...) actions.
  • Prevents malformed outputs such as [{"Type": "Type"}] / [{ 'Type': 'Type' }] from being executed or reported as completed tasks.
  • Applies the same failure path to Android/HarmonyOS and iOS agents.

Test Plan

  • python -m pytest
  • pre-commit run --files phone_agent/agent.py phone_agent/agent_ios.py tests/test_agent_parse_errors.py

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.

工程bug

1 participant