Skip to content

Migrate osworld_agent off Ray #6439

Open

Description

@linear-code

responses_api_agents/osworld_agent declares ray_enabled = True.

How it uses Ray: each OSWorld task runs in a Ray task (_run_osworld_task_remote in app.py, num_cpus=1). The server waits with ray.get in a thread, and stops a task with ray.cancel.

Proposed replacement: OSWorld already reaches its desktop environments through remote sandboxes. Run each task with bounded async concurrency against the Sandbox API, and drop the Ray task layer around it.

Done when: the server no longer declares ray_enabled = True on main. Alternatively, its README documents which distributed-systems requirement Ray satisfies and why a sandbox, bounded local concurrency or a persistent endpoint is not enough. Tracked in the checklist on #3669.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions