mirror of
https://github.com/runkids/skillshare.git
synced 2026-11-19 02:17:09 +00:00
pterm's cursor package writes hide/show ANSI codes (\x1b[?25l/h) directly to os.Stdout, bypassing WithWriter(). The previous fix (SetProgressWriter to stderr) was insufficient because pterm still created progress bar objects that triggered cursor.Hide()/Show(). Add SuppressProgressToStderr() which both redirects ProgressWriter and forces isProgressTTY() to return false, preventing pterm components from being instantiated at all. Extract assertNoANSI test helper and cover all three structured formats (JSON, SARIF, Markdown). Also update pre-commit E2E runbook with steps 10-11 (framework integration tests) and add pre-commit-hook recipe to sidebar.