Debug log lines written during a log rotation are kept rather than dropped.
What's wrong with this entry?
The rotating debug log used by runners and background sessions now buffers lines written while a rotation is under way and replays them into the new file, instead of dropping them.
- Writes after the log is closed are ignored rather than erroring.
- Closing waits for any rotation in flight before ending the stream, using a helper that returns immediately if the stream is already closed.
[runner:session] debug log flush failed (best-effort):
Strings lifted out of the shipped bundle, so the claim above can be checked against them.