#66230
Terminal tool call runs forever
Reproduction steps
Reopen from this. https://github.com/zed-industries/zed/issues/32157
Current vs. Expected behavior
Most of the time terminal tool runs without any timeout, which hangs the process forever. All other Ai coding has terminal tool call timeout built in to prevent bug like this
Zed version and system specs
Zed: v1.25.3+stable.382.8dd255c3eafb5231056fe4e6f601cedd011f1c93 (Zed) OS: Linux X11 org.freedesktop.platform 26.08 Memory: 31.1 GiB Architecture: x86_64 GPU: Intel(R) UHD Graphics 630 (CML GT2) || Intel open-source Mesa driver || Mesa 26.2.5
Attach Zed log file
Zed.log
undefinedRelevant Zed settings
settings.json
undefinedRelevant Keymap
keymap.json
undefined(for AI issues) Model provider details
No response
If you are using WSL on Windows, what flavor of Linux are you using?
None
@erikdemarco I tested the built-in terminal tool on macOS 15.8.1 with Nightly 1.27.0, build
20261028.024048. An explicit timeout and the terminal’s Stop button both worked.What I tested
/bin/sleep 60withtimeout_ms: 1500returned early with a timeout result./bin/sleep 45without a timeout was still running at 35 seconds and finished at 45 seconds./bin/sleep 60before its deadline and stopped generation.The timeout is optional, so a call without it can keep running. I haven’t reproduced your Linux case.
Can you share a failing command, the selected agent and model, and whether Stop ends the call? If the tool details show
timeout_ms, can you include its value? Please redact credentials and private command arguments. That will help distinguish a missing default timeout from an explicit timeout or cancellation that fails.