Repository navigation
Studio: don't stop long running tool calls that print nothing - #11969
Conversation
|
Codex review (mirror) Mirrored at NilayYadav#76 (base = upstream merge base
Converged on the current head; no retrigger needed. A/B on the new tests (same tests, only the implementation changed):
|
|
Review record for #11969, carried over from the mirror it was reviewed on: danielhanchen/unsloth-staging-review#152. Findings are quoted as posted and attributed to the account that posted them. The reactions shown are the triage recorded on the mirror; none were re-applied here. Commits are named as the mirror's, with this PR's equivalent where one was found. Round 1: reviewed mirror
|
…hai#11969) * Studio: renew durable run lease on tool heartbeats * Trim tool heartbeat test comment --------- Co-authored-by: Daniel Han <[email protected]>


When a tool call runs for a long time without printing anything, like a build or a download, the chat was stopped after about 20 minutes with "Generation stopped making progress". This happened even when Max Tool Call Duration was set to 30 minutes or Max. The signal that says a tool is still running was treated the same as an idle connection.
That signal is now counted as progress, so a tool can run until the limit the user picked. A chat that is really stuck is still stopped as before.
Before / after
A durable local chat (Qwen3-4B-Instruct-2507 GGUF Q4_K_M) runs one silent terminal command,
sleep 75 && printf 'DONE-11969\n'. The run lease is shortened to 30s on both sides (UNSLOTH_STUDIO_CHAT_RUN_LEASE_TIMEOUT_S=30, sweep 5s) so the 20 minute case shows in about a minute. BEFORE is the merge based4d224e, AFTER is this PR atfa95f2b, each a separateinstall.sh --localbuild.BEFORE: the run fails after 36.8s with "Generation stopped making progress". AFTER: the run completes at 78.9s and the reply is
DONE-11969.With the tool card expanded, BEFORE has no tool output and AFTER shows
DONE-11969as the command output.