feat(tectonic): summarize the first real error #100

Merged
barrettruth merged 1 commit from feat/tectonic-failure-summary into main 2026-04-26 01:42:41 +00:00
barrettruth commented 2026-04-26 01:41:38 +00:00

Problem

The built-in tectonic preset still falls back to a generic failure notification or can surface the trailing halted on potentially-recoverable error as specified trailer instead of the first actionable stderr line. Its fixture coverage also did not reflect real captured tectonic output.

Solution

Add a tectonic-specific failure_summary that scans real stderr-shaped error: lines, strips leading !, filters the halted trailer and *** echoes, and returns the first meaningful message. Replace the hand-written fixture with captured tectonic stderr, add fixture-backed coverage for the audited failure shapes, and add a compiler test that routes the real tectonic summary through the notification path.

## Problem The built-in `tectonic` preset still falls back to a generic failure notification or can surface the trailing `halted on potentially-recoverable error as specified` trailer instead of the first actionable stderr line. Its fixture coverage also did not reflect real captured tectonic output. ## Solution Add a tectonic-specific `failure_summary` that scans real stderr-shaped `error:` lines, strips leading `!`, filters the halted trailer and `***` echoes, and returns the first meaningful message. Replace the hand-written fixture with captured tectonic stderr, add fixture-backed coverage for the audited failure shapes, and add a compiler test that routes the real tectonic summary through the notification path.
Sign in to join this conversation.
No description provided.