Add opt-in delivery-debug.log for paced text delivery

Advanced debugging now also records paced-delivery metadata (byte
offsets, lease/send errors, finish results and the exact focus-guard
check that failed) to an owner-private delivery-debug.log. No transcript
text is logged. Diagnoses later chunks being dropped after the first.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
baketnkandClaude Opus 5.5 committed 2026-09-26 22:41:44 -04:00
1 parent 279455134b
commit 045cd4f45f
8 files changed
+136 -34

No files matched your search

+4
View File
@@ -15,6 +15,10 @@ struct WorkerReply {
std::string error;
};
// Opens (rotating `previous`) an owner-private 0600 file in the FrameYap state
// directory, or throws. Used only for opt-in advanced debugging.
int open_private_debug_log(const char* name, const char* previous);
class Worker {
public:
explicit Worker(std::chrono::milliseconds warmup_timeout = std::chrono::seconds(120),