Make terminal renderer tests independent of TERM #933
All Vouch review confidence checks passed
Residual risk 0.06 = Change Risk (0.19) × (1 − Review Confidence (0.68)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.19 · 5 lines diff across 1 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.35 · 1 substantive comment(s)
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
Bedrock Claude 3 · Risk Narration
(disconnected)
Groq Risk Narration
AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
Model 1 · Change Risk Attribution
SHAP Weights
Diff Size
diff_size
0.107
Ai Authored
ai_authored
0.050
Real PR Conversation Timeline
2 items
Approved
Good job, thank you!
<img src="https://static.klipy.com/ii/935d7ab9d8c6202580a668421940ec81/0c/f3/U1GmBYaR.gif"/>
andimarafioti
akaszhu
Fixes #926.
When the test console is given only a width, Rich ignores it on
TERM=dumband uses 80 columns instead. Sotest_interrupted_assistant_line_is_rewritten_to_the_heard_textsees the 50-character line as a single row, emits\x1b[1Fwhere the test expects\x1b[2F, and fails.This gives the shared
_terminal_renderer()console, and the one other test console that sets only a width, both dimensions (height=25). Then the 40-column setting holds no matter whatTERMis. Only tests change.Checked locally on Linux, Python 3.12:
TERM=dumb pytest tests/openai_realtime/test_audio_client.py: 145 passed (onmain, the interrupted-line test fails).TERM=xterm-256color pytest tests/openai_realtime/test_audio_client.py: 145 passed.ruff checkandruff format --checkare clean.I used AI assistance to prepare this change. I reviewed and tested it myself.