b8543c8bb9
Build and Deploy Verso / deploy (push) Has been cancelled
typst watch outputs the "[HH:MM:SS] compiled with errors" status line FIRST, then the full diagnostic output (file:line:col, source snippets, hints) AFTERWARDS. The previous code resolved the pending compile promise as soon as COMPILE_DONE_RE fired, discarding all post-status diagnostic lines. Those lines then got cleared by the next cycle's COMPILE_START_RE, so output.log only ever contained the bare status line — explaining the "zero verbosity" symptom. Fix: introduce a two-phase buffering model. When COMPILE_DONE_RE fires, enter "post-done" phase (storing doneResult) and keep accumulating into currentLines. _finalizeCompile() is called either when the next COMPILE_START_RE arrives (zero added latency) or after FLUSH_DELAY_MS (150 ms fallback for the last compile). It concatenates pre-done and post-done lines before resolving, so output.log now contains the full diagnostic output. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>