eigent icon indicating copy to clipboard operation
eigent copied to clipboard

[Feature Request] Improve task timeout behavior for long-running agent work

Open 4pmtong opened this issue 5 months ago • 0 comments

Motivation

Eigent currently has fixed timeout behavior for long-running tasks. Some tasks can legitimately take longer than the current limit, especially complex tasks involving multiple agents or sub-agents.

A fixed timeout can stop a task too early even when the model is still making progress. This is especially problematic when a main agent is waiting for sub-agents to finish before continuing.

Solution

Improve task timeout behavior so long-running tasks can be handled more flexibly.

The requirement is to avoid a hard-coded timeout that prematurely stops valid long-running work. The model/agent should have a better way to determine or request an appropriate timeout window based on the task context.

This should cover both product experience and backend behavior:

  • Users should understand when a task is taking longer than expected.
  • Backend task lifecycle should avoid stopping valid work too early.
  • Main agent and sub-agent timeout behavior should be better aligned.

Alternatives

Keep the current fixed timeout. This is predictable, but it can incorrectly terminate valid long-running tasks.

Additional context

No response

4pmtong avatar Jun 15 '26 08:06 4pmtong