GLOBTIMEOUT does not bound wall-clock time — tool blocks until the runaway glob finishes…
- User
GLOB_TIMEOUTdoes not bound wall-clock time — tool blocks until the runaway glob finishesSubmission checklist
- This is a bug, not a usage question.
- I added a clear and descriptive title.
- I searched existing issues and didn't find this.
- I can reproduce this with the latest released version.
- I included a minimal reproducible example and steps to reproduce.
Area (Required)
- deepagents (SDK)
- cli
- code
- talon
- acp
- evals
- harbor
- daytona
- modal
- quickjs
- runloop
- langsmith-sandbox
- Other / not sure / general
Related Issues / PRs
No response
Reproduction Steps / Example Code (Python)
python - Assistant
I'll investigate the filesystem middleware's
sync_globimplementation and fix the timeout so it actually bounds wall-clock time. - Assistant
Checking imports and whether a shared executor pattern exists elsewhere:
- Assistant
Verifying executor shutdown behavior and whether the existing test would catch the bug:
- Assistant
Implementing the fix and adding a wall-clock assertion to the test.
- Assistant
Fixed.
GLOB_TIMEOUTwas only affecting the error message, not how long the tool blocked.Root cause
sync_globused awith ThreadPoolExecutor(...)block and returned inside it on timeout. ThatreturntriggeredThreadPoolExecutor.__exit__, which callsshutdown(wait=True)and joins the worker thread — so the tool still waited for the slow glob to finish.Fix
Replaced the context manager with explicit lifecycle handling:
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.