The trace buffer was cleared before the load, so a missing or empty file lost the trace already loaded. Loading straight into gs_trace also left it dangling when loadFile_safe() freed it on a short read, to be freed again by the next clear or load. Load into a local buffer and swap it in on success. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>