Chat: "New reply" only for reply text, not thinking or tools (fixes #425) #464
All Vouch review confidence checks passed
Residual risk 0.17 = Change Risk (0.42) × (1 − Review Confidence (0.60)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.42 · 323 lines diff across 4 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.17 · 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.346
Shallow Review Depth
shallow_review_depth
0.289
Real PR Conversation Timeline
1 comments
"Review active on #464"
general
weight: 0.35
Giton22
Scrolled up while the agent thinks or runs tools, the jump arrow turned accent and said "New reply", though there was nothing new to read. It compared the last row's key and a size that counted reasoning and tool calls, and the first thinking event opens a new reply row, so any activity lit it.
Now the pill compares how much reply text the chat's end holds: the latest prompt's length plus the answer and command output written after it. Thinking, tools, notices and other events add nothing.
Fixes #425
Tests
ReplyMarkTest(commonTest): thinking and tools aren't news; reply text, a new prompt, command output and a failed or warned turn are; the stored row(s) taking over, blank space, notices and older pages aren't; a reply that comes as the chat's own local prompt is stored is; new stays new until the reader is back at the end.NewReplyPillTest(jvmTest): scrolled up, reasoning and then a tool stream in with no "New reply", and answer text makes it show (fails on master). An older page loading above shows only the arrow, and a failed turn then says "New reply".shared:coreandshared:ui, the two test classes above on the JVM,:desktopApp:compileKotlinJvmand:androidApp:assembleDebugon the rebased branch: all pass.Proof on a device: on an emulator against a local test gateway whose fake model streams reasoning for 20 s and then the answer. Scrolled up, the pill stayed a plain arrow while it thought, and turned to "New reply" when answer text came. With a turn that fails after 15 s, it stayed a plain arrow while waiting and said "New reply" once the failure was shown. There's no layout change, so no screenshots.
Known, not fixed here
Reviewed with a Gemini 4 Neon loop: 3 rounds with gemini-4-neon-high. Verdict: approved