Hi all, was digging more into the timeout code, and it seems that when the model sets a hard timeout, there's no upper limit for how high that timeout can be (so hypothetically, a model could set a blocking timeout of several days). I'm curious if this was an explicit reason behind this design decision?
l
limited-student-10747
10/29/2025, 6:39 PM
We might want to set an upper limit, but we wanted to give the model flexibility. We’d welcome a PR to set a reasonable upper limit that is configurable like the soft limit
b
broad-author-27785
10/29/2025, 6:44 PM
Thanks! Playing around with this locally, will open a PR if it seems like it is working.
Seems like there would be two approaches to this by the way:
1. Explicitly mention the hard timeout in the tool description and raise a validation error if the model passes a timeout greater than this
2. Silently clamp the timeout to the configured value if the model sets it to be higher than the configured value.
Currently going with (1) but curious about your thoughts.
l
limited-student-10747
10/29/2025, 6:46 PM
Yeah, 1 seems better
limited-student-10747
10/29/2025, 6:46 PM
Thanks!
c
calm-artist-7206
10/29/2025, 6:51 PM
I hope it doesn't make the model more tempted to always set it at the maximum 😅