fix(check): stop the presenter and CLAUDE.md loading from corrupting output#149
Merged
Conversation
Contributor
Author
…output The inline TUI is the sole terminal writer for a `multi check` run, but two things fought it for control: long evidence text got clipped instead of wrapped when flushed into scrollback (ratatui buffers don't auto-wrap like a real terminal), and any `tracing::info!`/`debug!` fired mid-run wrote raw bytes straight over its cursor-managed viewport. The presenter now word-wraps everything it flushes and registers itself as tracing's active sink for the run's duration, folding log lines into scrollback plus a small live pane instead of letting them leak to stdout. Also wires the project's CLAUDE.md hierarchy into the check agent's system prompt via cersei-memory, so per-project instructions are no longer ignored. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
a55a02b to
9b9e95d
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

The inline TUI is the sole terminal writer for a
multi checkrun, but twothings fought it for control: long evidence text got clipped instead of
wrapped when flushed into scrollback (ratatui buffers don't auto-wrap like a
real terminal), and any
tracing::info!/debug!fired mid-run wrote rawbytes straight over its cursor-managed viewport. The presenter now word-wraps
everything it flushes and registers itself as tracing's active sink for the
run's duration, folding log lines into scrollback plus a small live pane
instead of letting them leak to stdout.
Also wires the project's CLAUDE.md hierarchy into the check agent's system
prompt via cersei-memory, so per-project instructions are no longer ignored.
Co-Authored-By: Claude Sonnet 5 noreply@anthropic.com