Skip to content

UI: task expiration not handled gracefullyΒ #1733

@jezekra1

Description

@jezekra1

Describe the bug
When the user does not respond in time, the task will expire and the error is not nicely explained to the user.

To Reproduce
Steps to reproduce the behavior:

  1. Write agent that uses input_required (e.g. request form)
  2. (optional): set task_timeout=timedelta(seconds=1) in server.run to speed this up
  3. Run agent in UI, wait for expiration (default 10 minutes or configured in 2.)
  4. Send the form
  5. See error

Expected behavior
Nice message to the user: "You failed to respond in time, why are you so slow?"

Logs / Screenshots / Code snippets
Image

Additional context
The expiration might only work correctly after the latest SDK refactor on main.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingui

    Type

    No type

    Projects

    Status

    No status

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions