mirror of
https://github.com/mudler/LocalAI.git
synced 2026-11-07 21:13:27 -05:00
The agent folder probes run one turn that calls about a hundred real file tools on the stub tool harness. Under -race that turn takes 7 to 25 s, and on a loaded CI runner it passed the 20 s bound of until, so the spec "finds the token through the same probes when the agent has no folder" failed with "timed out waiting for the turn to end". The turn always ends; the time goes to race-instrumented SQLite statement parsing and a one-time PDF engine compile, not to a wait or a lock. Add untilWithin and use a five minute bound for the end of a probe turn and for settling. The turn is still checked for its end, so a turn that never ends still fails the spec. Assisted-by: Claude:claude-sonnet-5-5 Signed-off-by: Ettore Di Giacinto <mudler@localai.io>