Skip to content

[Feature Parity] improve cua key mapping logic #164

@stagehand-parity-bot

Description

@stagehand-parity-bot

Feature Parity Request

This issue was automatically created from a pull request in the TypeScript Stagehand repository that was labeled with 'parity'.

Original PR Details

Description

why

Currently we have a handful of keys that fail to be used, and redundant logic around key handling. It is now consolidated to one location, and properly handles the failing keys
part of STG-587

what changed

consolidated key handling for CUA agents to one util

test plan

tested locally

Changed Files

  • .changeset/huge-suns-dress.md
  • lib/agent/AnthropicCUAClient.ts
  • lib/agent/utils/cuaKeyMapping.ts
  • lib/agent/utils/imageCompression.ts
  • lib/handlers/agentHandler.ts

Recent Comments

@changeset-bot[bot] commented:

🦋 Changeset detected

Latest commit: 3319506c57263744ec78501406c2bf2876c1e5a4

The changes in this PR will be included in the next version bump.

Not sure what this means? Click here to learn what changesets are.

[Click here if you're a maintainer who wants to add another changeset to this PR](https://github.com/browserbase/stagehand/new/improve-cua-key-mapping-logic?filename=.changeset/rotten-ligers-...

Action Required

Please review the changes in the original PR and implement equivalent functionality in the Python SDK if applicable.


This issue was automatically generated by the Feature Parity workflow.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions