You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Script details: timeout message takes "after N seconds" from the script output, not the configured timeout #54262
Web browser and operating system: Chromium (Playwright 1.61) on macOS
💥 Actual behavior
For a script that timed out, the Script details modal takes the "after N seconds" in its error line from the script's own output instead of the configured timeout. With script_execution_timeout: 60, a script that prints sleeping 180 seconds is reported as "Fleet stopped the script after 180 seconds"; a script whose output contains no "N seconds" gets no duration at all ("Fleet stopped the script to protect host performance.").
🛠️ Expected behavior
The modal shows the configured timeout — "Fleet stopped the script after 60 seconds to protect host performance." — which is what the API already returns in message for the same execution (GET /api/v1/fleet/scripts/results/:execution_id).
🧑💻 Steps to reproduce
These steps:
Have been confirmed to consistently lead to reproduction in multiple Fleet instances.
Describe the workflow that led to the error, but have not yet been reproduced in multiple Fleet instances.
Set script_execution_timeout: 60 in the agent options of a fleet with a Linux host.
Add this script to that fleet and run it on the host:
#!/bin/bashecho"sleeping 180 seconds"
sleep 180
After ~60 s, open the host → Actions → Run script → the script's Actions → Show run details.
🕯️ More info (optional)
RunScriptDetailsModal.tsx:214 passes message={data.output} to StatusMessage, whose timeout case (:85) regex-matches (\d+ seconds) in that string. When the dynamic timeout copy was added (#20138) the modal passed data.message — the server's HostScriptTimeoutMessage, built from the configured value (server/fleet/scripts.go:434); it became data.output in #23461. Present in fleet-v4.92.1. Related, both closed: #20415 (wrong seconds shown, 2024), #35432 ([object Object], 4.77).
QA Pass — 12/12 checks on main (1bfc70f) vs rc-minor-fleet-v4.93.0 (82b6b87). Timed-out scripts on real Linux and macOS hosts plus simulated fleetd hosts, the issue's 60-second fleet timeout, all four places the Script details modal opens, and the modal's other states (success, failure, scripts disabled, host didn't respond).
Activity
Fix script timeout duration in run details
Brajim20 commentedon Oct 8, 2026
QA Pass — 12/12 checks on
main(1bfc70f) vsrc-minor-fleet-v4.93.0(82b6b87). Timed-out scripts on real Linux and macOS hosts plus simulated fleetd hosts, the issue's 60-second fleet timeout, all four places the Script details modal opens, and the modal's other states (success, failure, scripts disabled, host didn't respond).sleeping 180 seconds(issue repro)sleeping 900 secondssleeping 180 secondsRows 10–11: the modal now shows the server's message for these states too. Row 11 was blank before the fix.
fleet-release commentedon Oct 29, 2026
Clouds drift through the sky
scripts show their true timeout
clarity returns