Repository navigation
Fleet UI: Strip fleetctl pointer from script details timeout message - #56350
Conversation
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #56350 +/- ##
=======================================
Coverage 77.52% 77.52%
=======================================
Files 4345 4345
Lines 271487 271487
Branches 15950 15948 -2
=======================================
+ Hits 210474 210477 +3
+ Misses 60827 60824 -3
Partials 186 186
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
There was a problem hiding this comment.
🟢 Approval recommended
The scoped UI change matches the linked issue and includes regression coverage; the remaining description mismatch is non-blocking.
1 open issue
What changed in this PR
Removes fleetctl-specific navigation instructions from host-timeout messages in the Script details modal, matching #55120 while leaving shared server copy unchanged.
Changes:
- Strips the full “Go to Fleet and check Host details…” sentence at the UI boundary.
- Adds regression coverage confirming the instruction is removed and the timeout explanation remains.
| File | Description |
|---|---|
| frontend/pages/DashboardPage/cards/ActivityFeed/components/RunScriptDetailsModal/RunScriptDetailsModal.tsx | Removes the navigation sentence from host-timeout messages. |
| frontend/pages/DashboardPage/cards/ActivityFeed/components/RunScriptDetailsModal/RunScriptDetailsModal.tests.tsx | Tests instruction removal and preservation of the timeout explanation. |
Review effort: Balanced
| /\s*Go to Fleet and check Host details > Activities to see script results\.?/, | ||
| "" |
There was a problem hiding this comment.
Sorry I removed all of it and updated the PR description!
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info
WalkthroughWhen a script has no exit code and the host has timed out, the details modal removes the Fleet navigation pointer from the API message and trims surrounding whitespace before displaying it. When the host has not timed out, the modal continues to show the running status. A test checks that the timeout message omits the pointer and retains the uncertainty statement. Priority: ⬇️ Low Severity of issue fixed: Low Merge Risk: ⚪ Minimal · up to
|

Related issue: Closes #55120
Description
RunScriptHostTimeoutErrMsgverbatim. That constant is fleetctl copy and ends with "Go to Fleet and check Host details > Activities to see script results."server/fleet/errors.gobecause the constant is shared with fleetctl, where "Go to Fleet" is still correct advice. The timeout branch inRunScriptDetailsModalalready special-cases this message, so the strip fits the existing pattern. Modal has 4 call sites (dashboard activity feed, host details activities, host scripts flow, Controls > Scripts batch details) and the strip is correct for all of them.Checklist for submitter
Testing
AI
AI: Claude Code (claude-opus-4-7)
Frontend
Summary by CodeRabbit