Add front and back guard for undefined#3556
Conversation
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #3556 +/- ##
==========================================
+ Coverage 79.29% 79.34% +0.04%
==========================================
Files 691 691
Lines 57724 57730 +6
Branches 728 728
==========================================
+ Hits 45773 45803 +30
+ Misses 11873 11849 -24
Partials 78 78
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:
|
Wrap viewScriptLog request/decode in try/catch to match downloadScriptLog, so a present-but-404 log identifier no longer throws on window.atob. Update storage_controller specs to mock File.exist? for the new backend 404 guard. Drop exact wait-time assertions in test_api_shared that flake on slow CI. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
|
I think we're fully covered on that path but I did find another path in RunningScripts where we download the log. |


This was observed in the wild in a bad deployment where a script hung and thus didn't create a log. The request for the log resulted in a bad URL path. Add a check for the log in the frontend and a sanity check in the backend.