Skip to content

wait_for: ability to wait for multiple optional texts (any of them might match) #916

Description

@hybridherbst

Is your feature request related to a problem? Please describe.

I see chrome-devtools-mcp use wait_for quite a lot, and often in good ways. However, one area it struggles is for long-running processes that might either succeed or fail; it will then wait_for "Complete" but the actual message might be "Error". I've seen this drive the wait time up (e.g. devtools MCP will assume it's not done and wait another 300 seconds for a process it thinks might be long-running, but has failed after a second already).

Describe the solution you'd like

Allow wait_for to wait for any term of a provided list, so that devtools mcp can e.g. wait for "Complete" or "Failed".

Describe alternatives you've considered

Alternative is very long wait times until it timeouts, and then devtools MCP figures out "oh, actually it failed" after 300s or so.

Additional context

No response

Activity

  1. changed the title [-]wait_for should be able to wait for multiple optional texts (any of them might match)[/-] [+]`wait_for`: ability to wait for multiple optional texts (any of them might match)[/+] on Feb 8, 2026
  2. OrKoN commented on Feb 9, 2026

    @OrKoN
    Collaborator

    I think it's a good idea.

  3. ashutoshpw commented on Feb 21, 2026

    @ashutoshpw
    Contributor

    @OrKoN added a PR for this at #1011

  4. added a commit that references this issue on Feb 24, 2026
    496ab1b
  5. added a commit that references this issue on Mar 10, 2026
    5ccb53e
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions