Skip to content

Conversation

@Fizza-Mukhtar
Copy link
Contributor

Problem

Omniparser previously used a single element mapping derived from the most recent
screenshot to convert all historical computer_call messages. This caused incorrect
element IDs when UI state changed over time.

Solution

This PR builds element ID mappings per screenshot and applies the most recent
prior mapping when converting each message. This preserves historical UI context
and prevents incorrect element ID assignment.

Impact

  • Correct historical message conversion
  • Improved agent reliability
  • No breaking behavior changes

fixes #694

@vercel
Copy link
Contributor

vercel bot commented Jan 7, 2026

@Fizza-Mukhtar is attempting to deploy a commit to the Cua Team on Vercel.

A member of the Team first needs to authorize it.

@f-trycua
Copy link
Collaborator

f-trycua commented Jan 9, 2026

Thanks for your contribution @Fizza-Mukhtar !

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.

Omniparser: Historical Message Conversion Uses Incorrect Single-Screenshot Mapping

2 participants